dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

Please restore sysctls on exit

Open DanielG opened this issue 1 year ago • 3 comments

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

DanielG avatar Dec 06 '23 14:12 DanielG

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.

rsmarples avatar Dec 14 '23 23:12 rsmarples