ldw34322015-05-22 14:07
linux 网桥配置实例
网桥工作在链路层,通过网卡的MAC地址进行数据交换,可以通网桥转发数据和其他网桥过滤数据
1、创建网桥设备 br0:
brctl addbr br0
2、向br0中添加网卡:
eth0 eth1
brctl addif eth0
brctl addif eth1
3、从网桥中删除网卡:
eth0 eth1
brctl delif eth0
brctl delif eth1
4、删除网桥 br0 :
brctl delbr br0