我正在尝试将 LAN 适配器 eth0 与 Sierra 无线 LTE 调制解调器公开的 eth1 接口桥接。
当我使用以下命令创建网桥时:
brctl addbr br0
brctl addif br0 eth0 eth1
然后我调出br0
界面。
brctl show
显示网桥已启动并正在运行,并且端口设置为转发模式:
br0
bridge id 8000.e0699577868f
designated root 8000.e0699577868f
root port 0 path cost 0
max age 20.00 bridge max age 20.00
hello time 2.00 bridge hello time 2.00
forward delay 15.00 bridge forward delay 15.00
ageing time 300.01
hello timer 0.64 tcn timer 0.00
topology change timer 0.00 gc timer 15.64
flags
eth0 (1)
port id 8001 state forwarding
designated root 8000.e0699577868f path cost 4
designated bridge 8000.e0699577868f message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
eth1 (2)
port id 8002 state forwarding
designated root 8000.e0699577868f path cost 100
designated bridge 8000.e0699577868f message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
然而,一旦第一个数据包通过网桥发送到 eth1,我发现 eth1 的转发状态自动变为禁用。
br0
bridge id 8000.e0699577868f
designated root 8000.e0699577868f
root port 0 path cost 0
max age 20.00 bridge max age 20.00
hello time 2.00 bridge hello time 2.00
forward delay 15.00 bridge forward delay 15.00
ageing time 300.01
hello timer 0.64 tcn timer 0.00
topology change timer 0.00 gc timer 15.64
flags
eth0 (1)
port id 8001 state forwarding
designated root 8000.e0699577868f path cost 4
designated bridge 8000.e0699577868f message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
eth1 (2)
port id 8002 state disabled
designated root 8000.e0699577868f path cost 100
designated bridge 8000.e0699577868f message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
请告诉我如何调试这个问题,以及我们是否可以使用日志来识别问题?
答案1
这可能是由于 STP 或混杂模式造成的,但这取决于您安装服务器/客户端的设备。
问候