设为首页收藏本站language 语言切换
查看: 2994|回复: 4
收起左侧

[原创] 使用GNS3路由器IOS模拟交换机

[复制链接]
发表于 2015-10-13 08:18:06 | 显示全部楼层 |阅读模式
相信对于使用GNS3,用路由器IOS加载NW-16esw模块做交换机用,大家应该不会陌生。但是昨天我发现了一个使用中的小问题,默认情况下只有interface 0 -1 之间会通,其他interface不能互通,研究了一下,只发现有英文的相关解决,没有中文资料,所以发个贴共享一下

GNS3默认情况下,NM-16ESW只有前面两个interface是Full-duplex,后面的interface全部是Auto-duplex,如下:
ESW1#showinterfaces fastEthernet 1/1
FastEthernet1/1is up, line protocol is up
  Hardware is Fast Ethernet, address isc201.2600.f101 (bia c201.2600.f101)
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:42, output never, outputhang never
  Last clearing of "show interface"counters never
  Input queue: 0/75/0/0(size/max/drops/flushes); Total output drops: 0

ESW1#showinterfaces fastEthernet 1/2
FastEthernet1/2is up, line protocol is down
  Hardware is Fast Ethernet, address isc201.2600.f102 (bia c201.2600.f102)
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Auto-duplex,Auto-speed
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output never, output hangnever
  Last clearing of "show interface"counters never
  Input queue: 0/75/0/0(size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec

这种情况即使在NM-16ESW模块两边interface的路由器IP是相同网段,也不能通,要手动设置
ESW1(config)#interface  range fastEthernet  1/2 - 15
ESW1(config-if-range)#speed100
ESW1(config-if-range)#duplexfull
ESW1(config-if-range)#^Z

这样就可以通了,真正作为交换机使用

发表于 2015-10-13 10:05:09 | 显示全部楼层
都是 auto-duplex ,auto-speed 啊
沙发 2015-10-13 10:05:09 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2015-10-13 11:23:44 | 显示全部楼层
路过了解一下
地板 2015-10-13 11:23:44 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-30 15:25 , Processed in 0.067460 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表