On 10/05/2019 15:20, Adrian wrote:
> I've used
> route delete default gw 192.168.1.1 eth0
> route add default gw 192.168.1.254 eth0
>
> to reset the default gateway, but in each case, overnight the default
> has reset itself back to 192.168.1.1 None of the PIs have been
> rebooted. I'm not convinced that this is a coincidence, but my WIN7 PC
> also reset the default gateway mid evening (whilst I was using it),
> again to 192.168.1.1.
>
> Any suggestions on how I can persuade my PIs to stick to the proper GW ?
Have a feeling default routes are set elsewhere these days
Lemme see in Mi Pi...
Ah yes. Imn /etc/dhcpcd.conf
there will be a line saying
static routers=192.168.1.254 or whatever.
Make sure it is.
Pis tend to use dhcp and te easy way to static them is to frig with dhcp
- but these Pis might hacve decided to 'renew their leases'
And also make sure that the router* isnt advertising a bad gateway
*or some other dhcp master on the LAN
--
Labour - a bunch of rich people convincing poor people to vote for rich
people
by telling poor people that "other" rich people are the reason they are
poor.
Peter Thompson
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|