腾讯视频/爱奇艺/优酷/外卖 充值4折起
实验拓扑图如下:
图中路由器及帧中继交换机均由3640实现,三个路由器都用s0/0跟frsw相连
r1 s0/0 ip 192.168.1.1 /24
r2 s0/0 ip 192.168.1.2 /24
r3 s0/0 ip 192.168.1.3 /24
先对fr交换机进行配置
----frsw
frsw(config)#frame-relay switching 开启帧中继交换功能
frsw(config)#interface s0/0
frsw(config-if)#no shutdown
frsw(config-if)#no ip address 关闭接口ip地址
frsw(config-if)#encapsulation frame-relay 封闭帧中继
frsw(config-if)#frame-relay lmi-type cisco配置lmi类型
frsw(config-if)#frame-relay intf-type dce配置接口类型
frsw(config-if)#clock rate 64000 配置时钟频率
frsw(config-if)#frame-relay route 102 interface s0/1 201
frsw(config-if)#frame-relay route 103 interface s0/2 301
配置该本地端口dlci值及虚链路对应出口和对端dlci值
frsw(config-if)#exit
-------------------------------语句说明参考s0/0接口配置
frsw(config)#interface s0/1
frsw(config-if)#no shutdown
frsw(config-if)#no ip address
frsw(config-if)#encapsulation frame-relay
frsw(config-if)#frame-relay lmi-type cisco
frsw(config-if)#frame-relay intf-type dce
frsw(config-if)#clock rate 64000
frsw(config-if)#frame-relay route 201 interface s0/0 102
frsw(config-if)#frame-relay route 203 interface s0/2 302
frsw(config-if)#exit
-------------------------------语句说明参考s0/0接口配置
frsw(config)#interface s0/2
frsw(config-if)#no shutdown
frsw(config-if)#no ip address
frsw(config-if)#encapsulation frame-relay
frsw(config-if)#frame-relay lmi-type cisco
frsw(config-if)#frame-relay intf-type dce
frsw(config-if)#clock rate 64000
frsw(config-if)#frame-relay route 301 interface s0/0 103
frsw(config-if)#frame-relay route 302 interface s0/1 203
frsw(config-if)#exit
查看pvc链路状态
#show frame-relay route
由于串行链路上的对端还未进行配置及联接,pvc链路还处于未激活状态.
下面进行dte端路由器配置
----r1
r1(config)#interface s0/0
r1(config-if)#ip address 192.168.1.1 255.255.255.0
r1(config-if)#no shutdown
r1(config-if)#encapsulation frame-relay 接口封装帧中继
r1(config-if)#no frame-relay inverse-arp关闭反向arp
r1(config-if)#frame-relay map ip 192.168.1.2 102 broadcast
r1(config-if)#frame-relay map ip 192.168.1.3 103 broadcast
配置对端ip与本地dlci映射
----r2(语句说明参考r1)
r2(config)#interface s0/0
r2(config-if)#ip address 192.168.1.2 255.255.255.0
r2(config-if)#no shutdown
r2(config-if)#encapsulation frame-relay
r2(config-if)#no frame-relay inverse-arp
r2(config-if)#frame-relay map ip 192.168.1.1 201 broadcast
r2(config-if)#frame-relay map ip 192.168.1.3 203 broadcast
----r3(语句说明参考r1)
r3(config)#interface s0/0
r3(config-if)#ip address 192.168.1.3 255.255.255.0
r3(config-if)#no shutdown
r3(config-if)#encapsulation frame-relay
r3(config-if)#no frame-relay inverse-arp
r3(config-if)#frame-relay map ip 192.168.1.1 301 broadcast
r3(config-if)#frame-relay map ip 192.168.1.2 302 broadcast
再次查看frsw的状态
#show frame-relay route
所有pvc链路已经全部处于激活状态 试验联通性,在r1上分别ping r2和r3的s0/0口ip地址
r2 ping r3