IPv6 Server: Dynamic Host Configuration v6 Server (dhcp6s)
DHCPv6 dapat digunakan untuk konfigurasi stateful. Daemon DHCPv6 tidak harus di operasikan di default IPv6 gateway router.
Dengan DHCPv6 kita dapat memberikan lebih banyak informasi daripada menggunakan radvd. Kira-kira hampir sama dengan DHCP Server IPv4.
Setelah di konfigurasi dengan benar, daemon akan beraksi ketika menerima multicast ICMPv6 yang dikirim oleh client ke address ff02::1:2
Konfigfurasi DHCPv6 server (dhcp6s)
Konfigurasi Sederhana
File konfigurasi dhcp6s biasanya berada di /etc/dhcp6s.conf. Contoh sederhana akan tampak sebagai berikut:
interface eth0 { server-preference 255; renew-time 60; rebind-time 90; prefer-life-time 130; valid-life-time 200; allow rapid-commit; option dns_servers 2001:db8:0:f101::1 sub.domain.example; link AAA { range 2001:db8:0:f101::1000 to 2001:db8:0:f101::ffff/64; prefix 2001:db8:0:f101::/64; }; };
Konfigurasi DHCPv6 client (dhcp6c)
Konfigurasi Sederhana
File konfigurasi dhcp6c biasanya berada di /etc/dhcp6c.conf. Contoh sederhana akan tampak sebagai berikut:
interface eth0 { send rapid-commit; request domain-name-servers; };
Penggunaan
dhcpv6_server
Start server,
# service dhcp6s start
dhcpv6_client
Start client di foreground
# dhcp6c -f eth0
Debugging
dhcpv6_server
The server has one foreground and two debug toggles (both should be used for debugging), here is an example:
# dhcp6s -d -D -f eth0
dhcpv6_client
As general debugging for test whether the IPv6 DHCP server is reable on the link use an IPv6 ping to the DHCP multicast address:
# ping6 -I eth0 ff02::1:2
The client has one foreground and two debug toggles, here is an example:
# dhcp6c -d -f eth0
Oct/03/2005 17:18:16 dhcpv6 doesn't support hardware type 776 Oct/03/2005 17:18:16 doesn't support sit0 address family 0 Oct/03/2005 17:18:16 netlink_recv_rtgenmsg error Oct/03/2005 17:18:16 netlink_recv_rtgenmsg error Oct/03/2005 17:18:17 status code for this address is: success Oct/03/2005 17:18:17 status code: success Oct/03/2005 17:18:17 netlink_recv_rtgenmsg error Oct/03/2005 17:18:17 netlink_recv_rtgenmsg error Oct/03/2005 17:18:17 assigned address 2001:db8:0:f101::1002 prefix len is not in any RAs prefix length using 64 bit instead Oct/03/2005 17:18:17 renew time 60, rebind time 9
Note that the netlink error messages have no impact.