Skip to content

DHCP offer is not detected when running on tagged VLAN interface #490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jseifertscionics opened this issue Mar 19, 2025 · 0 comments
Open

Comments

@jseifertscionics
Copy link

jseifertscionics commented Mar 19, 2025

running on the bare (untagged) interface works but with the tagged interface (VLAN ID 3) i get this instead:

% sudo dhcpcd -d --noipv4ll --nogateway enp0s31f6.3 
dhcpcd-10.0.6 starting
chrooting as dhcpcd to /usr/lib/dhcpcd
sandbox: seccomp
spawned manager process on PID 85150
spawned privileged proxy on PID 85151
spawned network proxy on PID 85152
spawned controller proxy on PID 85153
DUID 00:01:00:01:2e:a1:3a:af:90:2e:16:19:f1:16
enp0s31f6.3: executing: /usr/lib/dhcpcd/dhcpcd-run-hooks PREINIT
enp0s31f6.3: executing: /usr/lib/dhcpcd/dhcpcd-run-hooks CARRIER
enp0s31f6.3: IAID ff:00:00:03
enp0s31f6.3: adding address fe80::a444:9e76:4355:c8ae
enp0s31f6.3: pltime infinity, vltime infinity
ipv6_addaddr1: Permission denied
enp0s31f6.3: delaying IPv6 router solicitation for 0.2 seconds
enp0s31f6.3: delaying IPv4 for 0.6 seconds
enp0s31f6.3: soliciting an IPv6 router
enp0s31f6.3: delaying Router Solicitation for LL address
enp0s31f6.3: reading lease: /var/lib/dhcpcd/enp0s31f6.3.lease
enp0s31f6.3: soliciting a DHCP lease
enp0s31f6.3: sending DISCOVER (xid 0xd16f80e8), next in 3.5 seconds
enp0s31f6.3: spawned BPF BOOTP on PID 85156
…
timed out
enp0s31f6.3: executing: /usr/lib/dhcpcd/dhcpcd-run-hooks STOPPED
enp0s31f6.3: BPF BOOTP exited from PID 85156
enp0s31f6.3: control proxy exited from PID 85153
enp0s31f6.3: network proxy exited from PID 85152
dhcpcd exited

with wireshark i can see the DHCP offer from the server so i assume dhcpcd should too.
i can provide a filtered wireshark capture if required.
Kernel: 6.11.0-19-generic #19~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 17 11:51:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
The untagged lower interface (enp0s31f6) has working DHCP with a different subnet.

Running dhcpcd without a specified interface results in a normal outcome for the tagged interface:

% sudo dhcpcd --nobackground
dhcpcd-10.0.6 starting
dev: loaded udev
DUID 00:01:00:01:2e:a1:3a:af:90:2e:16:19:f1:16
…
enp0s31f6: IAID 16:19:f1:16
…
enp0s31f6.3: IAID ff:00:00:03
enp0s31f6.3: adding address fe80::a444:9e76:4355:c8ae
ipv6_addaddr1: Permission denied
…
enp0s31f6.3: soliciting an IPv6 router
enp0s31f6.3: soliciting a DHCP lease
enp0s31f6: soliciting an IPv6 router
enp0s31f6: soliciting a DHCP lease
…
enp0s31f6.3: offered 192.168.1.109 from 192.168.1.1
enp0s31f6.3: probing address 192.168.1.109/24
…
Dropped protocol specifier '.dhcp' from 'enp0s31f6.dhcp'. Using 'enp0s31f6' (ifindex=2).
veth177c8db: probing for an IPv4LL address
enp0s31f6.3: leased 192.168.1.109 for 7200 seconds
enp0s31f6.3: adding route to 192.168.1.0/24
enp0s31f6.3: adding default route via 192.168.1.1
Found multiple interfaces (enp0s31f6.3, enp0s31f6) matching with 'enp0s31f6.3.dhcp'. Using 'enp0s31f6.3' (ifindex=24).
…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant