우분투 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