IPv6 AutoConfiguration: DHCPv6 Ubuntu
Sumber: https://wiki.ubuntu.com/DHCPv6
DHCPv6 mempunyai keuntungan yang lebih di bandingkan dengan IPv6 autoconfiguration tradisional. Seperti halnya IPv4, melalui DHCP kita dapat memberikan IPv6 spesifik untuk sebuah mesin selama dia hidup. Di samping itu, DHCPv6 memungkinkan kita utuk mencatat penggunaan address tertentu sehingga memudahkan dalam mengidentifikasi masalah yang di sebabkan oleh autoconfiguration.
Disini kita menggunakan ISC DHCPv6 Server.
Install DHCP server
Instalasi
sudo su apt update apt install isc-dhcp-server
File konfigurasi ada di
/etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd6.conf
Setup DHCP server
File yang penting untuk di konfigurasi
/etc/init.d/isc-dhcp-server /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd6.conf
Konfigurasi yang ada sudah siap untuk mengoperasikan DHCPv4 dan DHCPv6 sekaligus. Sebenarnya menggunakan dua server yang berbeda.Untuk alokasi IPv6 yang perlu kita perhatikan saat mengkonfigurasi /etc/dhcp/dhcpd6.conf hanya,
Edit /etc/dhcp/dhcpd.conf
subnet 10.10.10.0 netmask 255.255.255.0 { range 10.10.10.10 10.10.10.20; }
Edit /etc/dhcp/dhcpd6.conf
subnet6 2345::/64 { range6 2345:1000:: 2345:2000::; }
Perhatikan di dhcpd6.conf ada tambahan "6" di subnet dan range.
Restart
/etc/init.d/isc-dhcp-server restart
ISC DHCP v6 Client
Installing the DHCP client
On most systems, the ISC DHCP client should already be installed. This is true for both standard desktop and server installs.
The ISC DHCP client can be installed with the following command:
sudo apt-get install isc-dhcp-client
You can then use the dhcp client by issuing the following command:
sudo dhclient <iface>
Where <iface> is the network device you want to configure. For example, eth0, or wlan0.
Client configuration
ISC DHCP 4 provides much of the same configuration files and parameters as DHCP 3.
The configuration file used by dhclient is /etc/dhcp/dhclient.conf. Most configuration parameters are the same as in DHCP3 and /etc/dhcp3/dhclient.conf; please refer to man dhclient.conf.
From man dhclient.conf:
The client does not yet have a default DHCPv6 Option Request Option (ORO), nor has it been integrated with the 'request' and 'require' syntax above. It is neccessary to configure an ORO then.
send dhcp6.oro 1, 2, 7, 12, 13, 23, 24, 39;
The above ORO will request both identifiers (server, client), the preference, unicast, nameservers, domain-search, and FQDN(v6) options.