.
ip address 192.168.1.254 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 172.16.1.2 255.255.255.0 # rip 1 version 2
network 172.16.0.0 network 192.168.1.0 # return
3.8 配置RIP路由附加度量值
最终配置
interface GigabitEthernet0/0/0 ip address 20.1.1.1 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 20.2.2.1 255.255.255.0 rip metricin 2 #
interface GigabitEthernet0/0/2 ip address 10.1.1.254 255.255.255.0 # rip 1
undo summary version 2
network 10.0.0.0 network 20.0.0.0 # Return
interface GigabitEthernet0/0/0 ip address 20.1.1.2 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 30.1.1.2 255.255.255.0 .
.
rip metricout 3 # rip 1
undo summary version 2
network 20.0.0.0 network 30.0.0.0
sysname r3 #
interface GigabitEthernet0/0/0 ip address 30.2.2.3 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 20.2.2.3 255.255.255.0 # rip 1
undo summary version 2
network 20.0.0.0 network 30.0.0.0 # Return
sysname r4 #
interface GigabitEthernet0/0/0 ip address 30.2.2.4 255.255.255.0 #
interface GigabitEthernet0/0/1 ip address 30.1.1.4 255.255.255.0 #
interface GigabitEthernet0/0/2
ip address 40.1.1.254 255.255.255.0 # rip 1
undo summary version 2
network 30.0.0.0 network 40.0.0.0 # .
.
return
3.9 RIP的故障处理
最终配置
sysname R1 #
interface GigabitEthernet0/0/0
ip address 192.168.1.2 255.255.255.0 #
interface GigabitEthernet0/0/1
ip address 192.168.2.2 255.255.255.0 # rip 1 version 2
network 192.168.1.0 network 192.168.2.0 # Return
sysname R2 #
interface Ethernet1/0/0
ip address 172.16.1.254 255.255.255.0 #
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0 # rip 1 version 2
network 172.16.0.0 network 192.168.1.0 # Return
.
#
sysname R3 #
interface Ethernet1/0/0
ip address 172.16.2.254 255.255.255.0 #
interface GigabitEthernet0/0/1
ip address 192.168.2.1 255.255.255.0 # rip 1 version 2
network 172.16.0.0 network 192.168.2.0 # return
3.10 RIP的路由引入
最终配置
sysname R1 #
interface Ethernet0/0/1
ip address 30.1.1.1 255.255.255.0 #
interface Ethernet0/0/2
ip address 10.1.1.1 255.255.255.0 #
interface Ethernet0/0/3
ip address 10.1.2.1 255.255.255.0 # rip 1
undo summary version 2
network 30.0.0.0 network 10.0.0.0 import-route static #
ip route-static 40.1.1.0 255.255.255.0 30.1.1.2 # return .
.
sysname R2 #
interface Ethernet0/0/0
ip address 20.1.1.254 255.255.255.0 #
interface Ethernet0/0/2
ip address 10.1.1.2 255.255.255.0 # rip 1
undo summary version 2
network 10.0.0.0 import-route direct # return
sysname R3 #
interface Ethernet0/0/0
ip address 20.1.2.254 255.255.255.0 #
interface Ethernet0/0/3
ip address 10.1.2.2 255.255.255.0 # rip 1
undo summary version 2
network 10.0.0.0 network 20.0.0.0 # return
sysname R4 #
interface Ethernet0/0/1
ip address 30.1.1.2 255.255.255.0 #
interface Ethernet0/0/2
ip address 40.1.1.254 255.255.255.0 .