[Kea-users] Op122 Docsis EMTA
Fernando R. Soto
frsoto at gmail.com
Tue Mar 1 13:48:49 UTC 2022
Hi. Sorry for my English
Please, can you ckeck if this is ok?
Not working
root at vm4e04p10:/etc/kea# cat kea-dhcp4.conf
{
"Dhcp4":
{
//Add names of your network interfaces to listen on
"interfaces-config": { "interfaces": ["ens160","ens192" ],
"dhcp-socket-type": "udp" }, // Traffic is always relayed
// Control Channel (para recibir comandos de gestion)
"control-socket": {
"socket-type": "unix",
"socket-name": "/tmp/kea-dhcp4-ctrl.sock"
},
// Lease-Database: defino donde guardar las leases
"lease-database": {
"type": "memfile",
"lfc-interval": 3600
},
// Setup reclamation of the expired leases
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5
},
// Global Timers
"renew-timer": 302400,
"rebind-timer": 529200,
"valid-lifetime": 604800,
// Parametros Globales Adicionales
// The scope hierarchy is:
// - global (most generic, can be overwritten by class, subnet or host)
// - class (can be overwritten by subnet or host)
// - subnet (can be overwritten by host)
// - host (most specific, overwrites any other scopes)
"option-data": [
{ "name": "domain-name-servers", "data": "8.8.8.8, 9.9.9.9"},
{ "code": 15, "data": "xxxxx.net.ar" }
],
// Many additional parameters can be specified here:
// Option Definitions
"option-def": [
{
"array": false,
"code": 1,
"encapsulate": "",
"name": "DHCP-server-1",
"record-types": "",
"space": "PC-MTA",
"type": "ipv4-address"
},
{
"array": false,
"code": 6,
"encapsulate": "",
"name": "KERBEROS-realm",
"record-types": "",
"space": "PC-MTA",
"type": "string"
},
{
"array": false,
"code": 3,
"encapsulate": "",
"name": "provision-server",
"record-types": "",
"space": "PC-MTA",
"type": "string"
},
{
"array": false,
"code": 122,
"encapsulate": "PC-MTA",
"name": "PC-MTA",
"record-types": "",
"space": "dhcp4",
"type": "empty"
}
],
// Client-Classes
"client-classes": [
{
"name": "Cablemodem",
"test": "substring(option[60].hex,0,6) == 'docsis'",
"next-server": "192.168.10.43",
"boot-file-name": "30M.bin"
},
{
"name": "cpe",
"test": "not ((substring(option[60].hex,0,4) == 'pktc') or substring(option[60].hex,0,6) == 'docsis')"
},
{
"name": "eMTA",
"test": "substring(option[60].hex,0,4) == 'pktc'",
"next-server": "192.168.10.43",
"boot-file-name": "emta.bin"
}
],
"shared-networks":
[
{ // C M T S 1 P O P 1 0 - Bundle 2
"match-client-id": true,
"name": "CMTS1POP10-B2",
"option-data":
[
{"name": "time-offset","data": "-10800"},
// Send op122 y eMTA
{
"always-send": true,
"code": 3,
"csv-format": false,
"data": "0006646F637369730361766D026465",
"name": "provision-server",
"space": "PC-MTA"
},
{
"always-send": true,
"code": 6,
"csv-format": false,
"data": "0542415349430131",
"name": "KERBEROS-realm",
"space": "PC-MTA"
},
{
"always-send": true,
"code": 1,
"csv-format": true,
"data": "255.255.255.255",
"name": "DHCP-server-1",
"space": "PC-MTA"
}
],
"subnet4": // O P E N S U B N E T S !!!
[
{ // **** SUBNET CMTS1-B2-CM ****
"subnet": "10.40.32.0/19",
"client-class": "Cablemodem",
"pools": [ { "pool": "10.40.32.10 - 10.40.32.255" } ],
"relay": { "ip-address": "10.40.32.1" },
"next-server": "192.168.10.43",
"option-data": [
{"name": "routers", "data": "10.40.32.1"},
{"name": "boot-file-name", "data": "30m.bin" },
{"name": "tftp-server-name","data": "192.168.10.43"},
{"name": "time-servers","data": "192.168.10.43"},
{"name": "time-offset","data": "-10800"},
{"name": "domain-name-servers","data": "192.168.10.42"},
{"name": "log-servers","data": "192.168.10.43"}
]
},
{
"subnet": "10.41.32.0/19",
"client-class": "cpe",
"pools": [ { "pool": "10.41.32.10 - 10.41.32.255" } ],
"relay": { "ip-address": "10.41.32.1" },
"renew-timer": 900,
"rebind-timer": 1800,
"valid-lifetime": 3600,
"option-data": [
{"name": "routers", "data": "10.41.32.1"},
{"name": "time-servers","data": "192.168.10.43"},
{"name": "domain-name-servers","data": "192.168.10.42"}
]
},
{
"subnet": "10.42.32.0/19",
"client-class": "eMTA",
"pools": [ { "pool": "10.42.32.10 - 10.42.32.255" } ],
"relay": { "ip-address": "10.42.32.1" },
"next-server": "192.168.10.43",
"option-data": [
{"name": "routers", "data": "10.42.32.1"},
{"name": "time-servers","data": "192.168.10.43"},
{"name": "domain-name-servers","data": "192.168.10.42"},
{"name": "tftp-server-name","data": "192.168.10.43"},
{"name": "log-servers","data": "192.168.10.43"}
]
} //Ultima
] // Last - CLOSE NETWORKS !!!
}
],
"loggers": [{
"name": "kea-dhcp4",
"output_options": [{"output": "/var/log/kea/kea-dhcp4.log" }],
"severity": "INFO",
"debuglevel": 0 }]
}
}
root at vm4e04p10:/etc/kea#
De: Mathias Aichinger <mathias.aichinger at easysol.at <mailto:mathias.aichinger at easysol.at> >
Enviado el: lunes, 28 de febrero de 2022 11:31
Para: Fernando R. Soto <frsoto at gmail.com <mailto:frsoto at gmail.com> >
CC: kea-users at lists.isc.org <mailto:kea-users at lists.isc.org>
Asunto: Re: [Kea-users] Op122 Docsis EMTA
Hi Fernando,
we are doing it like that:
"option-def": [
{
"array": false,
"code": 1,
"encapsulate": "",
"name": "DHCP-server-1",
"record-types": "",
"space": "PC-MTA",
"type": "ipv4-address"
},
{
"array": false,
"code": 6,
"encapsulate": "",
"name": "KERBEROS-realm",
"record-types": "",
"space": "PC-MTA",
"type": "string"
},
{
"array": false,
"code": 3,
"encapsulate": "",
"name": "provision-server",
"record-types": "",
"space": "PC-MTA",
"type": "string"
},
{
"array": false,
"code": 122,
"encapsulate": "PC-MTA",
"name": "PC-MTA",
"record-types": "",
"space": "dhcp4",
"type": "empty"
}
],
Later:
"option-data": [
{
"always-send": true,
"code": 3,
"csv-format": false,
"data": "0006646F637369730361766D026465",
"name": "provision-server",
"space": "PC-MTA"
},
{
"always-send": true,
"code": 6,
"csv-format": false,
"data": "0542415349430131",
"name": "KERBEROS-realm",
"space": "PC-MTA"
},
{
"always-send": true,
"code": 1,
"csv-format": true,
"data": “X.X.X.X",
"name": "DHCP-server-1",
"space": "PC-MTA"
},
Sending the HEX parts via API is a little bit tricky and cost me some time.
Hopefully that helps you.
Best Regards,
Mathias Aichinger
On 28.02.2022, at 15:18, Fernando R. Soto <frsoto at gmail.com <mailto:frsoto at gmail.com> > wrote:
Hello. please
someone would have information on how to add option 122 in the Offer Packet
Option: (122) CableLabs Client Configuration [TODO:RFC3495]
Length: 6
Suboption: TSP's Primary DHCP Server (1): 255.255.255.255 (4 bytes)
Regards
--
ISC funds the development of this software with paid support subscriptions. Contact us at <https://www.isc.org/contact/> https://www.isc.org/contact/ for more information.
To unsubscribe visit <https://lists.isc.org/mailman/listinfo/kea-users> https://lists.isc.org/mailman/listinfo/kea-users.
Kea-users mailing list
<mailto:Kea-users at lists.isc.org> Kea-users at lists.isc.org
<https://lists.isc.org/mailman/listinfo/kea-users> https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220301/06892b6c/attachment-0001.htm>
More information about the Kea-users
mailing list