I have a dual boot laptop running windows 10 pro and fedora 36 workstation.
for some reason when I connect the ethernet cable to a gateway the wired interface is not able to reach the dhcp server.
I sniffed the packages using tcpdump and wireshark and I see that the dhcp requests packets do not reach the dhcp server (openwrt router).
the laptop is connected to a netgear router running in wireless AP mode.
But if I boot on windows or if i conntec to this router other devices like a raspberry pi I am able to obtain an ip address.
why is linux not even able to get the ip address?
I also use wifi so switchiting to system-networkd is not an option
here is the output of nmcli conn show of the Wired connection:
I am however able to obtain an ip address using wifi.
the question is why linux and only linux is not able to obtain an ip address while hardwired?
I tried to troubleshoot with wireshark and with nmap scripts but nothing works… the dhcp packet do not reach the dhcp server when on linux and using the wired connection.
I tested with fedora 37 live cd and with kali linux and its the same issue. no ip on wired connection.
something related to hops and network manager perhaps?
You said that other devices are able to connect. I assume that means they also connect with the ethernet port and not wifi.
If so then it seems specific to that laptop and may be a cable, the ethernet adapter on the laptop, or some config within the laptop.
This implies you have 2 routers. One is the netgear that you are directly connecting to and the other is the actual gateway that is acting as the dhcp server.
What mode is the netgear using. Is it an actual independent AP or is it acting as a wifi repeater (range extender)? and simply relaying connections through to the gateway.
Where did you sniff the packets? At the gateway router, at the port on the netgear (both sides), on the port at the laptop?
It is critical to know exactly where the break in communications is occurring to know what the cause is. If the connection request is reaching the gateway (dhcp server) but the reply is not returning that is different than the request never reaching the gateway router (for whatever reason).
]If it were the cable of network adapter it would not work when i boot said laptop in windows.
other devices also connect with ethernet and get an IP
the netgear is a router running in AP mode. and it is simply relaying connection through. the main router which is connected to the internet does not have wifi.
I sniffed the packet both in the dhcp server and in the laptop.
the request is clearly not reaching the dhcp server when running linux.
If i connect directly the laptop to the dhcp server i get the ip.
One could assume that dhcp passthrough is disabled in the lan interfaces of the netgear but then why other devices and operating systems different than linux can reach the dhcp server?
I don’t know how to sniff packet on both sides of the netgear port.
Yeah — it’s a “global” NetworkManager option, so it will change them both.
Yeah, definitely strange. I’m not sure what’s going on… we could try to diagnose further if you want. As I understand it, your network looks like this:
x x x xxxxxxxxxxxx
x xx xx
xx Internet x
x x xx
xxxx xxxx x
| | | |
| OpenWRT +--------+ NetGear |
| Router | | AP |
| | | |
| Laptop |
That is: you’re connecting through the Netgear AP either way. Correct?