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

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

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

2. 實驗拓撲 this

3. 實驗步驟 spa

3.1 R1啓用RIPv1

>enable debug

#conf  t 3d

#int fa0/0 router

#ip address 192.168.1.1 255.255.255.0 blog

#no shutdown 接口

#int fa0/1 ip

#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 *    //清楚路由器中的路由表

相關文章
相關標籤/搜索