先用ifconfig br_name down 停掉网桥
再用brctl delbr br_name 删除网桥
为了方便,我编写了shell脚本来删除网桥 #!/bin/bash #本脚本删除的是br-开头的网桥 BRIDGE_LIST=$(sudo brctl show | cut -f 1 | grep -w br[0-9])echo "即将删除的网桥是:"$BRIDGE_LISTfor i in $BRIDGE_LISTdo sudo ifconfig $i down sudo brctl delbr $idoneecho "删除之后用主机网桥状态如下:"echo sudo brctl show