dhcpcd-discuss

Re: WG: linux routing table for default route

Ron Varburg

Thu Dec 12 22:41:36 2019

 Have you read dhcpcd-run-hooks? Have you searched the internet for all kinds
of examples for dhcpcd exit-hook?
I think you should start with having a script that will set routing the way you want,
without thinking how to integrate it with dhcpcd. I mean, start by writing the commands
assuming it has all the information it needs. You might use pseudo values like

 ip route I_WILL_SOMEHOW_FIND_THE_IP_LATER

Just use the right ip route commands, leaving aside the correct values of the
parameters. Once you have that, check if the commands work as expected
from the command line, replacing the pseudo values with values you enter manually.
Only then start looking how to get dhcpcd, or the kernel, or something else, tells you
the current values. 
Don't hesitate to reply I was too basic, and you are more experienced then me.     On Thursday, December 12, 2019, 5:51:46 PM GMT, <andrey@xxxxxxxxxxxx> wrote:  
 
 

-----Ursprüngliche Nachricht-----
Von: Andrey Vakhitov <andrey@xxxxxxxxxxxx> 
Gesendet: Donnerstag, 12. Dezember 2019 16:49
An: Roy Marples <roy@xxxxxxxxxxxx>
Betreff: Re: linux routing table for default route

Hi Roy,

Von meinem iPhone gesendet

> Am 12.12.2019 um 13:52 schrieb Roy Marples <roy@xxxxxxxxxxxx>:
> 
> On 08/12/2019 10:46, Ron Varburg wrote:
>> Hello,
>> Obviously, I am not Roy.
>> Have you tried to set appropriate ip route commands at exit-hook?
>> I don't know if that is supposed to work. Just throwing a thought which looks to me at the right direction.
>> Do let us know your findings. I do hope it is right of me to ask you to further post to the list about this subject.
> 
> While this would of course work, it might confuse dhcpcd when it re-examines the routing table at renewal. This though is speculation.
> 
> Out of curisosity, have you tried it Andrey - and if so, what were the results?
> 
No I didn’t. My case ist primarily dhcpv6 and DHCP server running on my isp-provided router provides it’s link-level address as universal gateway (according to standards). So it is basically static. I started to experiment with hook, then recognized, that I can actually set static route independently from dhcpcd and continue using it to get public IPv6 address and prefix delegation. So I went for it.

Funny issue I went into was wrong mtu because I overseen that isp router sets lower mtu on default route and it’s very essential for IPv6, but it was also easy to fix statically.

If I’d exactly know the events triggering the hook I’ve to care about and parameters I have to set on up -6 route add (mtu, expiration, scope etc) and then to remove it, I’d give hook a chance, But I could not find any ipv6 related help or examples.

  

Follow-Ups:
AW: WG: linux routing table for default routeandrey
References:
Re: linux routing table for default routeRoy Marples
WG: linux routing table for default routeandrey
Archive administrator: postmaster@marples.name