RIP手動彙總

RIP手動彙總

實驗目的:
主要是看看手動彙總之後路由表看起來有什麼區別....
拓撲連接:
autostart = False
[localhost]
`7200`
p_w_picpath = C:\Program Files\Dynamips\p_w_picpaths\C7200.bin
npe = npe-400
ram = 256
idlepc = 0xffffffff80425144
confreg = 0x2142
`ROUTER Router1`
model = 7200
console = 2001
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
S1/0 = Router2 S1/0
`ROUTER Router2`
model = 7200
console = 2002
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
配置如下:
RouterA:
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
RouterB:
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
驗證結果:
因爲rip是v1的,也就是說我還沒有設置自動彙總.
RouterA#show ip route
Gateway of last resort is not set
     172.16.0.0/24 is subnetted, 2 subnets
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#
RouterB#show ip route
Gateway of last resort is not set
R    172.16.0.0/16 [120/1] via 192.168.1.1, 00:00:05, 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
RouterB#
然後在2個路由器上都使用命令
router rip
version 2
no auto-summary
再次驗證:
RouterA#show ip route
Gateway of last resort is not set
     172.16.0.0/24 is subnetted, 2 subnets
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
 
RouterB#show ip route
Gateway of last resort is not set
     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
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還沒撤銷掉.
過一點時間再去查看show ip route之後果然藍色的記錄已經消失掉了.
個人猜想如下:因爲rip v1是每30s觸發一次表更新,180s之後超時,再過90s之後路由刷新計時器被初始化
所以路由器在270s之後沒有收到rip v1的更新,所以刪除了那2條藍色的記錄.
如果我在使用version 2  no auto-summary命令之前使用no router rip,這樣刪除了rip v1路由,
然後在使用router rip version 2  no auto-summary network ****
配置完成之後,再show的時候,藍色的2個記錄肯定也不會出來.
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章