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

相关文章
相关标签/搜索