安装brctl命令
sudo apt-get install bridge-utils
使用命令添加桥接网络
sudo brctl addbr br0##添加桥接网卡br0
sudo brctl show ##查看
激活接口
sudo ifconfig br0 up
配置网络
sudo vi /etc/network/interfaces
tcbox@tcbox-B85N-PHOENIX:~$ cat /etc/network/interfaces
interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto enp1s0
iface enp1s0 inet manual
auto eno1
iface eno1 inet manual
auto br0
iface br0
inet static address 192.168.50.38
broadcast 10.220.50.255
netmask 255.255.255.0
gateway 192.168.50.1