[Kea-users] Multiple relay servers - problem

Marcin Romanowski marcin at nicram.net
Wed Aug 5 12:28:57 UTC 2020


I have problem with offering adresses.
Two relay agents (cisco) for public addresses .193 and .194 and one relay
(cisco) .198 for private addresses.
All listen on the same vlan, networks are different. agents for public
addresses are redundant and always only one server relay dhcp to KEA.
When client sends DISCOVER kea gets request from both relay agents, one
from public .194 and one from private .194. In log, I see that proper
address from proper network was assigned but  KEA sends OFFER to .194 this
helper doesn't have private address so discards packet.

this is my config:

{
"Dhcp4": {
"shared-networks": [
    {
        "name": "company_public_network",
        "relay": {
            "ip-addresses": [
                "10.249.1.193",
                "10.249.1.194"
            ]
        },
        "subnet4": [
            {
                "id": 30,
                "subnet": "5.16.0.128/26",
                "pools": [],
                "option-data": [
                    {
                        "always-send": true,
                        "code": 3,
                        "csv-format": true,
                        "space": "dhcp4",
                        "name": "routers",
                        "data": "5.16.0.129"
                    }
                ],
                "reservations": [
                    {
                        "hw-address": "e4:8d:8c:6e:ff:02",
                        "ip-address": "5.16.0.131"
                    }
                    ]
                }
                // other public subnets
            ]
        },
        {
            "name": "company_private_network",
            "relay": {
                "ip-addresses": [
                    "10.249.1.198"
                ]
            },
            "subnet4": [
                {
                    "id": 369,
                    "subnet": "10.0.72.0/22",
                    "pools": [],
                    "option-data": [
                        {
                            "always-send": true,
                            "code": 3,
                            "csv-format": true,
                            "space": "dhcp4",
                            "name": "routers",
                            "data": "10.0.72.1"
                        }
                    ],
                    "reservations": [
                        {
                            "hw-address": "18:d0:71:fb:63:80",
                            "ip-address": "10.0.72.5"
                        },
                        {
                            "hw-address": "d0:96:fb:16:52:60",
                            "ip-address": "10.0.72.42"
                        }
                    ]
                }
                // Other private subnets
            ]
        }
    ],
    "subnet4": [],
    "t1-percent": 0.5,
    "t2-percent": 0.875,
    "valid-lifetime": 86400
    }
}

Shouldn't kea sent response to configured relay ip?

Best Regards

Marcin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20200805/54ee49c6/attachment.htm>


More information about the Kea-users mailing list