ubutun设置桥接
来源:原创
时间:2020-05-07
作者:脚本小站
分类:云原生
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