我正在运行Ubuntu20.04.4LTS和配置的桥。我不确定默认情况下是否启用了STP或禁用了netplan创建的网桥。按照netplan文档,默认情况下它的Enabled
。
这是我的netplan配置,我没有设置stp: false
选项。
$ cat /etc/netplan/00-eno50-sriov-network-config.yaml
network:
version: 2
renderer: networkd
ethernets:
eno49:
dhcp4: no
dhcp6: no
mtu: 9000
eno50:
dhcp4: no
dhcp6: no
mtu: 9000
virtual-function-count: 12
vlans:
# br-mgmt
eno49.51:
id: 51
link: eno49
dhcp4: no
dhcp6: no
mtu: 1500
# br-vxlan
eno49.29:
id: 29
link: eno49
dhcp4: no
dhcp6: no
mtu: 9000
bridges:
br-mgmt:
dhcp4: no
dhcp6: no
interfaces: [ eno49.51 ]
addresses: [ 10.74.1.12/23 ]
gateway4: 10.74.0.1
nameservers:
addresses: [ 10.30.0.8, 10.30.0.10 ]
search: [ foo.com, bar.com ]
br-vxlan:
interfaces: [ eno49.29 ]
addresses: [ 172.29.11.12/21 ]
dhcp4: no
dhcp6: no
br-vlan:
interfaces: [ eno49 ]
dhcp4: no
dhcp6: no
当我使用brctl检查stp状态时,这意味着STP是禁用的。这与Ubuntu的官方医生相矛盾。
$ brctl show
bridge name bridge id STP enabled interfaces
br-mgmt 8000.38eaa7327d40 no eno49.51
br-vlan 8000.38eaa7327d40 no eno49
br-vxlan 8000.38eaa7327d40 no eno49.29
发布于 2023-02-15 17:20:13
如果行为与文档相矛盾,那就是错误。请在bugs.unchpad.net/netplan上报告bug。
https://askubuntu.com/questions/1454967
复制相似问题