[pfS-Dev] Automatic 6rd configuration based on DHCP option 212
seth.mos at dds.nl
Wed Apr 11 10:46:43 EDT 2012
Some ISPs are deploying 6rd by sending option 212 with their v4 dhcp requests. This contains the information to automatically configure 6rd.
Is that something we want to do? Automatically configure 6rd on that WAN interface that is.
We have the ability to do so, if we write out the parsed info into a file in /tmp we can process it in interface_6rd_configure($if). This function is already called in rc.newwanip in 2.1
With some added bits we can also autoconfigure the LAN by letting the track6_configure($if) magic work. We already call the track6_configure() from the interface_(6rd|6to4)_configure() function. We can probably hook in there with ease.
So technically there isn't really a issue to do this already, but i'm not sure if we want to do that in practice. For comparison, the default config xml already configures the WAN with a DHCP6 client.
Also, users might have a hard time getting the information for 6rd from their ISP.
A knob on the ipv4 dhcp client is possible too.
More information about the Dev