1. 實驗目的:掌握RIPv1的被動接口與單播更新的適用場景與配置;
1.1 實驗目的描述:想實現路由器R1只把路由更新發送到R3,在默認狀況下,rip的路由更新發送到全部的路由設備上,爲此須要把R1的fa0/0接口配置爲被動接口,然而R1還想把路由更新發送給R3,因此須要啓用單播更新。具體參見:《思科網絡實驗室:路由、交換實驗指南》的51-53頁
2. 實驗拓撲:
3. 實驗步驟:
>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
>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
>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
#router rip
#passive-interface fa0/0
#router rip
#neighbor 192.168.1.3
#debug ip rip
#show ip route //查看路由表
#clear ip route * //清楚路由器中的路由表