配置帧中继交换机

配置帧中继交换机
       前面对帧中继做了个概述,现在利用cisco路由器来配置把帧中继交换机。如图:
        图中看到R2是作为帧中继交换机的,那么首先在它上面来开启帧中继交换机的交换功能:
R2(config)#frame-relay switching //把路由器当成帧中继交换机
 然后配置接口封装:
R2(config)#int s0/0/0
R2(config-if)#no shut
R2(config-if)#clock rate 128000 //该接口为DCE,要配置时钟频率
R2(config-if)#encapsulation frame-relay
R2(config)#int s0/0/1
R2(config-if)#no shut
R2(config-if)#clock rate 128000 
R2(config-if)#encapsulation frame-relay
R2(config)#int s0/1/0
R2(config-if)#no shut
R2(config-if)#clock rate 128000 
R2(config-if)#encapsulation frame-relay
配置LMI类型
R2(config)#int s0/0
R2(config-if)#frame-relay lmi-type cisco    //命令来配置LMI,默认是cisco
R2(config-if)#frame-relay intf-type dce     //命令用来配置接口是帧中继的DCE还是DTE,
R2(config)#int s0/0/1
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay lmi-type dce
R2(config)#int s0/1/0
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay lmi-type dce
配置帧中继交换表
R2(config)#int s0/0/0
R2(config-if)#frame-relay route 103 interface s0/0/1 301  //是配置帧中继交换表的,告诉路由器如果从该接口收到DLCI=103的帧,从
s0/0/1交换出去,并且将DLCI改为301
R2(config-if)#frame-relay route 104 interface s0/1/0 401
R2(config)#int s0/0/1
R2(config-if)#frame-relay route 301 interface s0/0/0 103
R2(config)#int s0/1/0
R2(config-if)#frame-relay route 401 interface s0/0/0 104
       配置完成了,可以用“show frame-relay”,“show frame  pvc”和“show frame lim”等命令来查看帧中继交换机运行是否正常。

你可能感兴趣的:(职场,休闲,交换)