RIP手动汇总
`7200`
p_w_picpath = C:\Program Files\Dynamips\p_w_picpaths\C7200.bin
npe = npe-400
ram = 256
idlepc = 0xffffffff80425144
confreg = 0x2142
model = 7200
console = 2001
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
S1/0 = Router2 S1/0
model = 7200
console = 2002
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
配置如下:
en
config t
int loop 0
ip add 172.16.1.1 255.255.255.0
int loop 1
ip add 172.16.2.1 255.255.255.0
int s1/0
ip add 192.168.1.1 255.255.255.0
router rip
network 192.168.1.0
network 172.16.0.0
en
config t
int loop 0
ip add 10.1.1.1 255.255.255.0
int loop 1
ip add 10.1.2.1 255.255.255.0
int s1/0
ip add 192.168.1.2 255.255.255.0
router rip
network 192.168.1.0
network 10.0.0.0
验证结果:
Gateway of last resort is not set
C 172.16.1.0 is directly connected, Loopback0
C 172.16.2.0 is directly connected, Loopback1
R 10.0.0.0/8 [120/1] via 192.168.1.2, 00:00:10, Serial1/0
C 192.168.1.0/24 is directly connected, Serial1/0
RouterA#
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 2 subnets
C 10.1.2.0 is directly connected, Loopback1
C 10.1.1.0 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, Serial1/0
RouterB#
Gateway of last resort is not set
C 172.16.1.0 is directly connected, Loopback0
C 172.16.2.0 is directly connected, Loopback1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R 10.1.2.0/24 [120/1] via 192.168.1.2, 00:00:01, Serial1/0
R 10.1.1.0/24 [120/1] via 192.168.1.2, 00:00:01, Serial1/0
R 10.0.0.0/8 [120/1] via 192.168.1.2, 00:00:26, Serial1/0
C 192.168.1.0/24 is directly connected, Serial1/0
Gateway of last resort is not set
R 172.16.0.0/16 [120/1] via 192.168.1.1, 00:00:41, Serial1/0
R 172.16.1.0/24 [120/1] via 192.168.1.1, 00:00:14, Serial1/0
R 172.16.2.0/24 [120/1] via 192.168.1.1, 00:00:14, Serial1/0
10.0.0.0/24 is subnetted, 2 subnets
C 10.1.2.0 is directly connected, Loopback1
C 10.1.1.0 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, Serial1/0
按照理论上出现的结果是不会有蓝色的这2条路由的,后来想到原来是rip v1还没撤销掉.