打开interfaces 配置文件
vi /etc/network/interfaces
将pent0 的dhcp 修改为 static,并添加IP,掩码,网关和DNS
# The primary network interface
iface eth0 inet manual
auto pnet0
#iface pnet0 inet dhcp
iface pnet0 inet staticpre-up ip link set dev eth0 upbridge_ports eth0bridge_stp offaddress 192.168.163.3netmask 255.255.255.0gateway 192.168.163.2dns-nameserver 192.168.163.2
然后重新 network
/etc/init.d/networking restart