我和这个人有同样的问题:关闭并删除已启动的网桥接口
但是该解决方案对我不起作用。
我使用brctl delif从网桥中删除所有接口。然后,使用ifconfig或ip将链接设置为down。然后,我尝试使用brctl br0删除网桥“网桥br0仍在运行;无法删除它”。
该平台是Raspberry Pi上的Raspbian。
有任何想法吗?
来自ifconfig和ifconfig -a的相同输出:
br0 Link encap:Ethernet HWaddr 54:e6:fc:89:be:4b
inet6 addr: fe80::56e6:fcff:fe89:be4b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:6569 (6.4 KiB)
eth0 Link encap:Ethernet HWaddr b8:27:eb:47:0d:a5
inet addr:192.168.2.29 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe47:da5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:287 errors:0 dropped:0 overruns:0 frame:0
TX packets:389 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25109 (24.5 KiB) TX bytes:64247 (62.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
mon.wlan1 Link encap:UNSPEC HWaddr 54-E6-FC-89-BE-4B-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:277 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:62535 (61.0 KiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 80:1f:02:84:f8:3f
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:17 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3828 (3.7 KiB) TX bytes:1294 (1.2 KiB)
wlan1 Link encap:Ethernet HWaddr 54:e6:fc:89:be:4b
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::56e6:fcff:fe89:be4b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:21016 (20.5 KiB)
然后
—
njsg
br0
仍然是。因此,您得到的错误并不奇怪。也许试试ifconfig br0 down
?
也许我对这个问题不够清楚。我已经尝试过了。两者都使用ifconfig和ip链接。
—
LinusK
也许您正在运行某种守护程序,并自动启动可用的网络设备?无论发生什么,您都需要它在破坏网桥之前停止启动。
—
njsg
ifconfig
和ifconfig -a
?