dhcpcd-discuss

Questions about a weird router rate-limiting NDP

Alarig Le Lay

Fri Apr 03 17:48:23 2020

Hi,

I’m facing a router that isn’t very friendly with NDP:

Apr  3 18:12:55 core01-arendal dhcpcd[2833]: enp2s0: Router Advertisement from fe80::5e5e:abff:fe43:1ece
Apr  3 18:12:55 core01-arendal dhcpcd[2833]: enp2s0: adding default route via fe80::5e5e:abff:fe43:1ece                                                                               
Apr  3 18:13:03 core01-arendal dhcpcd[2833]: enp2s0: fe80::5e5e:abff:fe43:1ece is unreachable                                                                                         
Apr  3 18:13:04 core01-arendal dhcpcd[2833]: enp2s0: soliciting an IPv6 router                                                                                                        
Apr  3 18:13:16 core01-arendal dhcpcd[2833]: enp2s0: no IPv6 Routers available                                                                                                        
Apr  3 18:13:20 core01-arendal dhcpcd[2833]: enp2s0: Router Advertisement from fe80::5e5e:abff:fe43:1ece                                                                              
Apr  3 18:13:28 core01-arendal dhcpcd[2833]: enp2s0: fe80::5e5e:abff:fe43:1ece is unreachable                                                                                         
Apr  3 18:13:29 core01-arendal dhcpcd[2833]: enp2s0: soliciting an IPv6 router                                                                                                        

and so on…

If fixed the issue with this command:
core01-arendal ~ # ip -6 neigh replace $(ip neigh show dev enp2s0 | awk '/router/ { print $1 }') dev enp2s0 lladdr $(ip neigh show dev enp2s0 | awk '/router/ { print $3 }')

It’s not a bug in dhcpcd, the NDP itself is dropped from the kernel.
So, my question is: Is it a good idea to put this command in a post-up
hook (and a similar one in post-down), or is there a better way?

Thanks,
-- 
Alarig Le Lay

Follow-Ups:
Re: Questions about a weird router rate-limiting NDPRoy Marples
Archive administrator: postmaster@marples.name