Frame-relay 的配置(hub-and-spoke互联)
 
R5 (frame-relay switching)
 
frame-relay(config)#frame-relay swi
frame-relay(config)#frame-relay switching
frame-relay(config)#inter s1/0
frame-relay(config-if)#encapsulation frame-relay
frame-relay(config-if)#no ip addr
frame-relay(config-if)#no ip address
frame-relay(config-if)#frame-relay intf
frame-relay(config-if)#frame-relay intf-type dce
frame-relay(config-if)#clock rate 64000
frame-relay(config-if)#fra
frame-relay(config-if)#frame-relay lmi
frame-relay(config-if)#frame-relay lmi-type
frame-relay(config-if)#frame-relay lmi-type ansi
frame-relay(config-if)#frame-relay route 102 inter s1/1 201
frame-relay(config-if)#frame-relay route 103 inter s1/2 301
frame-relay(config-if)#exi
frame-relay(config)#inte s1/1
frame-relay(config-if)#no ip add
frame-relay(config-if)#en
frame-relay(config-if)#encapsulation fra
frame-relay(config-if)#fra
frame-relay(config-if)#frame-relay intf
frame-relay(config-if)#frame-relay intf-type dce
frame-relay(config-if)#clock rate 64000
frame-relay(config-if)#frame-relay route 201 inter s1/0 102
frame-relay(config-if)#frame-relay route 203 inter s1/2 302(去掉这条)
frame-relay(config-if)#no shut
 
frame-relay(config-if)#exi
frame-relay(config)#inte s1/2
frame-relay(config-if)#no ip addr
frame-relay(config-if)#
00:10:08: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
frame-relay(config-if)#enc
frame-relay(config-if)#encapsulation fra
frame-relay(config-if)#encapsulation frame-relay
frame-relay(config-if)#fra
frame-relay(config-if)#frame-relay intf
frame-relay(config-if)#frame-relay intf-type dce
frame-relay(config-if)#clock rate 64000
00:10:23: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to down
frame-relay(config-if)#clock rate 64000
frame-relay(config-if)#fra
frame-relay(config-if)#frame-relay route 301 inter s1/0 103
frame-relay(config-if)#fra
frame-relay(config-if)#frame-relay route 302 inter s1/1 203(去掉这条)
frame-relay(config-if)#
frame-relay(config-if)#no shut
frame-relay(config-if)#
frame-relay(config-if)#
frame-relay(config-if)#
00:12:36: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up
frame-relay(config-if)#end
注:每个接口都应打开(shut
 
 
去掉这俩条映射后R2R3是不通的,因为他没有路径(全互联的具有动态发现邻居的能力,用的是broadcast,现在这个拓扑是一个hub-and-spoke,所以我们应该手动的添加映射,已达到我们的目的。
 
 
R1
r1(config)#inter s1/2
r1(config-if)#ip addr 10.1.1.1 255.255.255.0
r1(config-if)#en  
r1(config-if)#encapsulation fra
r1(config-if)#encapsulation frame-relay
r1(config-if)#
r1(config-if)#no shut
 
 
R2
 
r2(config)#inter s1/2
r2(config-if)#ip addr 10.1.1.2 255.255.255.0
r2(config-if)#en
r2(config-if)#encapsulation fra
r2(config-if)#encapsulation frame-relay
R2(CONFIG-IF )#FRAME-RELAY MAP IP 10.1.1.3 201 BROADCAST(新添加的映射)
r2(config-if)#no shut
 
R3
 
r3(config)#inter s1/2
r3(config-if)#en
r3(config-if)#encapsulation fra
r3(config-if)#ip addr 10.1.1.3 255.255.255.0
 
R3config-if#FRAME-RELAY MAP IP 10.1.1.2 301 BROADCAST(新添加的映射)
r3(config-if)#no shut