Difference between revisions of "IPv6 Server: Dynamic Host Configuration v6 Server (dhcp6s)"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Linux IPv6 HOWTO (en)
+
DHCPv6 dapat digunakan untuk konfigurasi stateful. Daemon DHCPv6 tidak harus di operasikan di default IPv6 gateway router.
Prev Chapter 22. Hints for IPv6-enabled daemons Next
 
22.5. Dynamic Host Configuration v6 Server (dhcp6s)
 
  
DHCPv6 can be used for stateful configurations. The daemon itself need not necessary run on the Linux default IPv6 gateway router.
+
Dengan DHCPv6 kita dapat memberikan lebih banyak informasi daripada menggunakan radvd. Kira-kira hampir sama dengan DHCP Server IPv4.
  
You can specify more information than by using radvd. The are most similar to IPv4 DHCP server.
+
Setelah di konfigurasi dengan benar, daemon akan beraksi ketika menerima multicast ICMPv6 yang dikirim oleh client ke address ff02::1:2
  
After a proper configuration, the daemon reacts on received ICMPv6 multicast packets sent by a client to address ff02::1:2
+
==Konfigfurasi DHCPv6 server (dhcp6s)==
  
==22.5.1. Configuration of the DHCPv6 server (dhcp6s)==
+
===Konfigurasi Sederhana===
  
===22.5.1.1. Simple configuration===
+
File konfigurasi dhcp6s biasanya berada di /etc/dhcp6s.conf. Contoh sederhana akan tampak sebagai berikut:
 
 
dhcp6s's config file is normally /etc/dhcp6s.conf. An simple example looks like following:
 
  
 
  interface eth0 {
 
  interface eth0 {
Line 29: Line 25:
 
  };
 
  };
  
==22.5.2. Configuration of the DHCPv6 client (dhcp6c)==
+
==Konfigurasi DHCPv6 client (dhcp6c)==
  
===22.5.2.1. Simple configuration===
+
===Konfigurasi Sederhana===
  
dhcp6c's config file is normally /etc/dhcp6c.conf. An simple example looks like following:
+
File konfigurasi dhcp6c biasanya berada di /etc/dhcp6c.conf.
 +
Contoh sederhana akan tampak sebagai berikut:
  
 
  interface eth0 {
 
  interface eth0 {
Line 40: Line 37:
 
  };   
 
  };   
 
   
 
   
==22.5.3. Usage==
+
==Penggunaan==
  
===22.5.3.1. dhcpv6_server===
+
===dhcpv6_server===
  
Start server, e.g.
+
Start server,
  
 
  # service dhcp6s start
 
  # service dhcp6s start
  
===22.5.3.2. dhcpv6_client===
+
===dhcpv6_client===
  
Start client in foreground, e.g.
+
Start client di foreground
  
 
  # dhcp6c -f eth0
 
  # dhcp6c -f eth0
  
==22.5.4. Debugging==
+
==Debugging==
  
===22.5.4.1. dhcpv6_server===
+
===dhcpv6_server===
  
The server has one foreground and two debug toggles (both should be used for debugging), here is an example:
+
Server dijalankan dengan satu foreground dan dua debug (keduanya harusnya dapat digunakan untuk debugging), berikut adalah contohnya:
  
 
  # dhcp6s -d -D -f eth0
 
  # dhcp6s -d -D -f eth0
  
===22.5.4.2. dhcpv6_client===
+
===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:
+
Secara umum cara debugging untuk men-test apakah sebuah DHCP server IPv6 dapat di baca di link dengan cara menggunakan IPv6 ping ke DHCP multicast address:
  
 
  # ping6 -I eth0 ff02::1:2
 
  # ping6 -I eth0 ff02::1:2
  
The client has one foreground and two debug toggles, here is an example:
+
Client mempunyai satu foreground dan two sakelar debug , tampak disini adalah contohnya:
  
 
  # dhcp6c -d -f eth0
 
  # dhcp6c -d -f eth0
Line 83: Line 80:
 
  Oct/03/2005 17:18:17 renew time 60, rebind time 9
 
  Oct/03/2005 17:18:17 renew time 60, rebind time 9
  
Note that the netlink error messages have no impact.
+
Catatan bahwa message netlink error tidak memberikan dampak apa-apa.

Latest revision as of 08:04, 20 July 2013

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

Server dijalankan dengan satu foreground dan dua debug (keduanya harusnya dapat digunakan untuk debugging), berikut adalah contohnya:

# dhcp6s -d -D -f eth0

dhcpv6_client

Secara umum cara debugging untuk men-test apakah sebuah DHCP server IPv6 dapat di baca di link dengan cara menggunakan IPv6 ping ke DHCP multicast address:

# ping6 -I eth0 ff02::1:2

Client mempunyai satu foreground dan two sakelar debug , tampak disini adalah contohnya:

# 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

Catatan bahwa message netlink error tidak memberikan dampak apa-apa.