DHCP Server API
Gestionar DHCP pools attached to specific networking interfaces or VLANs.
GET
/api/dhcp List all configured DHCP pools.
POST
/api/dhcp Crear new DHCP pool.
Cuerpo de la Petición
{
"interface": "vlan10",
"start_ip": "10.0.10.100",
"end_ip": "10.0.10.200",
"gateway": "10.0.10.1",
"dns": ["8.8.8.8", "1.1.1.1"],
"lease_time": 1440
} PUT
/api/dhcp/:interface Edit an existing DHCP pool.
Cuerpo de la Petición
{
"start_ip": "10.0.10.50",
"end_ip": "10.0.10.250",
"gateway": "10.0.10.1",
"dns": ["8.8.8.8"],
"lease_time": 2880
} DELETE
/api/dhcp/:interface Remove a DHCP pool from the specified interface.