ogboot/etc/kea-dhcp4.conf.tmpl

45 lines
1.2 KiB
Cheetah

{
"Dhcp4": {
"interfaces-config": {
"interfaces": "INTERFACES"
},
"subnet4": [
{
"subnet": "192.168.2.0/24",
"option-data": [
{
"name": "routers",
"code": 3,
"data": "192.168.2.1"
}
],
"pools": []
}
],
"option-data": [
{
"name": "domain-name-servers",
"data": "1.1.1.1,8.8.8.8"
},
{
"name": "routers",
"data": "192.168.8.1,192.168.9.1"
}
],
"client-classes": [
{
"name": "UEFI-64",
"test": "not substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'",
"boot-file-name": "ipxe.efi",
"next-server": "SERVERIP"
},
{
"name": "Legacy",
"test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'",
"boot-file-name": "undionly.kpxe",
"next-server": "SERVERIP"
}
]
}
}