Setup ipv6 on Online.net Dedi box with Ubuntu 18.04

Okay , so it’s not so easy to always get the ipv6 on Online.net dedi working. So i decided to write a tutorial for it.

 

This is for Ubuntu 18.04.

 

 

 

  1. Edit the following file: /etc/dhcp/dhclient6.conf
  2. Put the following inside where DUID is what you get from Online.net console and enp2s0 is your networking device:
    interface "enp2s0" {
       send dhcp6.client-id DUID;
       request;
    }
  3. Check that the client gets the config from router:
    dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -v enp2s0
    

    If the path of the dhclient is different can be found via: which dhclient

  4. Now we need to configure the network for ipv6
  5. Edit the netplan config
  6.  

    cd /etc/netplan
    
    
    
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
      version: 2
      renderer: networkd
      ethernets:
        enp2s0:
          dhcp4: yes
          dhcp6: no
          addresses:
          - 2001:xxxxxxx/64
    

     

  7. then:
    netplan apply
  8. Ping test:
    ping6 ipv6.google.com
    PING ipv6.google.com(par21s03-in-x0e.1e100.net) 56 data bytes
    64 bytes from par21s03-in-x0e.1e100.net: icmp_seq=1 ttl=58 time=0.954 ms
    64 bytes from par21s03-in-x0e.1e100.net: icmp_seq=2 ttl=58 time=0.961 ms
    64 bytes from par21s03-in-x0e.1e100.net: icmp_seq=3 ttl=58 time=0.938 ms

     

  9. If config doesnt work edit: /etc/sysctl.conf
    net.ipv4.ip_forward=1
    net.ipv6.conf.all.accept_ra=2

     

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *