dhcp-edit(8)

dhcp-edit8

Add or and remove entries to/from dhcpd.conf

Usage

dhcp-edit [OPTION] HOST MAC [IP]

Overview

Add a new host entry to dhcpd.conf or remove an existing entry. Additionally restart DHCP daemon.

Options

-d

Dry run. Do not change files.

-h

Print help.

-n

Do not restart DHCP daemon.

-p PATTERN

Add new entry before line matching PATTERN

-r HOST|MAC

Remove entry contain HOST or MAC address.

Examples

dhcp-edit host mac

   Add entry using host and mac address using a fixed IP address. You
   have to define the IP address in /etc/hosts or similar service.

dhcp-edit host mac ip

   Add entry using host and mac address using the numerical IP address.

dhcp-edit -r hostname|mac

   Remove line containing this hostname or mac address.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

From fai-server 6.4.3 in Debian 13 (Trixie). Parsed by carta from the page's man source.