EN Setup ipv6 - titandc/titan-sc-documentation GitHub Wiki

Preface

It is possible to have an IPv6 address on your SmallCloud machine. To do so, you have to go to the SmallCloud interface of your machine. By default, the machines are not delivered with IPv6.

It is necessary to activate it by clicking on the "More information" button then on the check box corresponding to IPv6. An IPv6 then appears. Please write down this IP address and connect to the machine in question.

In the following chapters, <IPV6_ADDRESS> will designate the IPv6 address of the server provided by the SmallCloud interface.

Debian like

To configure IPv6 on Debian-based machines (Debian, Ubuntu, 3CX, ...), open the file /etc/network/interfaces and add these lines:

auto enp1s0
iface enp1s0 inet6 static
   address <IPV6_ADDRESS>
   netmask 128
   up ip -6 route add 2a04:f600:4454:48:8000::1 dev enp1s0
   up ip -6 route add default via 2a04:f600:4454:48:8000::1 dev enp1s0

Then, restart the network service :

systemctl restart networking

Finally, you have to add the IPv6 name servers in the /etc/resolv.conf file:

nameserver 2606:4700:4700::1111
nameserver 2606:4700:4700::1001

It is possible to check the IPv6 using this command:

ping6 google.com

RedHat like

network-scripts

This part of the documentation is intended for distributions that have the network-scripts package installed. To verify that the package is installed, please use the following command rpm -qa | grep network-scripts.

As of CentOS 9 stream, network-scripts is no longer used.

On machines with RedHat-based (CentOS, Fedora, ...) you have to open the file /etc/sysconfig/network-scripts/ifcfg-enp1s0 and add/modify these lines:

[...]
IPV6INIT = yes
IPV6ADDR = <IPV6_ADDRESS>
IPV6_DEFAULTGW = 2a04:f600:4454:48:8000::1
[...]

Then, restart the network service :

systemctl restart network

Finally, you have to add the IPv6 name servers in the /etc/resolv.conf file:

nameserver 2606:4700:4700::1111
nameserver 2606:4700:4700::1001

It is possible to test IPv6 using this command:

ping6 google.com

NetworkManager

This part of the documentation is intended for distributions whose network is managed by NetworkManager. To verify that the network is managed by NetworkManager, please type the command nmcli device status and make sure that the STATE field of the interface is not in unmanaged.

Type the following commands:

nmcli con modify enp1s0 ipv6.address <IPV6_ADDRESS> # Adding the IPv6 address
nmcli con modify enp1s0 ipv6.method manual # DHCP is not used
nmcli con modify enp1s0 ipv6.gateway 2a04:f600:4454:48:8000::1 # Adding the Gateway
systemctl restart NetworkManager

Finally, you have to add the IPv6 name servers in the /etc/resolv.conf file:

nameserver 2606: 4700: 4700 :: 1111
nameserver 2606: 4700: 4700 :: 1001

It is possible to test IPv6 using this command:

ping6 google.com

Pfsense

On the Pfsense Web UI, go to Interfaces > WAN.

In the "General configuration" part, make sure that the IPv6 Configuration Type field is set to Static IPv6.

A new part named "Static IPv6 Configuration" will appear. In the IPv6 address field, copy the IPv6 address present on the SmallCloud interface. The network mask must be set to 80.

Click on the "Add a new gateway" button. In the Gateway IPv6 field, add the gateway 2a04:f600:4454:48:8000::1 then validate.

The IPv6 configuration will look like this :

Save the changes. Once saved, don't forget to apply the changes!

Finally, you have to add the IPv6 name servers in the /etc/resolv.conf file:

name server 2606:4700:4700::1111
name server 2606:4700:4700::1001

It is possible to test IPv6 using this command:

ping6 google.com