Installation
pkg install kea
System Config
Start service
/usr/local/etc/rc.d/kea start
or
service kea start
Config file at /usr/local/etc/kea/kea-dhcp4.conf
{
"Dhcp4": {
"interfaces-config": {
"interfaces": ["vmx1"]
},
"lease-database": {
"type": "memfile",
"persist": true,
"name": "/var/db/kea/dhcp4.leases"
},
"option-data": [
{
"name": "domain-search",
"data": "p6.uw.cz"
},
{
"name": "domain-name-servers",
"data": "10.160.4.254"
}
],
"subnet4": [
{
"id": 1,
"subnet": "10.160.4.0/24",
"pools": [
{
"pool": "10.160.4.150 - 10.160.4.199"
}
],
"option-data": [
{
"name": "routers",
"data": "10.160.4.254"
}
]
}
]
}
}
Restart service
/usr/local/etc/rc.d/kea restart
or
service kea restart
or
No comments:
Post a Comment