dynamips桥接到本地网卡后,ping不通主机??
发布: 2010-3-10 09:14 | 作者: hiber | 来源: 无忧网客联盟主站
net配置文件:
autostart = False
[localhost]
port = 7200
udp = 10000
workingdir = ..\tmp\
[[router R1]]
image = ..\IOS\7200.bin
model = 7200
console = 3001
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
f0/0 = SW1 1
s1/0 = R2 s1/0
f2/0 = NIO_udp:30001:127.0.0.1:20001
idlepc = 0x60660530
[[router R2]]
image = ..\IOS\7200.bin
model = 7200
console = 3002
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
s1/0 = R1 s1/0
idlepc = 0x607505f0
[[router R3]]
image = ..\IOS\7200.bin
model = 7200
console = 3003
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
f0/0 = SW1 3
idlepc = 0x60787464
[[router R4]]
image = ..\IOS\7200.bin
model = 7200
console = 3004
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
f0/0 = SW1 2
f2/0 = NIO_udp:30002:127.0.0.1:20002
idlepc = 0x60787464
[[ethsw SW1]]
1 = dot1q 1
2 = dot1q 1
3 = dot1q 1
4 = access 1 NIO_gen_eth:\Device\NPF_{222BD026-7303-4565-A91F-E70CF3B16320}
START R4 后:
en
conf t
no ip domain-lookup
line con 0
logg syn
no exec-timeout
exit
int fa0/0
ip add 172.16.80.100 255.255.255.0
no shutdown
exit
ip http secure-server
ip http authentication local
username admin privilege 15 password admin
line vty 0 4
login local
transport input telnet ssh
PC是千兆网卡
哪个大侠帮一下啊
谢了先!
我先去抓个包看看。
autostart = False
[localhost]
port = 7200
udp = 10000
workingdir = ..\tmp\
[[router R1]]
image = ..\IOS\7200.bin
model = 7200
console = 3001
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
f0/0 = SW1 1
s1/0 = R2 s1/0
f2/0 = NIO_udp:30001:127.0.0.1:20001
idlepc = 0x60660530
[[router R2]]
image = ..\IOS\7200.bin
model = 7200
console = 3002
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
s1/0 = R1 s1/0
idlepc = 0x607505f0
[[router R3]]
image = ..\IOS\7200.bin
model = 7200
console = 3003
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
f0/0 = SW1 3
idlepc = 0x60787464
[[router R4]]
image = ..\IOS\7200.bin
model = 7200
console = 3004
npe = npe-400
ram = 128
confreg = 0x2142
exec_area = 64
mmap = False
slot0 = PA-C7200-IO-FE
slot1 = PA-4T
slot2 = PA-FE-TX
f0/0 = SW1 2
f2/0 = NIO_udp:30002:127.0.0.1:20002
idlepc = 0x60787464
[[ethsw SW1]]
1 = dot1q 1
2 = dot1q 1
3 = dot1q 1
4 = access 1 NIO_gen_eth:\Device\NPF_{222BD026-7303-4565-A91F-E70CF3B16320}
START R4 后:
en
conf t
no ip domain-lookup
line con 0
logg syn
no exec-timeout
exit
int fa0/0
ip add 172.16.80.100 255.255.255.0
no shutdown
exit
ip http secure-server
ip http authentication local
username admin privilege 15 password admin
line vty 0 4
login local
transport input telnet ssh
PC是千兆网卡
哪个大侠帮一下啊
谢了先!
我先去抓个包看看。



那是不是SDM就连不上了???
我的经验分享,如转贴请注明作者:iamxiaop和本站网址:http://www.netemu.cn/bbs/,谢谢!我折腾了一整天了,饭都没有心思吃,希望我的摸索能为黑暗中挣扎的人们指引前进的道路。
使用环境:英文vista操作系统,HP 6710B笔记本,千兆网卡,悉尼Lane Cove一陋室里。
我的不堪回首的痛苦经历, 经过彷徨,失望,绝望的挣扎之后,终于光明一片。
先碰到的问题是:dynamips不能获得网卡参数,总是提示lbcap和winpcap没有安装,搜索网上各种海量信息进行筛选和分析,发现 winpcap安装后,会产生一个NPF的服务,但是不知为什么vista操作系统缺省是禁用这个服务的,于是在注册表中将之打开,问题解决,可以获得网卡参数。哈哈哈!(还有一个办法是论坛上有朋友说安装ethereal,在安装过程中选择开启NPF服务。
Q-18: Is it possible to start WinPcap automatically when the system boots?
A: You can change the start settings of the NPF service to "automatic" or "system". A way to do this is changing the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NPF\Start from 0x3 (SERVICE_DEMAND_START) to 0x2 (SERVICE_AUTO_START) or 0x1 (SERVICE_SYSTEM_START). This works only in Windows NTx.
短暂的快乐迎来的是更大的痛苦,dynamips的7200路由器和本机网卡接的网关互相ping通,本机网卡和这个网关也能互相ping通。但是本机网卡和dynamips的7200路由器就是死活不通。
debug的信息显示7200收到的数据有校验和错误。
再网上又搜索海量信息,进行筛选和分析,发现有可能是网卡的配置问题,我把网卡设置成100M全双工,还是不行,再把网卡的tcp/udp checksum offload设置成disable,哈哈哈!问题解决啦!
注意:网卡的设置是在网卡的硬件设置属性里选择高级,那里有很多参数可以设置的。每次设置之后,我都将dynamips重新启动一下,否则修改参数后,连网关都ping不通了。
如果你觉得好,就请顶一下,让更多的人能够看到。谢谢!
根据上面大侠的方法,解决了PING不通的问题
但是连上SDM后,就停在下面那里不动了,大侠们,谁知道啊怎么办啊,谢了先!!!
1.gif