softwire46.json 2.63 KB
Newer Older
1 2 3
// This is an example configuration file for DHCPv6 server in Kea.
// It demonstrates how user can specify values for Softwire options
// defined in RFC 7598 for Lightweight 4over6 architecture.
4 5 6 7

{ "Dhcp6":

{
8
// Kea is told to listen on ethX interface only.
9 10 11 12
  "interfaces-config": {
    "interfaces": [ "ethX" ]
  },

13
// Let's use a Memfile backend to store leases.
14 15 16 17
  "lease-database": {
    "type": "memfile"
  },

18 19 20 21 22 23
// Addresses will be assigned with preferred and valid lifetimes
// being 3000 and 4000, respectively. Client is told to start
// renewing after 1000 seconds. If the server does not respond
// after 2000 seconds since the lease was granted, client is supposed
// to start REBIND procedure (emergency renewal that allows switching
// to a different server).
24 25 26 27 28
  "preferred-lifetime": 3000,
  "valid-lifetime": 4000,
  "renew-timer": 1000,
  "rebind-timer": 2000,

29 30
// The following list defines subnets. Each subnet consists of at
// least subnet and pool entries.
31 32 33 34 35
  "subnet6": [
    {
      "pools": [ { "pool": "2001:db8:1::/80" } ],
      "subnet": "2001:db8:1::/64",
      "interface": "ethX",
36
// Include MAP-E Container option for hosts connected to this subnet.
37 38 39 40 41
      "option-data": [
        {
            "name": "s46-cont-mape"
        }
      ],
42
// Send host specific softwire options.
43 44 45 46
      "reservations": [
        {
            "duid": "01:02:03:04:05:06:07:08:09:0A",
            "option-data": [
47
// These two options will be included in the MAP-E Container
48 49 50 51 52 53 54 55 56 57
              {
                "space": "s46-cont-mape-options",
                "name": "s46-rule",
                "data": "1, 0, 24, 192.0.2.0, 2001:db8:1::/64"
              },
              {
                "space": "s46-cont-mape-options",
                "name": "s46-br",
                "data": "2001:db8:cafe::1"
              },
58 59 60 61
// This option will be included in the S46 Rule option. It includes
// PSID/PSID length value in a user friendly form. The PSID length
// specifies the number of bits on which PSID is coded. The PSID
// value 3 is a 4th value that is coded on these 4 bits: "0011b".
62 63 64 65 66 67 68 69 70 71 72 73
              {
                "space": "s46-rule-options",
                "name": "s46-portparams",
                "data": "0, 3/4"
              }
            ]
        }
      ]
    }
  ]
},

74 75
// The following configures logging. Kea will log all debug messages
// to /var/log/kea-debug.log file.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
"Logging": {
    "loggers": [
        {
            "name": "kea-dhcp6",
            "output_options": [
                {
                    "output": "/var/log/kea-debug.log"
                }
            ],
            "debuglevel": 99,
            "severity": "DEBUG"
        }
    ]
}

}