就实现STP功能,控制加入bridge端口的状态,简单的建了个桥,加了一个端口进去,使能stp,在端口上设置state 命令如下
brctl addbr br0
brctl addif br0 swp0
brctl stp br0 on
bridge link set dev swp0 state 3
RTNETLINK answers: Device or resource busy
您这样操作一下:
Swp0 和网络设备连接
ip link set swp0 up
brctl addbr br0
brctl addif br0 swp0
bridge link set dev swp0 state 3
brctl stp br0 on
详情回复
发表于 2021-7-16 15:22