一、实验拓扑
二、实验需求
三、实验步骤
1.配置IP地址
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sy
[Huawei]sysname R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.65 26
Jun 18 2023 16:54:43-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R2-GigabitEthernet0/0/0]quit
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add
[R2-GigabitEthernet0/0/1]ip address 192.168.1.1 26
Jun 18 2023 16:55:17-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
2.设置RIP协议
[R1]rip 1
[R1-rip-1]version 2
[R1-rip1]network 192.168.1.0
[R1-rip-1]undo summary
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[R2]rip 1
[R2-rip-1]version 2
[R2-rip1]network 192.168.1.0
[R2-rip-1]undo summary
[R3-rip-1]default-route originate
3.认证
[R2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 12345
4测试