五、RIP的被動接口與單播更新

1. 實驗目的:掌握RIPv1的被動接口與單播更新的適用場景與配置;

1.1 實驗目的描述:想實現路由器R1只把路由更新發送到R3,在默認情況下,rip的路由更新發送到所有的路由設備上,爲此需要把R1fa0/0接口配置爲被動接口,然而R1還想把路由更新發送給R3,所以需要啓用單播更新。具體參見:《思科網絡實驗室:路由、交換實驗指南》的51-53

2. 實驗拓撲

3. 實驗步驟

3.1 R1啓用RIPv1

>enable

#conf  t

#int fa0/0

#ip address 192.168.1.1 255.255.255.0

#no shutdown

#int fa0/1

#ip address 192.168.10.1 255.255.255.0

#no shutdown

//啓用rip協議

#router rip

#version 1

#network 192.168.1.0 

#network 192.168.10.0 

3.2 R2啓用RIPv1

>enable

#conf  t

#int fa0/0

#ip address 192.168.1.2 255.255.255.0

#no shutdown

#int fa0/1

#ip address 192.168.20.1 255.255.255.0

#no shutdown

//啓用rip協議

#router rip

#version 1

#network 192.168.1.0 

#network 192.168.20.0 

3.3 R3啓用RIPv1

>enable

#conf  t

#int fa0/0

#ip address 192.168.1.3 255.255.255.0

#no shutdown

#int fa0/1

#ip address 192.168.30.1 255.255.255.0

#no shutdown

//啓用rip協議

#router rip

#version 1

#network 192.168.1.0 

#network 192.168.30.0 

3.4 R1fa0/0上啓用被動接口

#router rip

#passive-interface fa0/0

3.5 R1上啓用單播更新

#router rip

#neighbor 192.168.1.3

4. 檢查rip的過程

#debug ip rip

#show ip route     //查看路由表

#clear ip route *    //清楚路由器中的路由表

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章