實驗要求: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
實驗結果:
-----------------------------
-----------------------------