创建桥接设备:
# yun -y install bridge-utils
# brctl addbr br0
# ifconfig -a
# ifconfig eth0 0 up
# ifconfig -a
# brctl addif br0 eth0
# ifconfig br0 192.168.1.122/24 up
# route add default gw 192.168.1.1
# brctl show
# brctl stp br0 on
转载于:https://blog.51cto.com/luochen2015/1741547