R1:
[H3C]sysname R1
[R1]int g0/0
[R1-GigabitEthernet0/0]undo shutdown
[R1-GigabitEthernet0/0]ip add 10.0.1.1 24
[R1-GigabitEthernet0/0]int g0/1
[R1-GigabitEthernet0/1]undo shutdown
[R1-GigabitEthernet0/1]ip add 192.168.0.1 30
R2:
[H3C]sysname R2
[R2]int g0/0
[R2-GigabitEthernet0/0]undo shutdown
[R2-GigabitEthernet0/0]ip add 192.168.0.2 30
[R2-GigabitEthernet0/0]int g0/1
[R2-GigabitEthernet0/1]undo shutdown
[R2-GigabitEthernet0/1]ip add 10.0.2.1 24
测试各个直连设备的连通性
配置RIP
R1:
[R1]rip
[R1-rip-1]version 2
[R1-rip-1]network 10.0.1.0
[R1-rip-1]network 192.168.0.0
[R1-rip-1]undo summary
R2:
[R2]rip
[R2-rip-1]version 2
[R2-rip-1]network 10.0.2.0
[R2-rip-1]network 192.168.0.0
[R2-rip-1]undo summary
通过rip学到路由信息
[R1]display ip routing-table protocol rip
[R2]display ip routing-table protocol rip
PC3 ping pc4
开始增加rip的认证
[R1]int g0/1
[R1-GigabitEthernet0/1]rip authentication-mode md5 rfc2453 plain h3c
[R2]int g0/0
[R2-GigabitEthernet0/0]rip authentication-mode md5 rfc2453 plain h3c
认证后:
[R1]display ip routing-table protocol rip
[R2]display ip routing-table protocol rip
PC3 ping PC4
查看rip的信息
<R2>display rip
看debug信息
<R1>debugging rip 1 packet
<R1>terminal debugging
<R2>debugging rip 1 packet
<R2>terminal debugging