我的笔记本电脑上有很多网桥,Ubuntu 22.04
ip link show type bridge
节目
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 52:53:00:0a:c6:8d brd ff:ff:ff:ff:ff:ff
3: mpqemubr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 52:53:00:83:b8:32 brd ff:ff:ff:ff:ff:ff
5: br-9910826e1e83: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 02:32:22:ee:e6:a7 brd ff:ff:ff:ff:ff:ff
6: br-9ceb855c322b: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:32:58:1c:77:17 brd ff:ff:ff:ff:ff:ff
7: br-f6d0af00ea88: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
我试过
ip link xstats type bridge
virbr0
IGMP queries:
RX: v1 0 v2 0 v3 0
TX: v1 0 v2 0 v3 0
IGMP reports:
RX: v1 0 v2 0 v3 0
TX: v1 0 v2 0 v3 0
IGMP leaves: RX: 0 TX: 0
IGMP parse errors: 0
MLD queries:
RX: v1 0 v2 0
TX: v1 0 v2 0
MLD reports:
RX: v1 0 v2 0
TX: v1 0 v2 0
MLD leaves: RX: 0 TX: 0
MLD parse errors: 0
我不明白输出。如何获取有关接口的信息以及如何创建网桥?
您无法获得有关“桥是如何创建的”的信息(也就是说,除了识别某些命名约定外,无法判断桥是由 libvirt、docker、netplan、手动命令等创建的)。
您可以使用该命令获取连接到网桥的链接列表
ip
。显示所有网桥链接:显示与特定网桥关联的链接:
您可以使用
-d
(-details
) 选项获取有关网桥(或其他接口)的更多信息;比较:和: