[Kea-users] kea answers to relay using giaddr instead of source address. any way to fix?

Marcin Siodelski marcin at isc.org
Thu Sep 28 11:27:02 UTC 2017


On 28.09.2017 13:22, Sergey Klusov wrote:
> On Чт 28.09.2017 16:09, Francis Dupont wrote:
>>   "test": "relay4[2].text == '100.101.101.0'"
>>
>> => please try "test": "relay4[2].hex == 100.101.101.0"
>> (.text does not return what you want if the (sub-)option is not a string
>> and IP address litterals are supported).
>>            
>> Regards
>>
>> Francis Dupont <fdupont at isc.org>
>>
> Didn't work, because it converts 100.101.101.0 into 4-byte IP address.
> 
> For now it works this way "relay4[2].hex==0x3130302e3130312e3130312e30",
> but it rather clumsy.
> 
> Mikrotik does not allow to specify binary value either.
> 
> Some function like relay4[2].string would be nice.
> 
> 
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users

Perhaps it will be better to specify the "relay" parameter on the subnet
level:

"relay": {
    "ip-address": "100.101.101.0"
}

See: http://kea.isc.org/docs/kea-guide.html#dhcp6-relay-override

The classification will be needed for filtering the RAI option values to
more specifically select the subnet but relay parameter should narrow
down the selection for the relay address.

Marcin



More information about the Kea-users mailing list