ifconfig 显示所有的网桥来自哪里?

ifconfig 显示所有的网桥来自哪里?

我正在使用 Ubuntu 18.04.3 LTS

作为一名开发人员,我Dockerdocker-compose虚拟盒流浪汉已安装

如果我在终端输入:

$ ifconfig

我得到了一长串的网络桥列表。

br-2fdf26d8ad11: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.240.1  netmask 255.255.240.0  broadcast 192.168.255.255


br-3097f1941dd7: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.32.1  netmask 255.255.240.0  broadcast 192.168.47.255


br-604e362c8abb: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.28.0.1  netmask 255.255.0.0  broadcast 172.28.255.255


br-6bec4010864a: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.23.0.1  netmask 255.255.0.0  broadcast 172.23.255.255

br-729cfdd5c2dd: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.48.1  netmask 255.255.240.0  broadcast 192.16628.63.255


br-72c49f160076: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.19.0.1  netmask 255.255.0.0  broadcast 172.19.255.255

br-765c8f8c1edf: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255


br-7b6ec7d56aec: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.31.0.1  netmask 255.255.0.0  broadcast 172.31.255.255


br-9392c09745cd: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.27.0.1  netmask 255.255.0.0  broadcast 172.27.255.255


br-97685d1968fe: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.26.0.1  netmask 255.255.0.0  broadcast 172.26.255.255

br-9b033123127c: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255

br-bc2ff863085c: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.96.1  netmask 255.255.240.0  broadcast 192.168.111.255

br-bcc4b1218247: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.30.0.1  netmask 255.255.0.0  broadcast 172.30.255.255


br-d7d1dd0718f3: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.80.1  netmask 255.255.240.0  broadcast 192.168.95.255


br-dd4949ff923c: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.25.0.1  netmask 255.255.0.0  broadcast 172.25.255.255


br-de108e80ee4d: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.21.0.1  netmask 255.255.0.0  broadcast 172.21.255.255

br-e37000236cd8: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.240.0  broadcast 192.168.15.255

br-ec26f968abd4: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.20.0.1  netmask 255.255.0.0  broadcast 172.20.255.255


br-fa80bcc7af95: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.24.0.1  netmask 255.255.0.0  broadcast 172.24.255.255

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.29.0.1  netmask 255.255.0.0  broadcast 172.29.255.255

enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>

vboxnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.22.101.1  netmask 255.255.255.0  broadcast 172.22.101.255

wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1492
        inet 192.168.2.5  netmask 255.255.255.0  broadcast 192.168.2.255

我不确定他们都来自哪里。

我的问题是,如果我想使用公共网络(火车、机场等),它们通常在 172.xx 上运行 -> 通常它已经被桥梁使用,所以我必须先将其关闭然后删除它,如我的所述博客

sudo ip link set br-bcc4b1218247 down
sudo brctl delbr br-bcc4b1218247

我还读到,如果您使用 Ubuntu 网络管理器,它们都可以恢复。

我试图了解它们来自哪里,但我还没有真正明白。

相关内容