Differences

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

en:online.net-wide-dhcpv6 [2015-03-30 07:34 UTC]
rm
en:online.net-wide-dhcpv6 [2024-04-08 01:23 UTC] (current)
rm
Line 1: Line 1:
====== Using the WIDE DHCPv6 Client on Online.net dedicated servers ====== ====== Using the WIDE DHCPv6 Client on Online.net dedicated servers ======
//Initially published on 2014-08-29// //Initially published on 2014-08-29//
- 
-...and switching to it from Dibbler. Debian-only. 
===== Pre-requisites ===== ===== Pre-requisites =====
 +Debian-only.
 +
Check the file ''/etc/modprobe.d/local.conf'', it may contain a line like this one: Check the file ''/etc/modprobe.d/local.conf'', it may contain a line like this one:
<code>options ipv6 disable=1</code> <code>options ipv6 disable=1</code>
Line 14: Line 14:
DUID=$1 DUID=$1
 +IFACE=$2
-skill -9 dibbler-client +if [ "$DUID" == "" ]||[ "$IFACE" == "" ]; then 
-dpkg -P dibbler-client +  echo "Please specify your DUID and network interface!" 
-rm -rvf /etc/dibbler /var/log/dibbler /var/lib/dibbler+  exit 1 
 +fi
apt-get install -y wide-dhcpv6-client vim-common apt-get install -y wide-dhcpv6-client vim-common
Line 24: Line 26:
echo 'profile default { script "/etc/wide-dhcpv6/dhcp6c-script"; };' > /etc/wide-dhcpv6/dhcp6c.conf echo 'profile default { script "/etc/wide-dhcpv6/dhcp6c-script"; };' > /etc/wide-dhcpv6/dhcp6c.conf
-echo 'id-assoc pd { prefix-interface eth0 { }; };' >> /etc/wide-dhcpv6/dhcp6c.conf +echo "id-assoc pd { prefix-interface $IFACE { }; };" >> /etc/wide-dhcpv6/dhcp6c.conf 
-echo 'id-assoc na { };' >> /etc/wide-dhcpv6/dhcp6c.conf +echo "id-assoc na { };" >> /etc/wide-dhcpv6/dhcp6c.conf 
-echo 'interface eth0 { send ia-na 0; send ia-pd 0; };' >> /etc/wide-dhcpv6/dhcp6c.conf+echo "interface $IFACE { send ia-na 0; send ia-pd 0; };" >> /etc/wide-dhcpv6/dhcp6c.conf
echo $DUID | awk '{ gsub(":"," "); printf "0: 0a 00 %s\n", $0 }' | xxd -r > /var/lib/dhcpv6/dhcp6c_duid echo $DUID | awk '{ gsub(":"," "); printf "0: 0a 00 %s\n", $0 }' | xxd -r > /var/lib/dhcpv6/dhcp6c_duid
/etc/init.d/wide-dhcpv6-client start</file> /etc/init.d/wide-dhcpv6-client start</file>
-Download and run this with the [[https://console.online.net/en/network/|online.net DUID for the subnet you want to use]] specified, for example:+Download and run this with the [[https://console.online.net/en/network/|online.net DUID for the subnet you want to use]] specified, and the uplink interface name, for example:
<code> <code>
wget -O setup-dhcpv6.sh https://version6.ru/_export/code/en/online.net-wide-dhcpv6?codeblock=1 wget -O setup-dhcpv6.sh https://version6.ru/_export/code/en/online.net-wide-dhcpv6?codeblock=1
chmod +x setup-dhcpv6.sh chmod +x setup-dhcpv6.sh
-./setup-dhcpv6.sh 00:03:00:01:23:45:67:89:ab:cd</code> +./setup-dhcpv6.sh 00:03:00:01:23:45:67:89:ab:cd eth0</code> 
-When the WIDE setup screen appears and asks on which interfaces to listen for DHCPv6, leave that as "eth0" (the default value), i.e. just press Enter.+When the WIDE setup screen appears and asks on which interfaces to listen for DHCPv6, leave that at its default value and just press Enter.
===== Startup failure ===== ===== Startup failure =====

en/online.net-wide-dhcpv6.1427700867.txt.gz · Last modified: 2015-03-30 07:34 UTC by rm
Personal Tools