1.创建网桥
sudo brctl addr br0(网桥名称)
2.brctl: command not found
yum install cunctl bridge-utils
3.设置ip和子网掩码
sudo ifconfig br0(网桥名称) 192.168.31.45 netmask 255.255.255.0(网关)
标签:bridge,sudo,网络,br0,brctl,网桥,名称,docker
来源: https://www.cnblogs.com/yoyo1216/p/10882621.html