View previous topic :: View next topic |
Author |
Message |
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Fri Aug 23, 2019 4:32 pm Post subject: [solved] bogus default routes (dhcpcd) |
|
|
Hello,
I found that when dhcpcd creates an IPv4 LL ip address (169.*), it also creates its own default route to nowhere.
That means internet connectivity goes down whenever an additional temporary interface is connected to do some work.
Networkmanager is not involved, i don't use it. netifrc is probably niot involved, as dhcpcd logs everything and seems to do this on its own.
The -L option can turn off IPv4LL, it's ok but overkill. -G prevents setting default routes.
Is there a way to just prevent setting bogus default routes, without turning off ipv4ll or default routes altogether?
thanks
Last edited by jamapii on Sat Dec 07, 2019 10:14 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Fri Aug 23, 2019 6:54 pm Post subject: |
|
|
jamapii,
The net scripts allow you to define several functions of your own choosing.
They always run but do nothing
You could use postup () to check for the IP address being Link Local and if so, delete the default route. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Sat Dec 07, 2019 10:14 am Post subject: |
|
|
I think then it is better to avoid ipv4ll when it is not really needed (that is, for me, basically always). And I think the most safe way here is to add
to /etc/dhcpcd.conf.
Thanks a lot |
|
Back to top |
|
|
|