Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread Andrei Borzenkov
02.06.2025 19:36, daggs wrote: Sent: Monday, June 02, 2025 at 7:09 PM From: "Andrei Borzenkov" To: "daggs" Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] accepting dhcp address only from a specific mask 02.06.2025 18:30, daggs wrote: Greetings Andrei, here: $ ip r 0.0.0

Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread daggs
> Sent: Monday, June 02, 2025 at 7:09 PM > From: "Andrei Borzenkov" > To: "daggs" > Cc: systemd-devel@lists.freedesktop.org > Subject: Re: [systemd-devel] accepting dhcp address only from a specific mask > > 02.06.2025 18:30, daggs wrote: > > Greetings Andrei, > > > > here: > > $ ip r > > 0.0.0.

Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread Andrei Borzenkov
02.06.2025 18:30, daggs wrote: Greetings Andrei, here: $ ip r 0.0.0.0 dev enp1s0 scope link default dev enp1s0 scope link Those two lines are most certainly a problem. If they are installed by systemd-networkd, I would call it a bug. Even with IPv4 local addresses they are still wrong. de

Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread daggs
Greetings Mantas,   here is what the command you've requested shows:   ● 2: enp1s0   Link File: /usr/lib/systemd/network/99-default.link    Network File: /etc/systemd/network/enp1s0.network   State: routable (configured)    Online

Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread daggs
Greetings Andrei, here: $ ip r 0.0.0.0 dev enp1s0 scope link default dev enp1s0 scope link default via 192.168.0.1 dev enp1s0 src 192.168.0.10 metric 1024 169.254.0.0/16 dev enp1s0 scope link src 169.254.39.180 192.168.0.0/24 dev enp1s0 scope link src 192.168.0.10 metric 1024 192.168.0.1

Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread Andrei Borzenkov
02.06.2025 16:07, daggs wrote: Greetings, I have a qemu vm which runs a systemd based buildroot image, the vm's nic is virtio, if I configure systemd to auto start the nic, I get two ips for the only nic on the system, a valid one and in invalid one. in this case, I can only connect to local l

[systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread daggs
Greetings, I have a qemu vm which runs a systemd based buildroot image, the vm's nic is virtio, if I configure systemd to auto start the nic, I get two ips for the only nic on the system, a valid one and in invalid one. in this case, I can only connect to local lan but not outside of the last, I

Re: [systemd-devel] accepting dhcp address only from a specific mask

2025-06-02 Thread Mantas Mikulėnas
The second address looks like it comes from link-local, not from DHCP. I suspect you have a higher-priority .network file that also enables DHCP like yours does, but *also* sets "LinkLocalAddressing=both", like some of systemd's built-in example .network files tend to do. Check `networkctl status e