<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Klaus,</p>
<p>Thank you for your quick answer,</p>
<p>What do you mean by 'the subnet as one that's owned by Kea', the
one the NIC belong to ? <br>
</p>
<p>I have different scope for my subnets, here is a part of my
config :</p>
<p>--->8---<br>
</p>
<p>"client-classes": [{ "name": "VoIP", "test":
"substring(option[60].hex,0,6) == 'Aastra"}],</p>
<p> "subnet4": [<br>
{<br>
"id": 1,<br>
"client-class": "VoIP",<br>
"pools": [{"pool": "192.168.4.10 - 192.168.4.50"}],<br>
"subnet": "192.168.4.0/24"<br>
},<br>
{<br>
"id": 2,<br>
"pools": [{"pool": "192.168.10.160 - 192.168.10.180"}],<br>
"subnet": "192.168.10.0/24"<br>
}<br>
]<br>
</p>
<p>---8<----</p>
<p>The IP adress of my server is 192.168.10.100/24 and I tried to
use an interface alias to add the IP address 192.168.4.100/24 to
my server. I'm sure that the Ip phones belong to the class VoIP, I
see it in the kea log file, but it still doesn't working... <br>
</p>
<p>All devices are connected on the same switch, and belong to the
same VLAN. <br>
</p>
<p>I also tried to use reservations to see if the subnet selection
will be affected by reservations but this is not the case, KEA
find the reservation but don't use it because it is not inside the
subnet it belong to. <br>
</p>
<p>So I tried to use larger mask, like '/20' for the first subnet
and use the option 1 'subnet-mask', to make the KEA server part of
this subnet, but it seems not working because devices using the
/20 and not the /24 specified into the subnet-mask option. <br>
</p>
<p>I'm running out of ideas. <br>
</p>
<p>Any help is welcome. <br>
</p>
<p>Thank you,<br>
</p>
<p>Max<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 16/08/2016 00:07, Klaus Steden
wrote:<br>
</div>
<blockquote
cite="mid:CALQU4ztzGBdT_t2tZJUKBof52cagcpTaqaBN9QZBiQ6+6anAyg@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div>Hi Maxime,</div>
<div><br>
</div>
<div>Have you defined the subnet as one that's owned by Kea in
the config file? Assuming you have different routers,
netmasks, etc., you would have to define a separate scope for
both networks.</div>
<div><br>
</div>
<div>Presumably you've got DHCP forwarding enabled on your
switches as well so that DHCP requests get relayed through to
your Kea server, which is the only way you can have any DHCP
server provide leases for a network it is not directly
connected to.</div>
<div><br>
</div>
<div>If it's useful, here's a sample from my config that serves
three different subnets via a single NIC on a different
network:</div>
<div><br>
</div>
<div>-- cut --<br>
"subnet4": [<br>
{<br>
"subnet": "<a moz-do-not-send="true"
href="http://10.129.129.0/29">10.129.129.0/29</a>",<br>
"id": 1,<br>
"pools": [{ "pool": "10.129.129.2 - 10.129.129.6" }],<br>
"option-data": [{ "name": "routers", "data":
"10.129.129.1" }]<br>
},<br>
{<br>
"subnet": "<a moz-do-not-send="true"
href="http://10.129.129.8/29">10.129.129.8/29</a>",<br>
"id": 2,<br>
"pools": [{ "pool": "10.129.129.10 - 10.129.129.14"
}],<br>
"option-data": [{ "name": "routers", "data":
"10.129.129.9" }]<br>
},<br>
{<br>
"subnet": "<a moz-do-not-send="true"
href="http://10.0.194.0/28">10.0.194.0/28</a>",<br>
"id": 3,<br>
"pools": [{ "pool": "10.0.194.2 - 10.0.194.14" }],<br>
"option-data": [{ "name": "routers", "data":
"10.0.194.1" }]<br>
}<br>
]<br>
-- cut --</div>
<div><br>
</div>
<div>cheers,</div>
<div>Klaus</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 15, 2016 at 5:08 AM, Maxime
Lareo <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:max.lareo@gmail.com" target="_blank">max.lareo@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I currently testing KEA with 2 servers for HA with a Mariadb
Galera Cluster Backend and it works pretty well.<br>
<br>
It running like a charm with one subnet, but when it come
managing multiple subnet, with only 1 NIC, it seems
impossible to make it work. KEA just doesn't want to give an
IP address that doesn't belong to its own subnet.<br>
<br>
I don't succeed to use ip relay or client classification
properly to make it work.<br>
<br>
Do I missing something ?<br>
<br>
I just want to have VoIP devices on another subnet than the
original subnet. All the devices (VoIP or not) are on the
same VLAN and switch.<br>
<br>
To explain my actual configuration :<br>
<br>
I have a client classes testing the option 60 and it work, I
can see in the log file, the expression evaluated to 1, but
KEA doesn't choose the subnet with the client-class but the
one who match its subnet (the one my server ip address
belong to), which is after the VoIP subnet in the conf file.<br>
<br>
Someone know a way to make it works ?<br>
<br>
Thank you !<br>
______________________________<wbr>_________________<br>
Kea-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a moz-do-not-send="true"
href="https://lists.isc.org/mailman/listinfo/kea-users"
rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/kea-users</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>