Skip to main content

 路由器设置 > 新闻资讯 >

帧中继网络运行RIPv1

2013-11-01 01:05 浏览:

102748832.jpg

 

实验要求:R1、R2、R3运行RIPv1并宣告自身回环地址,使所有路由器学习到其他回环地址。

 

R1#
interface Loopback0
ip address 1.1.1.1 255.255.255.0

 

interface Serial1/1
ip address 192.168.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 192.168.1.3 103 broadcast

 

参数broadcast即在该接口上发送广播信息,RIPv1使用广播(255.255.255.255)更新路由表,如在此不加参数broadcast,也可在RIP进程下执行手工指定邻居关系: neighbor 192.168.1.2(邻居地址)。

 

frame-relay map ip 192.168.1.2 102 broadcast
frame-relay lmi-type cisco
no shutdown

 

router rip
network 1.0.0.0
network 192.168.1.0

 

R2#
interface Loopback0
ip address 2.2.2.2 255.255.255.0

interface Serial1/2
ip address 192.168.1.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 192.168.1.3 203 broadcast
frame-relay map ip 192.168.1.1 201 broadcast
frame-relay lmi-type cisco

no shutdown

router rip
network 2.0.0.0
network 192.168.1.0

R3#
interface Loopback0
ip address 3.3.3.3 255.255.255.0

interface Serial1/3
ip address 192.168.1.3 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 192.168.1.2 302 broadcast
frame-relay map ip 192.168.1.1 301 broadcast
frame-relay lmi-type cisco
no shutdown

router rip
network 3.0.0.0
network 192.168.1.0

实验结果:

105009522.jpg

-----------------------------

105056870.jpg

-----------------------------

105138905.jpg