酷!學園
技術討論區 => Virtualization 虛擬化技術 => 主題作者是: secret1029 於 2007-12-25 17:20
-
我在虛擬機器有兩個OS, 一個是Linux,一個是XP,Linux安裝兩個主端網路介面(eth0.eth1),XP安裝一個主端介面(eth2),
我先用實體OS(Vista)將eth1跟eth2橋接,然後在Vista設定無線網路給eth0共享,Linux裡面我也設定eth0跟eth1橋接
無線上網 -------Vista
|--------------- Linux -----------------------XP
| eth0 ---橋接--- eth1 ---- Vista橋接 ---- eth2
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 192.168.0.110 up
echo "1" > /proc/sys/net/ipv4/ip_forward
route add default gw 192.168.0.1
Linux這台虛擬機器可以上網,沒有問題,但是XP那台虛擬機器卻一直上不了網,可以ping到GW192.168.0.1跟中華dns 168.95.1.1
XP網路設定 ip: 192.168.0.119 netmask:255.255.255.0 GW:192.168.0.1 DNS:168.95.1.1
Linux Route table
Destination Gateway Genmask Iface
192.168.0.0 * 255.255.255.0 br0
default 192.168.0.1 0.0.0.0 br0
請問是否有少什麼步驟?