CCNA 帧中继配置_休闲
 
1 配置帧中继交换机 要点: 首先要把路由器1700设成帧中继交换机,在端口上需要配置其封装为frame-relay 在各个端口设置帧中继交换表,并设置端口类型为DCE。 注意帧中继交换机的端口不需要配置ip地址
Switch(config) # frame-relay switching //模拟成帧中继交换机
Swtich(config) # int s0 //进入s0端口
Switch(config-if)#enacapsulation frame-relay //配置端口封装为帧中继,默认类型是cisco
Switch(config-if) # frame-relay intf-type dce //设置端口类型为DCE
Switch(config-if) # frame-relay lmi-type cisco //配置lmi类型为cisco
Switch(config-if) # clock rate 56000
Switch(config-if) # frame-relay route 100 interface s2 200 //建立一条交换记录
Switch(config-if) # no shut
Switch(Config) # int s1 //进入s1端口
Switch(config-if) # enacapsulation frame-relay
Switch(config-if) # frame-relay intf-type dce
Switch(config-if) # frame-relay lmi-type cisco
Switch(config-if) # clock rate 56000
Switch(config-if) # frame-relay route 110 interface s2 210 //建立一条交换记录
Switch(config-if) # no shut
Switch(config-if) # exit
Switch(Config) # int s2 //进入s1端口
Switch(config-if) # enacapsulation frame-relay
Switch(config-if) # frame-relay intf-type dce
Switch(config-if) # frame-relay lmi-type cisco
Switch(config-if) # clock rate 56000
Switch(config-if) # frame-relay route 200 interface s0 100
Switch(config-if) # frame-relay route 210 interface s0 110
Switch(config-if) # no shut Switch(config-if) # exit
 
(2) 配置用户路由器
A路由器(图中左边为A路由器):(1700/1600)
RTA(Config) # int s0 //进入s0端口
RTA(config-if) # encapsulation frame-relay //设置帧中继封装
RTA(config-if)# ip address 192.168.1.1 255.255.255.0 //指定端口ip
RTA (config-if)#no shut
B、C路由器与A的配置类似 路由器A、B、C采用Inverse-ARP协议会自动生成帧中继映射表,而不用静态指定。 在对端路由器不支持inverse arp的情况下,我们可以采静态指定DLCI和静态生成映射 表,则可采用下列命令:
RTA(config-if) # frame-relay map ip <下一跳地址> <dlci-number>
 
(3) 验证帧中继
测试连通性:在用户路由器(A/B/C)上使用ping 命令
查看虚电路:show frame-relay pvc (在帧中继交换机上)
 查看映射表:show frame-relay map(在用户路由器上)
查看LMI信息:show frame-relay lmi(在用户路由器上)
查看端口封装:show int s0
查看交换表(只在FR交换机上用):show frame-relay route