kvm虚拟winxp。网络配置桥接导致主宿机都不能上网。我的主机的ip是192.168.0.120。情况紧急请救达人!
具体配置如下:
auto eth0
iface eth0 inet static
address 192.168.0.120
netmask 255.255.255.0
gateway 192.168.0.1
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user chang
auto br0
iface br0 inet static
bridge_ports eth0 tap0
address 192.168.0.121
netmask 255.255.255.0
gateway 192.168.0.1
如错,怎么更改?是不是要卸载network-manager?
kvm虚拟winxp。网络配置桥接导致主宿机都不能上网。我的主机的ip是192.168.0.120。情况紧急请救达人!
-
- 帖子: 131
- 注册时间: 2009-11-15 20:29
- 来自: Ningpo,Chekiang
-
- 帖子: 131
- 注册时间: 2009-11-15 20:29
- 来自: Ningpo,Chekiang
Re: kvm虚拟winxp。网络配置桥接导致主宿机都不能上网。我的主机的ip是192.168.0.120。情况紧急请救
chang@chang-desktop:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
chang@chang-desktop:~$
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
chang@chang-desktop:~$
-
- 帖子: 131
- 注册时间: 2009-11-15 20:29
- 来自: Ningpo,Chekiang
Re: kvm虚拟winxp。网络配置桥接导致主宿机都不能上网。我的主机的ip是192.168.0.120。情况紧急请救
tap0 is not a slave of br0
-
- 帖子: 131
- 注册时间: 2009-11-15 20:29
- 来自: Ningpo,Chekiang
Re: kvm虚拟winxp。网络配置桥接导致主宿机都不能上网。我的主机的ip是192.168.0.120。情况紧急请救
* You need a qemu-ifup script containing the following:
#!/bin/sh
set -x
switch=br0
if [ -n "$1" ];then
/usr/bin/sudo /usr/sbin/tunctl -u `whoami` -t $1
/usr/bin/sudo /sbin/ip link set $1 up
sleep 0.5s
/usr/bin/sudo /usr/sbin/brctl addif $switch $1
exit 0
else
echo "Error: no interface specified"
exit 1
fi
qemu-ifup脚本文件怎样编辑?
#!/bin/sh
set -x
switch=br0
if [ -n "$1" ];then
/usr/bin/sudo /usr/sbin/tunctl -u `whoami` -t $1
/usr/bin/sudo /sbin/ip link set $1 up
sleep 0.5s
/usr/bin/sudo /usr/sbin/brctl addif $switch $1
exit 0
else
echo "Error: no interface specified"
exit 1
fi
qemu-ifup脚本文件怎样编辑?
-
- 帖子: 743
- 注册时间: 2007-09-18 8:45
Re: kvm虚拟winxp。网络配置桥接导致主宿机都不能上网。我的主机的ip是192.168.0.120。情况紧急请救
没用过这个,怎么桥接会出那么东西出来的吗
-
- 帖子: 131
- 注册时间: 2009-11-15 20:29
- 来自: Ningpo,Chekiang
Re: kvm虚拟winxp。网络配置桥接导致主宿机都不能上网。我的主机的ip是192.168.0.120。情况紧急请救
念佛求人不如求己。参考国外技术网站成功解决问题。具体附图: