Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
en:dedicated-server:network:ipv6:prefix [2019/12/19 15:45]
en:dedicated-server:network:ipv6:prefix [2020/04/22 15:22] (current)
dedibox [Start your DHCPv6 client at boot]
Line 30: Line 30:
 Once the client is configured, you'll need to create a new ''<​nowiki>​SystemD</​nowiki>''​ service. Once the client is configured, you'll need to create a new ''<​nowiki>​SystemD</​nowiki>''​ service.
  
-Create the following file, adapting the interface name (''​eno1''​) and the DUID ''/​etc/​systemd/​system/​dhclient.service'':​+Create the following file, adapting the interface name (''​eno0''​) and the DUID ''/​etc/​systemd/​system/​dhclient.service'':​
  
 <​code>​ <​code>​
 [Unit] [Unit]
 Description=dhclient for sending DUID IPv6 Description=dhclient for sending DUID IPv6
-Before=network-pre.target +After=network-online.target 
-Wants=network-pre.target+Wants=network-online.target
  
 [Service] [Service]
Line 52: Line 52:
  
 Then, enable it for every reboot: ''​systemctl enable dhclient.service''​. Then, enable it for every reboot: ''​systemctl enable dhclient.service''​.
 +
  
 ===== Configure the Network on Ubuntu 16 & Debian 8 and 9 ===== ===== Configure the Network on Ubuntu 16 & Debian 8 and 9 =====
Line 57: Line 58:
 <​note>​The following commands have to be used as root or with ''​sudo''</​note>​ <​note>​The following commands have to be used as root or with ''​sudo''</​note>​
  
-Start by editing ''/​etc/​network/​interfaces''​ as follow:+Start by editing ''/​etc/​network/​interfaces''​ as follows:
 <​code>​ <​code>​
 auto eno1 auto eno1
 iface eno1 inet6 static iface eno1 inet6 static
     address IPV6ADDRESS     address IPV6ADDRESS
-    netmask ​PREFIXLEN+    netmask ​PREFIXLENGTH
 </​code>​ </​code>​