On 10/05/2019 18:05, Adrian wrote:
> In message , The Natural Philosopher
> writes
>> 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
>>
>>
>>
>>
>
> Thanks.
>
> This is rather odd. The two PIs that are behaving don't have a
> /etc/dhcpcd.conf file at all. The other four have one, but the relevant
> entries were commented out.
>
That is consistent with a full DHCP non static address.
Is your new router advertising the wrong gateway?
> It will be interesting to see if things behave now.
>
> Adrian
--
Canada is all right really, though not for the whole weekend.
"Saki"
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|