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