Setting up IPv6

tested on Slackware Linux current (Sep 2020)

Setup with SLAAC

cat /proc/sys/net/ipv6/conf/eth0/accept_ra
    echo 2 > /proc/sys/net/ipv6/conf/eth0/accept_ra
vi /etc/dhclient.conf

interface "xenbr0" {
    send dhcp6.client-id YOUR-DUID;
        #request;
}

Ready to go

one-shot

dhclient -cf /etc/dhclient.conf -6 -P -v xenbr0
    /sbin/ifconfig xenbr0 inet6 add IP6-ADDRESS/56 up

enable at boot-time

vi /etc/rc.d/rc.inet1

echo -n getting an ip6 lease...
echo 2 > /proc/sys/net/ipv6/conf/eth0/accept_ra
    dhclient -cf /etc/dhclient.conf -6 -P xenbr0 && echo done || echo FAIL
    /sbin/ifconfig xenbr0 inet6 add IP6-ADDRESS/56 up

status

ps auxww | grep dhc
ifconfig

stop

#ifconfig ...
pkill dhclient

Acceptance

check who’s your router

#netstat -rn --inet6 | grep ^::/0
ip -6 neigh show

grab some advertisements from the network

tcpdump -vvvv -ttt -i eth0 icmp6 and 'ip6[40] = 134'

everything is good?

cat /etc/resolv.conf
ping6 2001:bc8:401::3
ping6 2001:bc8:1::16
ping6 ipv6.google.com
traceroute6 ipv6.google.com

curl -i www.kame.net | grep img

Additional notes

Other means of enabling RA

    #sysctl -w net.ipv6.conf.eth0.accept_ra=2
    #echo net.ipv6.conf.eth0.accept_ra = 2 >> /etc/sysctl.conf
    #sysctl -p

Resources

https://wiki.debian.org/DebianIPv6

https://documentation.online.net/en/dedicated-server/network/ipv6/start

https://documentation.online.net/fr/dedicated-server/network/ipv6/prefix

https://documentation.online.net/fr/dedicated-server/network/ipv6/slaac

https://documentation.online.net/en/dedicated-server/network/ipv6/networkd

https://mirrors.deepspace6.net/Linux+IPv6-HOWTO/x1055.html

https://linux.die.net/HOWTO/Linux+IPv6-HOWTO/x1054.html

https://blog.cpy.re/ipv6-sur-son-serveur-debian-jessie-sur-une-dedibox-donline-net/

https://www.abyssproject.net/2016/08/configurer-ipv6-chez-online-net/

https://germanystudy.net/how-to-setup-ipv6-on-online-net-dedibox-with-dhcpv6-client/

http://wiki.csnu.org/index.php/Ipv6_online.net_et_routage

disabling ipv6

https://www.techrepublic.com/article/how-to-disable-ipv6-on-linux/

https://itsfoss.com/disable-ipv6-ubuntu-linux/

https://www.thegeekdiary.com/centos-rhel-7-how-to-disable-ipv6/

https://support.purevpn.com/how-to-disable-ipv6-linuxubuntu


HOME | GUIDES | BENCHMARKS | html