開啟了XEND以後無法使用網路
我在我的筆記本上RHEL5上安裝了XEN,但是發現現在只要xend啟用了,筆記本就無法訪問外網了,當然也無法訪問伺服器和路由器.請問這是為什麼啊?我使用固定IP地址和無線網路連接路由器.
《解決方案》
回復 #1 bruce_lrd 的帖子
XEN的網路配置信息,和路由信息,具體的分析一下
《解決方案》
我將無線網路關閉,用有線ETH0,結果網路變得一切正常,但是查看路由信息和其他都似乎跟無線網路時相同,這個問題很鬱悶啊!!估計跟無線網卡的配置什麼的有關係
《解決方案》
回復 #3 bruce_lrd 的帖子
《解決方案》
已經看了brctl show,也看了ifconfig和route -n, 其中,route -n看不出端倪,跟原來一樣,ifconfig 好像也沒問題,等下把三個都貼上來!!!
《解決方案》
這是ifconfig的內容:
eth1 Link encap:Ethernet HWaddr 00:0E:35:6A:4A:84
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:210 (210.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:85 (85.0 b) TX bytes:85 (85.0 b)
peth1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:396 (396.0 b)
Interrupt:21 Base address:0x2000 Memory:d0400000-d0400fff
vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:210 (210.0 b) TX bytes:0 (0.0 b)
xenbr1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:140 (140.0 b) TX bytes:0 (0.0 b)
這裡是route -n的內容:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.1.80 0.0.0.0 UG 0 0 0 eth1
這是bridge show后的結果
bridge name bridge id STP enabled interfaces
xenbr1 8000.feffffffffff no peth1
vif0.1
請大家幫幫忙,謝謝
《解決方案》
因為有兩塊網卡, xend不知道用哪塊做 bridge, 給你指到eth0去了.
《解決方案》
哥們看下這個
# grep eth /etc/xen/scripts/network-bridge
# (default eth${vifnum}) to it, copies the IP addresses from the device
# netdev The interface to add to the bridge (default eth${vifnum}).
# antispoof Whether to use iptables to prevent spoofing (default no).
# vdev="veth${vifnum}"
netdev=${netdev:-eth${vifnum}}
vdev="veth${vifnum}"
# Returns 0 if the interface named exists (whether up or down), 1 otherwise.
mac=`ip link show ${netdev} | grep 'link\/ether' | sed -e 's/.*ether \(..:..:..:..:..:..\).*/\1/'`
mac=`ip link show ${netdev} | grep 'link\/ether' | sed -e 's/.*ether \(..:..:..:..:..:..\).*/\1/'`
#
《解決方案》
看不太懂.
印象中是要做一次網卡變換的. 你的無線是不是要認證的? 如果 是 就有問題了.