Ubuntu 22.04実行TrendNet 2.5Gbe PCIeカード ローカルネットワークにアクセスするKVMで使用するために、NIC enp3s0をbr0ブリッジにバインドしました。 systemd-networkdを使用してブリッジを設定すると、ホストを再起動するまで正常に動作しました(br0はenp3s0のマスターであり、DHCPリースを受信しました)。ブリッジには ip a の 172.19.0.x などの自己割り当て IP があります。ネットワークサービスを再起動すると、ブリッジはDHCPリースを正しく受信します。奇妙なことに、ブート後にネットワークサービスをリセットする前にjounralctlをチェックすると、br0はDHCPリースを受けていると表示されます。何が間違っているのか知っている人はいますか?これは私のJournalctl -eu systemd-networkdです。これは再起動から始まり、ネットワークサービスが再起動されることを示しています。
-- Boot b5d8c30dd45c4118a5532486410ae807 --
Apr 22 22:50:34 theheartofgold systemd[1]: Starting Network Configuration...
Apr 22 22:50:34 theheartofgold systemd-networkd[1898]: br0: netdev ready
Apr 22 22:50:34 theheartofgold systemd-networkd[1898]: lo: Link UP
Apr 22 22:50:34 theheartofgold systemd-networkd[1898]: lo: Gained carrier
Apr 22 22:50:34 theheartofgold systemd-networkd[1898]: Enumeration completed
Apr 22 22:50:34 theheartofgold systemd[1]: Started Network Configuration.
Apr 22 22:50:34 theheartofgold systemd-networkd[1898]: br0: Link UP
Apr 22 22:50:34 theheartofgold systemd-networkd[1898]: enp3s0: Link UP
Apr 22 22:50:38 theheartofgold systemd-networkd[1898]: enp3s0: Gained carrier
Apr 22 22:50:38 theheartofgold systemd-networkd[1898]: br0: Gained carrier
Apr 22 22:50:40 theheartofgold systemd-networkd[1898]: br0: Gained IPv6LL
Apr 22 22:50:41 theheartofgold systemd-networkd[1898]: br0: DHCPv6 address 2601:240:8100:9810::cd19/128 (valid for 1w, preferred for 1w)
Apr 22 22:50:42 theheartofgold systemd-networkd[1898]: br0: DHCPv4 address 10.0.0.172/24 via 10.0.0.1 <------ Says that br0 received a lease but "ip a" does not reflect this and no network access
Apr 22 22:50:44 theheartofgold systemd-networkd[1898]: nebula1: Link UP
Apr 22 22:50:44 theheartofgold systemd-networkd[1898]: nebula1: Gained carrier
Apr 22 22:50:44 theheartofgold systemd-networkd[1898]: nebula1: Gained IPv6LL
Apr 22 22:50:46 theheartofgold systemd-networkd[1898]: br-f1781ea40a8c: Link UP
Apr 22 22:50:46 theheartofgold systemd-networkd[1898]: br-89c82a376cdf: Link UP
Apr 22 22:50:47 theheartofgold systemd-networkd[1898]: vethb69aed5: Link UP
Apr 22 22:50:47 theheartofgold systemd-networkd[1898]: veth8dbe0f6: Link UP
Apr 22 22:50:47 theheartofgold systemd-networkd[1898]: br-89c82a376cdf: Gained carrier
Apr 22 22:50:47 theheartofgold systemd-networkd[1898]: br-89c82a376cdf: Lost carrier
Apr 22 22:50:48 theheartofgold systemd-networkd[1898]: vethb69aed5: Gained carrier
Apr 22 22:50:48 theheartofgold systemd-networkd[1898]: veth8dbe0f6: Gained carrier
Apr 22 22:50:48 theheartofgold systemd-networkd[1898]: br-89c82a376cdf: Gained carrier
Apr 22 22:50:49 theheartofgold systemd-networkd[1898]: br-89c82a376cdf: Gained IPv6LL
Apr 22 22:50:49 theheartofgold systemd-networkd[1898]: vethb69aed5: Gained IPv6LL
Apr 22 22:50:50 theheartofgold systemd-networkd[1898]: veth8dbe0f6: Gained IPv6LL
Apr 22 22:51:49 theheartofgold systemd[1]: Stopping Network Configuration... <---- This is when I reset networkd-systemd.service
Apr 22 22:51:49 theheartofgold systemd-networkd[1898]: br0: DHCPv6 lease lost
Apr 22 22:51:49 theheartofgold systemd[1]: systemd-networkd.service: Deactivated successfully.
Apr 22 22:51:49 theheartofgold systemd[1]: Stopped Network Configuration.
Apr 22 22:51:49 theheartofgold systemd[1]: Starting Network Configuration...
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: veth8dbe0f6: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: veth8dbe0f6: Gained carrier
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: vethb69aed5: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: vethb69aed5: Gained carrier
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br-89c82a376cdf: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br-89c82a376cdf: Gained carrier
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br-f1781ea40a8c: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: nebula1: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: nebula1: Gained carrier
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br0: netdev ready
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br0: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br0: Gained carrier
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: enp3s0: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: enp3s0: Gained carrier
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: lo: Link UP
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: lo: Gained carrier
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: veth8dbe0f6: Gained IPv6LL
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: vethb69aed5: Gained IPv6LL
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br-89c82a376cdf: Gained IPv6LL
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: nebula1: Gained IPv6LL
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br0: Gained IPv6LL
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: Enumeration completed
Apr 22 22:51:49 theheartofgold systemd[1]: Started Network Configuration.
Apr 22 22:51:49 theheartofgold systemd-networkd[4856]: br0: netdev exists, using existing without changing its parameters
Apr 22 22:51:50 theheartofgold systemd-networkd[4856]: br0: DHCPv4 address 10.0.0.172/24 via 10.0.0.1 <---- DHCP Lease now shows up in "ip a" and have network access
Apr 22 22:51:50 theheartofgold systemd-networkd[4856]: br0: DHCPv6 address 2601:240:8100:9810::cd19/128 (valid for 1w, preferred for 1w)
私は他のbrとvethデバイスがdockerによって生成されたと思います。
これは私のネットワーク構成でもあります。
theheartofgold:/etc/systemd/network$ cat 20-wired.network
[Match]
Name=enp3s0
[Network]
DHCP=ipv4
theheartofgold:/etc/systemd/network$ cat br0.network
[Match]
Name=br0
[Network]
DHCP=ipv4
theheartofgold:/etc/systemd/network$ cat br0.netdev
[NetDev]
Name=br0
Kind=bridge
theheartofgold:/etc/systemd/network$ cat 10-bind.network
[Match]
Name=enp3s0
[Network]
Bridge=br0