Marius van Witzenburg We fight for our survival, we fight!

12Jun/110

How to configure IPv6 DHCP client for XS4ALL on FreeBSD

For this installation you might be required to first establish the connection, check: How to use a PPPoE or PPPoA connection of XS4ALL on FreeBSD.

First you need to install a DHCP client

cd /usr/ports/net/dhcp6
make install clean

Setup config for dhcp6c

cp /usr/local/etc/dhcp6c.conf.sample /usr/local/etc/dhcp6c.conf
vi /usr/local/etc/dhcp6c.conf

Add the following

interface tun0 {
    send ia-pd 0;
};
 
id-assoc pd {
    prefix-interface em1 {
        sla-id 1;
    };
};

Add the following to /etc/rc.conf

dhcp6c_enable="YES"
dhcp6c_interfaces="tun0"
ipv6_enable="YES"
ipv6_defaultrouter="fe80::%tun0"

Now startup the client

/usr/local/etc/rc.d/dhcp6c start

As last set the default route

route add -inet6 default -interface tun0

To test the connection you should be able to ping XS4ALL.

ping6 xs6.xs4all.nl

Posted by mariusvw

Reacties (0) Trackbacks (1)

Leave a comment

(required)