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

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

帧中继拓扑连接:

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

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

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

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

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

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

验证:

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

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

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

路由器的帧中继基本配置

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

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

验证:

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

 帧中继的路由器和交换机模拟配置的过程就是以上这些内容,命令比较多,应用起来复杂,所以读者需要认真和耐心了,关于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

2009-12-18 14:30:40

路由器与交换机

2011-08-16 13:55:03

交换机Cisco

2022-09-22 19:19:52

网络硬件路由器交换机

2022-09-22 19:23:11

网络硬件路由器交换机

2022-09-23 10:02:35

网络硬件路由器

2022-09-22 17:00:46

路由器

2009-12-22 13:22:03

路由器与交换机

2010-08-26 10:45:59

DHCP端口

2014-06-05 14:36:53

SDN交换机服务器

2022-09-22 17:02:42

网络硬件

2011-03-31 09:09:00

2015-06-18 09:38:46

路由器交换机

2010-02-06 17:04:19

交换机和路由器

2010-01-12 09:03:39

华为路由器交换机

2009-11-26 09:56:39

Cisco路由器配置命交换机配置命令
点赞
收藏

51CTO技术栈公众号