1. 安装brctl命令
sudo apt-get install bridge-utils
2. 使用命令添加桥接网络
brctl addbr br0 ##添加桥接网卡br0brctl show ##查看
3. 激活接口
sudo ifconfig br0 up
4. 配置网络
tcbox@tcbox-B85N-PHOENIX:~$ cat /etc/network/interfaces
interfaces(5) file used by ifup(8) and ifdown(8)
auto loiface lo inet loopback
auto enp1s0iface enp1s0 inet manual
auto eno1iface eno1 inet manual
auto br0iface br0
inet staticaddress 192.168.50.38
broadcast 192.168.50.255
netmask 255.255.255.0
gateway 192.168.50.254