rip基础配置
R1:
[R1]int LoopBack 0
[R1-LoopBack0]ip add 10.0.1.1 24
[R1-LoopBack0]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip add 10.0.12.1 24
[R1]rip
[R1-rip-1]network 10.0.0.0
R2:
[R2]int LoopBack 0
[R2-LoopBack0]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip add 10.0.12.2 24
[R2]rip
[R2-rip-1]network 10.0.0.0
接口认证
R1:
[R1]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.10.254 24
[R1-GigabitEthernet0/0/0]int g 0/0/1
[R1-GigabitEthernet0/0/1]ip add 10.0.12.1 24
[R1]rip
[R1-rip-1]version 2
[R1-rip-1]network 192.168.10.0
[R1-rip-1]network 10.0.0.0
[R1]int g 0/0/1
[R1-GigabitEthernet0/0/1]rip authentication-mode simple plain huawei
##
R2:
[R2]int g 0/0/1
[R2-GigabitEthernet0/0/1]ip add 10.0.12.2 24
[R2-GigabitEthernet0/0/1]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.20.254 24
[R2]rip
[R2-rip-1]version 2
[R2-rip-1]network 192.168.20.0
[R2-rip-1]network 10.0.0.0
[R2]int g 0/0/1
[R2-GigabitEthernet0/0/1]rip authentication-mode simple plain huawei
rip不同版本相互通告
R1:
[R1]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip add 10.0.12.1 24
[R1-GigabitEthernet0/0/0]int g 0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.10.254 24
[R1]rip
[R1-rip-1]network 10.0.0.0
[R1-rip-1]network 192.168.10.0
[R1]int g 0/0/0
[R1-GigabitEthernet0/0/0]rip version 2
R2:
[R2]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip add 10.0.12.2 24
[R2-GigabitEthernet0/0/0]int g 0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.20.254 24
[R2]rip
[R2-rip-1]network 10.0.0.0
[R2-rip-1]network 192.168.20.0
[R2-rip-1]version 2
抑制接口
R1:
[R1]int g 0/0/1
[R1-GigabitEthernet0/0/1]ip add 172.16.1.254 24
[R1]rip
[R1-rip-1]network 172.16.0.0
[R1-rip-1]silent-interface g 0/0/1
[R1-rip-1]peer 172.16.1.100
[R1-rip-1]peer 172.16.1.200
R2:
[R2]INT G 0/0/0
[R2-GigabitEthernet0/0/0]ip add 172.16.2.254 24
[R2-GigabitEthernet0/0/0]int g 0/0/1
[R2-GigabitEthernet0/0/1]ip add 172.16.1.100 24
[R2]rip
[R2-rip-1]network 172.16.0.0
[R2-rip-1]silent-interface g 0/0/0
[R2-rip-1]silent-interface g 0/0/1
[R2-rip-1]peer 172.16.1.254
[R2-rip-1]peer 172.16.1.200
R3:
[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R3-GigabitEthernet0/0/0]int g 0/0/2
[R3-GigabitEthernet0/0/2]ip add 172.16.1.200 24
[R3]rip
[R3-rip-1]network 172.16.0.0
[R3-rip-1]network 192.168.1.0
[R3-rip-1]silent-interface g 0/0/0
[R3-rip-1]silent-interface g 0/0/2
[R3-rip-1]peer 172.16.1.100
[R3-rip-1]peer 172.16.1.254