network Conf

auto lo
iface lo inet loopback


auto eth0
iface eth0 inet static
address 192.168.0.52
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
dns-nameservers 202.106.46.151
#bridge_ports all tap0

auto eth1
iface eth1 inet static
address 192.123.1.52
netmask 255.255.255.0

auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user shengshuai

auto br0
iface br0 inet dhcp
bridge_ports all tap0

#iface br0 inet static
#address 192.168.0.52
#netmask 255.255.255.0
#network 192.168.0.0
#broadcast 192.168.0.255
#gateway 192.168.0.1

原文地址:https://www.cnblogs.com/shengshuai/p/1426179.html