我有一个物理接口 eth0,我想创建两个虚拟接口并将它们与 eth0 桥接。为此,我这样做:
#Create the virtual interfaces
tunctl -t tap0
tunctl -t tap1
ifconfig tap0 up
ifconfig tap1 up
#Create the bridge
brctl addbr br0
brctl stp br0 off
brctl addif br0 eth0
brctl addif br0 tap0
brctl addif br0 tap1
#Turning up the bridge
ifconfig br0 up
Run Code Online (Sandbox Code Playgroud)
然而,我的问题是,如果分接接口在网桥中始终显示为禁用,并且没有流量流向它们。
$brctl show br0
bridge name bridge id STP enabled interfaces
br0 8000.080027cabeba no eth2
tap0
tap1
$brctl showstp br0
br0
bridge id 8000.080027cabeba
designated root 8000.080027cabeba
root port 0 path …Run Code Online (Sandbox Code Playgroud)