There was a problem loading the comments.

How do I set up IPv6 on my server?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
Please replace [YOUR IPv6-Address] and [YOUR IPv6-Gateway] with your own data! You can find your IPv6 subnet and the gateway in the costumer interface (ZKM).

Debian/Ubuntu:

Login to your server via SSH as root.

nano -w /etc/network/interfaces

Please add the following lines at the end of the file:

iface eth0 inet6 static
    address YOUR IPv6 Address
    netmask 64
    up ip -6 route add YOUR_IPv6_Gateway dev eth0
    up ip -6 route add default via YOUR_IPv6_Gateway dev eth0

for example:

iface eth0 inet6 static
    address 2001:4ba0:fff1:0001:0000:8a2e:0370:7334
    netmask 64
    up ip -6 route add 2001:4ba0:fff1:0001:0001:beef:0000:0001 dev eth0
    up ip -6 route add default via 2001:4ba0:fff1:0001:0001:beef:0000:0001 dev eth0

Save with CTRL + O, close with CTRL + X

After that restart networking:

service networking restart

Now you may check your IP configuration using the command ifconfig.

FreeBSD:

Please replace the placeholders <Interface>, <IP-Adresse>, <Gateway> und <Gateway-MAC> with the individual values for your server.

ipv6_network_interfaces="<Interface>"
ipv6_ifconfig_<Interface>="<IP-Adresse>"
ipv6_static_routes="hostroute gateway"
ipv6_route_hostroute="<Gateway> -prefixlen 128 -interface <Interface>"
ipv6_route_gateway="default <Gateway>"
static_ndp_pairs="gateway"
static_ndp_gateway="<Gateway> <Gateway-MAC>"

The gateways MAC address can be received from our support team.

CentOS:

Please first check if your IPv6-Address is not allready online using the command ifconfig.

If not please follow the next steps (replace [YOUR IPv6-Address] and [YOUR IPv6-Gateway] with your own data. You can find your IPv6 subnet and the gateway in the costumer interface)

Login to your server via SSH as root

nano -w /etc/sysconfig/network

Please add the following lines at the end of the file:

NETWORKING_IPV6=yes

Save with CTRL + O, close with CTRL + X

nano -w /etc/sysconfig/network-scripts/ifcfg-<yourinterface>

(for example: /etc/sysconfig/network-scripts/ifcfg-eth0)

Please add this after your IPv4 configuration:

IPV6INIT=yes
IPV6ADDR=<Your IPv6 Address>
IPV6_DEFAULTGW=<Your IPv6 Gateway>

Save with CTRL + O, close with CTRL + X

After having set up your IPv6 address, you have to set up a static route for your gateway. Please open the /etc/sysconfig/network-scripts/route6-<yourinterface> (ie. /etc/sysconfig/network-scripts/route6-eth0) with your texteditor (like nano) and insert following lines:

<Your IPv6-Gateway> dev <Your Interface>
default <Your IPv6-Gateway>

for example:

2001:4ba0:fff2:0001:beef::1 dev eth0
default 2001:4ba0:fff2:0001:beef::1

After having edited the files restart the network:

service network restart

You my check your network configuration using ifconfig.

Windows:

Login to your server via RDP as administrator. Please press START on the bottom-left of your task bar. Choose the option "Ausführen/run". You can see a new opened windows called windowsshell. Write the following commands there, each seperated by pressing return:

netsh interface ipv6 add address store=persistent
netsh interface ipv6 add route ::/0 [YOUR IPv6-Gateway] store=persistent

for example:

netsh interface ipv6 add address store=persistent
netsh interface ipv6 add route ::/0 2001:4ba0:fff1:0001:0001:beef:0000:0001 store=persistent

With the command: "ipconfig -all" you can see the results.

Testing:

To test if the IP address is correctly accessible, you can proceed with the following steps as follows:

1. Execute a ping to the configured IP address on your server. If the server can’t access the IP address configured on it there's something wrong here. A ping to the IP v6 address can be made via the console command: ping -6 IP Address
2. Ping Gateway’s IP address from the server, since these IP addresses usually located outside of its own network. From there you can recognize if there is a problem with routing
3. Ping an external address i.e. 2a00:1450:4001:814:: 200e here is an IP address from Google which was set up and is used for exactly test purposes like this.
4. Try to reach your server from outside via IPv6. If your computer at home doesn’t have an IPv6 address, you can use an Online Ping service like this www.subnetonline.com/pages/ipv6-network-tools/online-ipv6-ping.php

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

Captcha

Self-Hosted Help Desk Software by SupportPal
© MaxterHost