帧中继交换机和路由器模拟配置

网络
本文介绍了路由器和交换机中帧中继的迷你配置实例,这个实例可以很明白的为大家说明配置过程,比较经典,对于初学者来说是个很好的参考资料。

帧中继拓扑连接:

帧中继交换机和路由器模拟配置

router1的s0/0端口与FR的s0/0端口连接!

router2的s0/0端口与FR的s0/1端口连接!

router3的s0/0端口与FR的s0/2端口连接!

帧中继交换机的模拟配置:

Router>enable  
Router# config term  
Router(config)# hostname FR  
FR(config)# frame-relay switching  
FR(config)# interface s0/0  
FR(config-if)# encapsulation frame  
FR(config-if)# frame lmi-type cisco  
FR(config-if)# frame intf-type dce  
FR(config-if)# frame route 102 interface s0/1 201  
FR(config-if)# frame route 103 interface s0/2 301  
FR(config-if)# clock rate 128000  
FR(config-if)# no shutdown  
FR(config-if)# exit  
FR(config)# interface s0/1  
FR(config-if)# encapsulation frame  
FR(config-if)# frame lmi-type cisco  
FR(config-if)# frame intf-type dce  
FR(config-if)# frame route 201 interface s0/1 102  
FR(config-if)# frame route 203 interface s0/2 302  
FR(config-if)# clock rate 64000  
FR(config-if)# no shutdown  
FR(config-if)# exit  
FR(config)# interface s0/2  
FR(config-if)# encapsulation frame  
FR(config-if)# frame lmi-type cisco  
FR(config-if)# frame intf-type dce  
FR(config-if)# frame route 301 interface s0/1 103  
FR(config-if)# frame route 302 interface s0/2 203  
FR(config-if)# clock rate 64000  
FR(config-if)# no shutdown  
FR(config-if)# exit 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.

验证:

这里Status为Inactive的原因是对端路由器还没有配置。

FR#show fram route  
Input Intf      Input Dlci      Output Intf     Output Dlci     Status  
Serial0/0       102             Serial0/1       201             inactive  
Serial0/0       103             Serial0/2       301             inactive  
Serial0/1       201             Serial0/0       102             inactive  
Serial0/1       203             Serial0/2       302             inactive  
Serial0/2       301             Serial0/0       103             inactive  
Serial0/2       302             Serial0/1       203             inactive 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.

帧中继交换机和路由器模拟配置

路由器的帧中继基本配置

R1(config)# interface s0/0  
R1(config-if)# encapsulation frame  //封装为帧中继  
R1(config-if)# no frame inverse-arp  //关闭自动获取  
R1(config-if)# ip address 192.168.1.1 255.255.255.0  
R1(config-if)# frame map ip 192.168.1.2 102  
R1(config-if)# frame map ip 192.168.1.3 103  
R1(config-if)# no shutdown  
 
R2(config)# interface s0/0  
R2(config-if)# encapsulation frame //封装为帧中继  
R2(config-if)# no frame inverse-arp //关闭自动获取  
R2(config-if)# ip address 192.168.1.2 255.255.255.0  
R2(config-if)# frame map ip 192.168.1.1 201 //手工指定DLCI 和IP 的映射  
R2(config-if)# no shutdown  
R2(config-if)# interface lo 0  
R2(config-if)# ip address 10.1.0.1 255.255.255.0  
R2(config-if)# interface lo 1  
R2(config-if)# ip address 10.1.1.1 255.255.255.0  
R2(config-if)# interface lo 2  
R2(config-if)# ip address 10.1.2.1 255.255.255.0  
R2(config-if)# interface lo 3  
R2(config-if)# ip address 10.1.3.1 255.255.255.0  
 
R3(config)# interface s0/0  
R3(config-if)# encapsulation frame //封装为帧中继  
R3(config-if)# no frame inverse-arp //关闭自动获取  
R3(config-if)# ip address 192.168.1.3 255.255.255.0  
R3(config-if)# frame map ip 192.168.1.3 301 //手工指定DLCI 和IP 的映射  
R3(config-if)# no shutdown  
R3(config-if)# interface lo 0  
R3(config-if)# ip address 172.16.0.1 255.255.255.0  
R3(config-if)# interface lo 1  
R3(config-if)# ip address 172.16.1.1 255.255.255.0  
R3(config-if)# interface lo 2  
R3(config-if)# ip address 172.16.2.1 255.255.255.0  
R3(config-if)# interface lo 3  
R3(config-if)# ip address 172.16.3.1 255.255.255.0 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.

注意,在作DLCI 和IP 映射时,我们没有使用broadcast 参数!

验证:

R1#show frame-relay map  
Serial0/0 (up): ip 192.168.1.2 dlci 102(0×66,0×1860), static,  
              CISCO, status defined, active  
Serial0/0 (up): ip 192.168.1.3 dlci 103(0×67,0×1870), static,  
              CISCO, status defined, active  
R1#ping 192.168.1.2  
 
Type escape sequence to abort.  
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:  
!!!!!  
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/45/96 ms  
R1#ping 192.168.1.3  
 
Type escape sequence to abort.  
Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds:  
!!!!!  
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/51/100 ms 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.

 帧中继的路由器和交换机模拟配置的过程就是以上这些内容,命令比较多,应用起来复杂,所以读者需要认真和耐心了,关于EIGRP单播及带宽配置请阅读:

CCNP:EIGRP带宽实例配置解析EIGRP路由协议的配置实例解析

 

责任编辑:佚名 来源: 咦哇噢博客
相关推荐

2012-11-26 13:46:17

路由器交换机

2010-01-05 15:45:42

配置帧中继交换机

2017-06-01 14:33:04

交换机路由器网络设备

2011-03-24 14:05:14

Nagios监控

2011-07-21 13:46:09

Cisco ACE

2022-09-22 19:19:52

网络硬件路由器交换机

2022-09-22 17:00:46

路由器

2022-09-23 10:02:35

网络硬件路由器

2022-09-22 19:23:11

网络硬件路由器交换机

2009-12-18 14:30:40

路由器与交换机

2009-12-22 13:22:03

路由器与交换机

2011-08-16 13:55:03

交换机Cisco

2010-08-26 10:45:59

DHCP端口

2011-03-31 09:09:00

2022-09-22 17:02:42

网络硬件

2014-06-05 14:36:53

SDN交换机服务器

2015-06-18 09:38:46

路由器交换机

2010-01-12 09:03:39

华为路由器交换机

2009-12-03 11:43:30

路由器交换机区别

2010-02-06 17:04:19

交换机和路由器
点赞
收藏

51CTO技术栈公众号