NetworkConfiguration / dhcpcd

DHCP / IPv4LL / IPv6RA / DHCPv6 client.
https://roy.marples.name/projects/dhcpcd
BSD 2-Clause "Simplified" License
334 stars 108 forks source link

Please restore sysctls on exit #266

Open DanielG opened 9 months ago

DanielG commented 9 months ago

Hi Roy,

when dhcpcd inits an interface it sets various sysctls. I found net.ipv6.conf.* .addr_gen_mode, .accept_ra, and .autoconf being changed from their system defaults. Problem is we don't seem to restore the intial state of these when shutting down.

In my case I wanted to switch from an interface being dhcpcd managed to just using kernel RA autoconf without rebooting and I had to manually reset the above to get it working after shutting down dhcpcd.

--Daniel

rsmarples commented 9 months ago

Hi Daniel

I'm not sure that's the correct thing to do. shutting down dhcpcd does not equal starting anything else up.

Maybe you should consider creating a script to ensure the correct sysctls are set to start kernel IPv6 to your liking.