vmware 使用bridge上网

配置/etc/network/interfaces

#The loopback network interface
auto lo
iface lo inet loopback

# The primary network interfacefor kvm
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
	address 192.168.0.177 #地址要和宿主在一个网段
	network 192.168.0.0   #其余照抄
	netmask 255.255.255.0
	broadcast 192.168.0.255
	gateway 192.168.0.1
	dns-nameservers 202.103.44.150 144.144.144.144
	bridge_ports eth0
	bridge_fd 9
	bridge_hello 2
	bridge_maxage 12
	bridge_stp off

sudo ifup br0

sudo ifup eth0

sudo /etc/init.d/networking restart

sudo service networking restart

 

你可能感兴趣的:(vmware)