[Kea-users] Subnet selection by class
Cesar Macias Duarte
cesar.alejandro.macias at gmail.com
Wed Apr 25 19:53:19 UTC 2018
Hi,
I work with PPPoE in GPON, and need the DHCP give IPs from one subnet (or
many subnet when the first subnet is full) to many sub-interfaces, but the
discover packet come from the same mac.
To explain, whe you use PPPoE the router is the dhcp client for all
conections and create a tunel from router to real client and asing the IP
from DHCP in /32.
With the clasic DHCP-ISC you can give one subnet for many sub-interfaces in
PPPoE.
I create a class fo match the mac adrres of pppoe router (all clients
conections), and put the class to the subnet. The discover match the class,
but not select a subnet.
Please I need a help!
The log in debug mode:
Apr 25 09:10:26 lab-gpon kea-dhcp4: 2018-04-25 09:10:26.835 INFO
[kea-dhcp4.options/22792] EVAL_RESULT Expression Lab_Relay_PPP
oE evaluated to 1
Apr 25 09:10:26 lab-gpon kea-dhcp4: 2018-04-25 09:10:26.835 ERROR
[kea-dhcp4.bad-packets/22792] DHCP4_PACKET_NAK_0001 [hwtype=1
00:0f:f7:9c:99:1b], cid=[00:6a:63:61:6d:61:63:68:6f], tid=0x142ce: failed
to select a subnet for incoming packet, src 10.11.159.
254, type DHCPDISCOVER
the config file:
"client-classes": [
// Filtro para solo recibir los mensajes de la interface del Router
(MAC) para PPPoE, del HUB de Laboratorio
{
"name": "Lab_Relay_PPPoE",
"test": "pkt4.mac == 0x000ff79c991b",
"option-data": [
{
"name": "domain-name-servers",
"data": "200.124.235.194, 200.124.235.195,
200.124.235.196"
}
]
}
.
.
.
"shared-networks": [
{
"name": "Lab_Internet",
"subnet4": [
// PPPoE
{
"subnet": "201.183.254.128/26",
"id": 1001,
"client-class": "Lab_Relay_PPPoE",
"pools": [ { "pool": "201.183.254.128 -
201.183.254.160" } ]
},
// Modo Router
{
"subnet": "10.11.156.0/22",
"id": 1000,
"client-class": "Lab_Relay_DHCP_R1",
"option-data": [
{
"name": "routers",
"data": "10.11.159.254"
}
]
},
// Modo router segundo plan
{
"subnet": "10.15.255.0/24",
"id": 1008,
"client-class": "Lab_Relay_DHCP_R2",
"option-data": [
{
"name": "routers",
"data": "10.15.255.254"
}
]
}
]
}
--
Atentamente.
Cesar Alejandro Macias Duarte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180425/412fd672/attachment.htm>
More information about the Kea-users
mailing list