dhcpcd
dhcpcd copied to clipboard
Please restore sysctls on exit
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
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.