解决关闭网桥接口时出现bridge br0 is still up ; can't delete it的报错

问题起因:

不小心错误地在虚拟机里开了一个桥接接口并设定了接口设备和配置文件,导致虚拟机网络不通

使用brctl delbr 命令出现报错:

bridge br0 is still up ; can't delete it

解决办法:

接口在工作时是删除不了的,需要先关闭网络接口

ifconfig br0 down

猜你喜欢

转载自www.cnblogs.com/ChairmanYSL/p/9575301.html
br0