[Kea-users] CentOS 7 DHCP Client - How to use “classless-static-routes” (“code 121”)?

Eduardo Lúcio Amorim Costa eduardolucioac at gmail.com
Thu Aug 2 03:26:33 UTC 2018


Friends,

I'm trying to use KEA to push routes ("classless-static-routes"/"code 121")
to my CentOS 7 DHCP clients (DHCPv4). This is the setup I have at KEA for
that...

`
cat /usr/local/etc/kea/kea-dhcp4.conf

[...]
"option-def": [{
        "name": "rfc3442-classless-static-routes",
        "code": 121,
        "space": "dhcp4",
        "type": "record",
        "record-types": "uint8,uint8,uint8,ipv4-address"
    }
],
"option-data": [{
        "name": "rfc3442-classless-static-routes",
        "data": "10,1,4, 10.1.6.4"
}]
[...]
`

This is what I have in my CentOS 7 DHCP client (DHCPv4) `dhclient.conf`
file...

`
option rfc3442-classless-static-routes code 121 = array of unsigned integer
8;
option ms-classless-static-routes code 249 = array of unsigned integer 8;
option wpad code 252 = string;

also request rfc3442-classless-static-routes;
also request ms-classless-static-routes;
also request static-routes;
also request wpad;
also request ntp-servers;
`

In other words I am trying to use KEA to do the same thing I would do with
the `ip route add 10.1.4.0/24 dev enp0s8 via 10.1.6.4` in each of my DHCP
clients.

I really do not know what I'm doing wrong... =/

More informations: https://unix.stackexchange.com/q/459945/61742

[]'s and thanks! =D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180802/5e7084d3/attachment.htm>


More information about the Kea-users mailing list