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.
It will be interesting to see if things behave now.
Adrian
--
To Reply :
replace "bulleid" with "adrian" - all mail to bulleid is rejected
Sorry for the rigmarole, If I want spam, I'll go to the shops
Every time someone says "I don't believe in trolls", another one dies.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|