IPv6 AutoConfiguration: DHCPv6 Ubuntu

From OnnoWiki
Revision as of 10:12, 3 February 2019 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

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,


DHCP v4 keyword DHCP v6 keyword

subnet <address/prefix> subnet6 <address/prefix>

range <start ip> <end ip> range6 (<start ip> <end ip> | <network/prefix>)

Consider checking man dhcpd.conf for the full syntax reference.

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.




Referensi

Pranala Menarik