return
3.4 配置RIP的版本兼容、定时器及协议优先级
最终配置
sysname R1 #
interface GigabitEthernet0/0/0 ip address 10.0.12.1 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 192.168.10.1 255.255.255.0 # rip 1 version 2
network 10.0.0.0 network 192.168.10.0 preference 90
timers rip 20 120 60 # return
sysname R2 #
interface GigabitEthernet0/0/0 ip address 10.0.12.2 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 192.168.20.1 255.255.255.0 # rip 1 version 2
network 10.0.0.0 network 192.168.20.0 # return
3.5 配置RIP抑制接口及单播更新
最终配置
sysname R1 #
interface GigabitEthernet0/0/1
ip address 172.16.1.254 255.255.255.0 # rip 1
peer 172.16.1.100 peer 172.16.1.200 network 172.16.0.0
silent-interface GigabitEthernet0/0/1 # Return
sysname R2 #
interface Ethernet1/0/1
ip address 172.16.1.100 255.255.255.0 #
interface Ethernet1/0/0
ip address 172.16.2.254 255.255.255.0 # rip 1
peer 172.16.1.254 peer 172.16.1.200 network 172.16.0.0
silent-interface Ethernet1/0/0 silent-interface Ethernet1/0/1 # Return
sysname R3 #
interface Ethernet1/0/1
ip address 172.16.1.200 255.255.255.0 undo rip output #
interface Ethernet1/0/0
ip address 192.168.1.254 255.255.255.0 # rip 1
peer 172.16.1.254 network 172.16.0.0 network 192.168.1.0 # return
3.6 RIP与不连续子网
最终配置
interface Ethernet0/0/0
ip address 10.0.12.1 255.255.255.0 # rip 1
undo summary version 2
network 10.0.0.0 #
sysname R2 #
interface Ethernet0/0/0
ip address 10.0.12.2 255.255.255.0 #
interface Serial0/0/0 link-protocol ppp
ip address 192.168.23.2 255.255.255.0 # rip 1
undo summary version 2
network 10.0.0.0 network 192.168.23.0 #
#
sysname R3 #
interface Serial0/0/0 link-protocol ppp
ip address 192.168.23.3 255.255.255.0 #
interface Serial0/0/1 link-protocol ppp
ip address 192.168.34.3 255.255.255.0 # rip 1
undo summary version 2
network 192.168.23.0 network 192.168.34.0 #
sysname R4
interface Ethernet0/0/0
ip address 10.0.45.4 255.255.255.0 interface Serial0/0/1 link-protocol ppp
ip address 192.168.34.4 255.255.255.0 # rip 1
undo summary version 2
network 192.168.34.0 network 10.0.0.0
sysname R5 #
interface Ethernet0/0/0
ip address 10.0.45.5 255.255.255.0 # rip 1
undo summary version 2
network 10.0.0.0 #
3.7 RIP的水平分割及触发更新
最终配置
sysname R1 #
interface GigabitEthernet0/0/0 ip address 172.16.1.1 255.255.255.0 #
interface GigabitEthernet0/0/2 ip address 172.16.2.1 255.255.255.0 undo rip split-horizon # rip 1 version 2
network 172.16.0.0 # Return
sysname R2 #
interface Ethernet1/0/0
ip address 192.168.2.254 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 172.16.2.2 255.255.255.0 rip poison-reverse # rip 1 version 2
network 192.168.2.0 network 172.16.0.0 # Return
sysname R3 #
interface Ethernet1/0/0