I have trouble getting my gateway address to reach internet on my Raspberry Pi.
I tried on 2 distinct company networks.
On first network there is no problem, every device can get his network configuration through DHCP.
On second network, Raspberries can not get their gateway address. However they get their IP addresses. On other devices (a Windows 10 or a Linux Ubuntu laptop for example) their is no trouble and everything works perfectly. I tried on my main Raspbian install but also on a fresh install of a newer version. I also tried on 2 distinct Raspberries and the result are the same.
Is there any mean to force DHCP or have you any other solution ?
(When I add my gateway address manually it works perfectly, but I can't handle this solution because I won't have any information about networks where my product is deployed)
Edit :
- I use a Raspberry Pi 3b+
- The problem happens also on a fresh new install of Raspbian Buster.
- Here is my routing table at boot :
I have the feeling the first line in this routing table is bad. When I use this command:
route add default gw 192.168.60.200 eth0
It adds the corresponding line to routing table and internet starts working.