對GNS3不是太熟今天遇到個報錯,
拓撲是鴻鵠下的NP 832排錯的拓撲:
http://bbs.hh010.com/thread-344825-1-1.html
打開832forgns.net時候報錯206,
導入配置文件夾也是報錯208
GNS3從0.8.7換到0.8.6也不行
看樣子不是版本的問題。
報錯如下
#########################################################
GNS3 management console. Running GNS3 version 0.8.6.
Copyright (c) 2006-2013 GNS3 Project.
=> *** Warning: Connecting ASW1 f1/9 to DSW1 f1/9 resulted in:
206-unable to create UDP NIO
*** Warning: Connecting ASW1 f1/10 to DSW1 f1/10 resulted in:
206-unable to create UDP NIO
*** Error: errors during loading of the topology file, please correct them
導入ASW1 從 ASW1.cfg
Dynamips錯誤: 208-unable to find object 'ASW1'
導入ASW2 從 ASW2.cfg
Dynamips錯誤: 208-unable to find object 'ASW2'
導入DSW1 從 DSW1.cfg
Dynamips錯誤: 208-unable to find object 'DSW1'
導入DSW2 從 DSW2.cfg
Dynamips錯誤: 208-unable to find object 'DSW2'
導入ISP 從 ISP.cfg
Dynamips錯誤: 208-unable to find object 'ISP'
導入R1 從 R1.cfg
Dynamips錯誤: 208-unable to find object 'R1'
導入R2 從 R2.cfg
Dynamips錯誤: 208-unable to find object 'R2'
導入R3 從 R3.cfg
Dynamips錯誤: 208-unable to find object 'R3'
導入R4 從 R4.cfg
Dynamips錯誤: 208-unable to find object 'R4'
---------Traceback lines (saved in exception.log)----------
Traceback (most recent call last):
File "GNS3\Scene.pyo", line 725, in slotStartNode
File "GNS3\Node\IOSRouter.pyo", line 608, in startNode
File "GNS3\Dynagen\dynamips_lib.pyo", line 2347, in start
File "GNS3\Dynagen\dynamips_lib.pyo", line 4998, in send
DynamipsError: 208-unable to find object 'DSW2'
-----------------------------------------------------------
百度啥也查不到,
谷歌能在國外網站找到發生同樣問題的朋友,
但是說的不是太詳細。
這個問題是這樣
如果打開net拓撲就報錯206,
根據我的實踐導入配置一定失敗208.
208報錯的字面理解是找不到對象ASW1,
給人的感覺是好像導入拓撲時候這個對象就沒被導入。
所以才找不到嘛,這個I'm not sure,
但是GNS3的界面上是能看見這些設備的圖標的。
由於是先報206錯誤,
所以要先解決206報錯,
字面理解是不能創建udp NIO,
我也不知道NIO是啥,
總之就是ASW1這個設備不能創建udp。
然後用notepad打開net拓撲找到這個設備,
看它使用的udp是什麼端口,
和其他設備使用的udp端口是否有衝突,
如果有給它改個別的無衝突的端口。
我的net拓撲
autostart = False
version = 0.8.6
[127.0.0.1:7202]
workingdir = C:\Users\xingxing\AppData\Local\Temp
udp = 10000
`7200`
image = D:\CISCO\IOS\c7200-adventerprisek9.124-9.T.image
idlepc = 0x606f8fec
`ROUTER R1`
console = 5008
aux = 2100
cnfg = 123_configs\R1.cfg
slot0 = C7200-IO-2FE
slot1 = PA-8T
s1/0 = FR 4
s1/1 = ISP s1/0
x = -422.0
y = -438.0
z = 1.0
`ROUTER R2`
console = 5007
aux = 2101
cnfg = 123_configs\R2.cfg
slot0 = C7200-IO-2FE
slot1 = PA-8T
s1/0 = FR 3
x = -254.0
y = -414.0
z = 1.0
[127.0.0.1:7203]
workingdir = C:\Users\xingxing\AppData\Local\Temp
udp = 10300
`7200`
image = D:\CISCO\IOS\c7200-adventerprisek9.124-9.T.image
idlepc = 0x606f8fec
`ROUTER ISP`
console = 5009
aux = 2102
cnfg = 123_configs\ISP.cfg
slot0 = C7200-IO-2FE
f0/0 = NIO_udp:30003:127.0.0.1:20003
slot1 = PA-8T
s1/0 = R1 s1/1
x = -654.0
y = -421.0
z = 1.0
[127.0.0.1:7200]
workingdir = C:\Users\xingxing\AppData\Local\Temp
udp = 11000 # <---這裏原來是10000和前面的衝突了我改爲了11000。
`3640`
image = D:\CISCO\IOS\unzip-c3640-ik9o3s-mz.124-10.bin
……
仔細看上面的拓撲配置紅字部分7200、7201、7202還有udp=10000
似乎和GNS3首選項裏的這幾個配置的端口有些關係懶得仔細研究了。
關閉GNS3重新打開拓撲順利無報錯導入配置也tm正常了哈哈ASW1起來了。