我需要在一些没有 IP 地址的不同接口上桥接 2 个 VLAN。我该怎么做?
auto eth4
iface eth4 inet manual
up ifconfig eth4 up
mtu 9000
auto eth4.1320
iface eth4.1320 inet manual
post-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
mtu 9000
auto eth8
iface eth8 inet manual
up ifconfig eth8 up
mtu 9000
auto eth8.1320
iface eth8.1320 inet manual
post-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
auto br1320
iface br1320 inet manual
bridge_ports eth4.1320 eth8.1320
bridge_stp on
pre-up brctl addbr $IFACE
up ifconfig $IFACE up
down ifconfig $IFACE down
post-down brctl delbr $IFACE
bridge_maxwait 0