|
@@ -1,10 +1,10 @@
|
|
-// This is a basic configuration for the Kea DHCPv4 and DHCPv6 servers. Subnet
|
|
|
|
-// declarations are mostly commented out and no interfaces are listed.
|
|
|
|
-// Therefore, the servers will not listen or respond to any queries. The basic
|
|
|
|
-// configuration must be extended to specify interfaces on which the servers
|
|
|
|
-// should listen. There are a number of example options defined. These probably
|
|
|
|
-// don't make any sense in your network. Make sure you at least update the
|
|
|
|
-// following, before running this example in your network:
|
|
|
|
|
|
+// This is a basic configuration for the Kea DHCP servers and Kea Control
|
|
|
|
+// Agent. Subnet declarations are mostly commented out and no interfaces are
|
|
|
|
+// listed. Therefore, the servers will not listen or respond to any queries.
|
|
|
|
+// The basic configuration must be extended to specify interfaces on which
|
|
|
|
+// the servers should listen. There are a number of example options defined.
|
|
|
|
+// These probably don't make any sense in your network. Make sure you at least
|
|
|
|
+// update the following, before running this example in your network:
|
|
// - change the network interface names
|
|
// - change the network interface names
|
|
// - change the subnets to match your actual network
|
|
// - change the subnets to match your actual network
|
|
// - change the option values to match your network
|
|
// - change the option values to match your network
|
|
@@ -734,6 +734,41 @@
|
|
"reverse-ddns" : {}
|
|
"reverse-ddns" : {}
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+// This is a basic configuraton for the Kea Control Agent.
|
|
|
|
+// RESTful interface to be available at http://127.0.0.1:8080/
|
|
|
|
+"Control-agent": {
|
|
|
|
+ "http-host": "127.0.0.1",
|
|
|
|
+ "http-port": 8080,
|
|
|
|
+
|
|
|
|
+ // Specify location of the files to which the Control Agent
|
|
|
|
+ // should connect to forward commands to the DHCPv4 and DHCPv6
|
|
|
|
+ // server via unix domain socket.
|
|
|
|
+ "control-sockets": {
|
|
|
|
+ "dhcp4": {
|
|
|
|
+ "socket-type": "unix",
|
|
|
|
+ "socket-name": "/tmp/kea-dhcp4-ctrl.sock"
|
|
|
|
+ },
|
|
|
|
+ "dhcp6": {
|
|
|
|
+ "socket-type": "unix",
|
|
|
|
+ "socket-name": "/tmp/kea-dhcp6-ctrl.sock"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // Specify hooks libraries that are attached to the Control Agent.
|
|
|
|
+ // Such hooks libraries should support 'control_command_receive'
|
|
|
|
+ // hook point. This is currently commented out because it has to
|
|
|
|
+ // point to the existing hooks library. Otherwise the Control
|
|
|
|
+ // Agent will fail to start.
|
|
|
|
+ "hooks-libraries": [
|
|
|
|
+// {
|
|
|
|
+// "library": "/opt/local/control-agent-commands.so",
|
|
|
|
+// "parameters": {
|
|
|
|
+// "param1": "foo"
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+ ]
|
|
|
|
+},
|
|
|
|
+
|
|
// Logging configuration starts here. Kea uses different loggers to log various
|
|
// Logging configuration starts here. Kea uses different loggers to log various
|
|
// activities. For details (e.g. names of loggers), see Chapter 18.
|
|
// activities. For details (e.g. names of loggers), see Chapter 18.
|
|
"Logging":
|
|
"Logging":
|
|
@@ -776,32 +811,39 @@
|
|
// of logs if told to do so.
|
|
// of logs if told to do so.
|
|
"debuglevel": 0
|
|
"debuglevel": 0
|
|
},
|
|
},
|
|
- {
|
|
|
|
- // This specifies the logging for kea-dhcp6 logger, i.e. all logs
|
|
|
|
- // generated by Kea DHCPv6 server.
|
|
|
|
- "name": "kea-dhcp6",
|
|
|
|
- "output_options": [
|
|
|
|
- {
|
|
|
|
- "output": "@localstatedir@/log/kea-dhcp6.log"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- "severity": "INFO",
|
|
|
|
- "debuglevel": 0
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- // This specifies the logging for D2 (DHCP-DDNS) daemon.
|
|
|
|
- "name": "kea-dhcp-ddns",
|
|
|
|
- "output_options": [
|
|
|
|
- {
|
|
|
|
- "output": "@localstatedir@/log/kea-ddns.log"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- "severity": "INFO",
|
|
|
|
- "debuglevel": 0
|
|
|
|
- }
|
|
|
|
|
|
+ {
|
|
|
|
+ // This specifies the logging for kea-dhcp6 logger, i.e. all logs
|
|
|
|
+ // generated by Kea DHCPv6 server.
|
|
|
|
+ "name": "kea-dhcp6",
|
|
|
|
+ "output_options": [
|
|
|
|
+ {
|
|
|
|
+ "output": "@localstatedir@/log/kea-dhcp6.log"
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "severity": "INFO",
|
|
|
|
+ "debuglevel": 0
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ // This specifies the logging for D2 (DHCP-DDNS) daemon.
|
|
|
|
+ "name": "kea-dhcp-ddns",
|
|
|
|
+ "output_options": [
|
|
|
|
+ {
|
|
|
|
+ "output": "@localstatedir@/log/kea-ddns.log"
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "severity": "INFO",
|
|
|
|
+ "debuglevel": 0
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "name": "kea-ctrl-agent",
|
|
|
|
+ "output_options": [
|
|
|
|
+ {
|
|
|
|
+ "output": "@localstatedir@/log/kea-ctrl-agent.log"
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "severity": "INFO",
|
|
|
|
+ "debuglevel": 0
|
|
|
|
+ }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
-
|
|
|
|
- // In the future releases, also Control Agent configuration will be kept here.
|
|
|
|
- // However, for the time being, it is kept in a separate file.
|
|
|
|
}
|
|
}
|