... | ... | @@ -2,7 +2,7 @@ |
|
|
|
|
|
For the basic installation notes, please see [ISC's Knowledgebase](https://kb.isc.org/v1/docs/kea-build-on-ubuntu). This wiki page documents installation for the integration of Kea with Sysrepo (NETCONF) and RADIUS.
|
|
|
|
|
|
### Building with FreeRADIUS (optional)
|
|
|
## Building with FreeRADIUS (optional)
|
|
|
You need to have the subscription or premium package to make this work.
|
|
|
|
|
|
Install the FreeRADIUS client first:
|
... | ... | @@ -41,7 +41,7 @@ FreeRADIUS client: |
|
|
```
|
|
|
then compile as usual. (The version and extended version fields will reflect the version of Kea you are building.)
|
|
|
|
|
|
### Building with NETCONF/Sysrepo (optional)
|
|
|
## Building with NETCONF/Sysrepo (optional)
|
|
|
Kea 1.5 introduced support for NETCONF. To build with this support, software called Sysrepo is needed.
|
|
|
|
|
|
The following installation instruction was tested on Ubuntu 18.04.
|
... | ... | @@ -115,3 +115,26 @@ Sysrepo: |
|
|
```
|
|
|
|
|
|
You are now ready to compile kea. Use `make` or `make -j<number-of-cpu-cores>`.
|
|
|
|
|
|
### Install new Kea YANG models
|
|
|
|
|
|
Kea 1.6.0 introduces some changes to the YANG models. If you are interested in using kea-dhcp4-server and kea-dhcp6-server only (these are the only supported models for now, you should navigate to Kea sources src/share/yang/modules and issue the following commands:
|
|
|
|
|
|
```
|
|
|
#!/bin/sh
|
|
|
# Sysrepo 0.7.8 comes with outdated ietf-interfaces. We need to uninstall its dependencies,
|
|
|
# then the ietf-interfaces module, then install the version provided with Kea.
|
|
|
sysrepoctl -u -m iana-if-type
|
|
|
sysrepoctl -u -m ietf-ip
|
|
|
sysrepoctl -u -m ietf-interfaces
|
|
|
sysrepoctl -i -s . -g ietf-interfaces@2018-02-20.yang
|
|
|
sysrepoctl -i -s . -g kea-dhcp4-server@2019-08-12.yang
|
|
|
sysrepoctl -i -s . -g kea-dhcp6-server@2019-08-12.yang
|
|
|
|
|
|
# If you intend to run kea unit-tests you should also install the following models.
|
|
|
# Note they're used in running unit-tests only and are useless in production.
|
|
|
sysrepoctl -i -s . -g ietf-dhcpv6-server@2018-09-04.yang
|
|
|
sysrepoctl -i -s . -g kea-ctrl-agent@2019-08-12.yang
|
|
|
sysrepoctl -i -s . -g kea-dhcp-ddns@2019-08-12.yang
|
|
|
sysrepoctl -i -s . -g keatest-module@2018-11-20.yang
|
|
|
``` |
|
|
\ No newline at end of file |