linux下kvm配置橋接網路問題
1、DHCP網橋
命令:
vim /etc/network/interfaces
程式碼:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_stp no
bridge_maxwait 0
bridge-fd 0
配置閘道器:
sudo route add default gw 10.160....
重啟網路:
/etc/init.d/networking restart