| 1 |
dhcp6d |
| 2 |
====== |
| 3 |
|
| 4 |
Command `dhcp6d` is an example DHCPv6 server. It can only assign a |
| 5 |
single IPv6 address, and is not a complete DHCPv6 server implementation |
| 6 |
by any means. It is meant to demonstrate usage of package `dhcp6`. |
| 7 |
|
| 8 |
Example |
| 9 |
------- |
| 10 |
|
| 11 |
This example makes use of two machines (a client, "dhcp6c", and server, |
| 12 |
"dhcp6d") and the `dhclient(8)` and `dhcp6d` binaries. |
| 13 |
|
| 14 |
Use server to begin serving a single IPv6 address using DHCPv6: |
| 15 |
|
| 16 |
``` |
| 17 |
matt@dhcp6d:~$ sudo ./dhcp6d -h |
| 18 |
Usage of ./dhcp6d: |
| 19 |
-i string |
| 20 |
interface to serve DHCPv6 (default "eth0") |
| 21 |
-ip string |
| 22 |
IPv6 address to serve over DHCPv6 |
| 23 |
matt@dhcp6d:~$ sudo ./dhcp6d -i eth0 -ip dead:beef:d34d:b33f::10 |
| 24 |
2015/09/02 14:50:31 binding DHCPv6 server to interface eth0... |
| 25 |
``` |
| 26 |
|
| 27 |
Use client to request an IPv6 address using DHCPv6: |
| 28 |
|
| 29 |
``` |
| 30 |
matt@dhcp6c:~$ ifconfig eth0 | grep ::10 |
| 31 |
matt@dhcp6c:~$ sudo dhclient -6 eth0 |
| 32 |
matt@dhcp6c:~$ ifconfig eth0 | grep ::10 |
| 33 |
inet6 addr: dead:beef:d34d:b33f::10/64 Scope:Global |
| 34 |
``` |