Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:dedicated-server:network:ipv6:prefix [2019/12/19 15:45]
dedibox [How to configure the DHCPv6 client]
en:dedicated-server:network:ipv6:prefix [2019/12/19 15:45] (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 (''​eth0''​) and the DUID ''/​etc/​systemd/​system/​dhclient.service'':​+Create the following file, adapting the interface name (''​eno1''​) and the DUID ''/​etc/​systemd/​system/​dhclient.service'':​
  
 <​code>​ <​code>​
 [Unit] [Unit]
 Description=dhclient for sending DUID IPv6 Description=dhclient for sending DUID IPv6
-Wants=network.target +Before=network-pre.target 
-Before=network.target+Wants=network-pre.target
  
 [Service] [Service]
 +Restart=always
 +RestartSec=10
 Type=forking Type=forking
-ExecStart=/usr/​sbin/​dhclient -cf /​etc/​dhcp/​dhclient6.conf -6 -P -v eth0+ExecStart=/​sbin/​dhclient -cf /​etc/​dhcp/​dhclient6.conf -6 -P -v eno1 
 +ExecStop=/​sbin/​dhclient -x -pf /​var/​run/​dhclient6.pid
  
 [Install] [Install]
-WantedBy=multi-user.target+WantedBy=network.target
 </​code>​ </​code>​