ubutun设置桥接:

vim /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# 设置静态ip
#auto enp1s0
#iface enp1s0 inet static
#address 10.3.149.26
#netmask 255.255.255.0
#gateway 10.3.149.254


auto br0
iface br0 inet static
bridge_ports enp1s0
bridge_stp on
address 10.3.149.26
netmask 255.255.255.0
gateway 10.3.149.254
#bridge_fd 0