#ifconfig eth 0 0.0.0.0 promisc up
配置为混杂模式,不能有IP
#brctl addbr vswitch0
添加网桥<名称任意>
#brctl addif vswitch0 eth0
添加eth0网卡
#ifconfig vswitch0 192.168.1.1.254 netmask 255.255.255.0 up
配置网桥IP
#route add default gw 192.168.1.1 dev vswitch0
添加网关
如果要删除网桥
#ifconfig vswitch0 down
#brctl delbr vswitch0
如果需要绑定MAC地址
ifconfig vswitch0 hw ether MAC地址