ipv4 帧中继配置(GNS3)

1、拓扑图

 

2、网络地址规划

设备名称

接口

地址

R1

S0/0

192.168.123.1

R3

扫描二维码关注公众号,回复: 6303817 查看本文章

S0/1

192.168.123.3

R4

S0/2

192.168.123.4

R2

S0/0、S0/1、S0/2

不需要设置地址

3、R2的配置(将R2配置成帧中继交换机)

R2(config)#frame-relay switching    把该路由器当成帧中继交换机

R2(config)#int s0/0/0

R2(config-if)#no shu

R2(config-if)#clock rate 128000      配置时钟

R2(config-if)#encapsulation frame-relay 

R2(config)#int s0/1/0

R2(config-if)#no shu

R2(config-if)#clock rate 128000      配置时钟

R2(config-if)#encapsulation frame-relay

R2(config)#int s0/0/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  配置LMI类型为cisco

R2(config-if)#frame-relay intf-type dce   配置接口帧中继DCE还是DTE

R2(config)#int s0/1/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/0

R2(config-if)#frame-relay route 103 interface s0/0/1 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 Serial0/0/0 103

R2(config)#int s0/1/0

R2(config-if)#frame-relay route 401 interface Serial0/0/0 104

4、给路由器接口配置地址

R1(config)#int s0/0/0

R1(config-if)#ip address 192.168.123.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#encapsulation frame-relay

R1(config-if)#frame-relay lmi-type cisco

R3(config)#int s0/0/1

R3(config-if)#ip address 192.168.123.3 255.255.255.0

R3(config-if)#no shutdown

R3(config-if)#encapsulation frame-relay

R4(config)#int s0/0/1

R4(config-if)#ip address 192.168.123.4 255.255.255.0

R4(config-if)#no shutdown

R4(config-if)#encapsulation frame-relay

5、查看帧中继交换表

6、连通性测试

R1 ping R3、R4互通

帧中继配置成功。

猜你喜欢

转载自www.cnblogs.com/wicher/p/10946391.html