- 论坛徽章:
- 0
|
我在 windows 安装 winpcap 并设置桥接网络, 让虚拟机上网。
虚拟机 debian 设置如下
address 192.168.1.2
netmask 255.255.255.192
gateway 192.168.1.1 (这里应该写网关的 ip 还是 windows 主机 ip?)
主机 windows 设置如下
address 192.168.1.1
netmask 255.255.255.192
gateway 192.168.1.100
现在虚拟机可以 ping 到 192.168.1.* 的局域网内机器, 唯独 192.168.1.100 网关ping不到, 所以其他192.168.*.*的机器也 ping 不到.
windows 主机可以 ping 到虚拟机, 局域网内其他主机 ping 不到 虚拟机.
netstat -rn
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.192 0.0.0.0 255.255.255.192 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
搞了半天搞不定, 请教大家. |
|