A-A+

CISCO路由器做桥接(bridging)的配置实例

2015年11月20日 站长资讯 暂无评论

下面是是把一台思科路由器做桥接(bridging)的完整的配置命令,通过这个实例大家可以学习到使用路由器把几个网络串起来的连接方式。

先来说说桥接桥接(Bridging)的概念,是指依据OSI网络模型的链路层的地址,对网络数据包进行转发的过程。是工作在osi的第二层的。一般的交换机,网桥就有桥接作用。就交换机来说,本身有一个端口与mac的映射表,通过这些,隔离了冲突域(collision)。 简单的说就是通过网桥可以把两个不同的物理局域网连接起来,是一种在链路层实现局域网互连的存储转发设备。网桥从一个局域网接收MAC帧,拆封、校对、校验之后 ,按另一个局域网的格式重新组装,发往它的物理层。

下面是一个路由器桥接的配置命令:

  1. router#sh ru   
  2. Building configuration...   
  3.    
  4. Current configuration:   
  5. !   
  6. version 12.1   
  7. service timestamps debug uptime   
  8. service timestamps log uptime   
  9. no service password-encryption   
  10. !   
  11. hostname router  
  12. !   
  13. enable secret 5 $1$BE0q$hj.WBtIBYppMX3zyfaPbR1   
  14. !   
  15. !   
  16. !   
  17. !   
  18. !   
  19. memory-size iomem 25   
  20. ip subnet-zero   
  21. no ip routing   
  22. !   
  23. !   
  24. !   
  25. !   
  26. interface Serial0   
  27. description 128k DL546267 connect to SZ   
  28. ip address 198.127.18.4 255.255.255.0   
  29. no ip route-cache   
  30. no fair-queue   
  31. bridge-group 1   
  32. !   
  33. interface FastEthernet0   
  34. http://www.xiaoxiongboke.com   
  35. ip address 198.127.18.3 255.255.255.0   
  36. no ip route-cache   
  37. speed auto   
  38. bridge-group 1   
  39. !   
  40. ip classless   
  41. no ip http server   
  42. !   
  43. bridge 1 protocol ieee bridge 1 route ip   
  44. !   
  45. line con 0   
  46. transport input none   
  47. line aux 0   
  48. line vty 0 4   
  49. password csl   
  50. login   
  51. !   
  52. no scheduler allocate   
  53. end  
标签:

给我留言