帧中继网络在中国是公用传输网络(如中国电信就是提供帧中继网络服务),主要用于传递数据业务,用户路由器作为DCE连接到作为DCE的帧中继交换机上,通过帧中继网络建立虚电路,虚电路用数据链路识别码来标识


帧中继配置步骤

1)作为DTE的路由器配置

①指定路由器接口或子接口,配置网络层协议地址。

②指定帧中继协议及其封装格式(必选)

R1(config-if) # encapsulation  frame-relay  cisco |ietf   //对端同为Cisco,否则选ietf

③设置带宽(可选)

④设置LMI类型(可选)

⑤指明点到点子接口连接的DLCI

⑥配置动态或静态的地址映射(必选)

 

⑦配置SVC(可选)

2)作为DCE的帧中继交换机配置

3)查看配置



帧中继配置举例


实例8-2 路由器模拟帧中继交换机的配置,连通网络,要求R1R2启用EIGRP路由协议

wKiom1cLpfnA6gZHAAA0wuJO0Qo172.png


R1配置

R1(config)#int  lo0    //loopback0作测试用,因为连计算机太耗内存了,我用的是GNS3做的实验

R1(config-if)#ip  add 192.168.10.1  255.255.255.0

R1(config-if)#router   eigrp  1

R1(config-router)#network   192.168.10.0

R1(config-router)#network   10.1.1.0

R1(config-router)#exit

R1(config)#int   s0/0

R1(config-if)#ip  add 10.1.1.1  255.255.255.252

R1(config-if)#encapsulation    frame-relay

R1(config-if)#shut  //配置帧中继交换机之前,可先关闭路由器广域网口


R2配置

R2(config)#int  lo0

R2(config-if)#ip  add  192.168.20.1  255.255.255.0

R2(config-if)#router eigrp  1

R2(config-router)#network  192.168.20.0

R2(config-router)#network  10.1.1.0

R2(config-router)#exit

R2(config)#int s0/0

R2(config-if)#ip add 10.1.1.2  255.255.255.252

R2(config-if)#encapsulation    frame-relay

R2(config-if)#shut //配置帧中继交换机之前,可先关闭路由器广域网口


FRSwitch配置

①在R1R2之间创建PVC

FRSwitch(config)#frame-relay  switching   //全局模式下启用帧中继交换,使其能够根据DLCI而非根据IP地址转发帧

 

FRSwitch(config)#int  s0/0

FRSwitch(config-if)#clock rate 64000

FRSwitch(config-if)#encapsulation  frame-relay        //②将接口封闭类型更改为帧中继

 

FRSwitch(config-if)#frame-relay  intf-type  dce   //接口改为DCE

 

创建PVC

FRSwitch(config-if)#frame-relay  route  102  int  s 0/1  201    //DLCI 102 从接口 S0/0 的传入流量通过 接口S0/1 转发到DLCI201

FRSwitch(config-if)#no shut

FRSwitch(config)#int s0/1

FRSwitch(config-if)#clock rate 64000

FRSwitch(config-if)#encapsulation  frame-relay

FRSwitch(config-if)#frame-relay  intf-type dce

 FRSwitch(config-if)#frame-relay  route  201  int  s 0/0  102

FRSwitch(config-if)#no  shut