summaryrefslogtreecommitdiffstats
path: root/doc/examples/kea6/dhcpv4-over-dhcpv6.json
blob: 68d567532377ab4b39c283a58a15c294b01e0cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// This is an example configuration file for the DHCPv6 server of
// DHCPv4-over-DHCPv6 tests in Kea.

{

// DHCPv6 conf
"Dhcp6":
{
  "interfaces-config": {
// Enable unicast
    "interfaces": [ "eth0/2001:db8:1::1" ]
  },

  "lease-database": {
    "type": "memfile",
    "name": "leases6"
  },

  "preferred-lifetime": 3000,
  "valid-lifetime": 4000,
  "renew-timer": 1000,
  "rebind-timer": 2000,

  "subnet6": [
   {   "subnet": "2001:db8:1:1::/64",
       "interface": "eth0",
       "pools": [ { "pool": "2001:db8:1:1::1:0/112" } ] }
   ],

// This enables DHCPv4-over-DHCPv6 support
  "dhcp4o6-port": 6767,

// Required by DHCPv4-over-DHCPv6 clients
  "option-data": [
   {  "name": "dhcp4o6-server-addr",
      "code": 88,
      "space": "dhcp6",
      "csv-format": true,
// Put the server address here
      "data": "2001:db8:1:1::1" }
   ],

   "loggers": [
    {
      "name": "kea-dhcp6",
      "output_options": [
          {
            "output": "/tmp/kea-dhcp6.log"
          }
      ],
      "severity": "DEBUG",
      "debuglevel": 0
    }
  ]
}

}