First you need to install a DHCP client
1 2 |
cd /usr/ports/net/dhcp6 make install clean |
Setup config for dhcp6c
1 2 |
cp /usr/local/etc/dhcp6c.conf.sample /usr/local/etc/dhcp6c.conf vi /usr/local/etc/dhcp6c.conf |
Add the following
1 2 3 4 5 6 7 8 9 |
interface em0 { send ia-pd 0; }; id-assoc pd { prefix-interface em0 { sla-id 1; }; }; |
Add the following to /etc/rc.conf
1 2 3 4 5 |
ipv6_enable="YES" ipv6_network_interfaces="em0" ipv6_defaultrouter="fe80::%em0" dhcp6c_enable="YES" dhcp6c_interfaces="em0" |
Run the IPv6 startup script.
1 |
/etc/rc.d/network_ipv6 restart |
Now startup the client
1 |
/usr/local/etc/rc.d/dhcp6c start |
To test the connection you should be able to ping XS4ALL.
1 |
ping6 xs4all.nl |
You also might want to check out these posts for some more information:
How to use a PPPoE or PPPoA connection of XS4ALL on FreeBSD