logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dhcp-edit - add or and remove entries to/from dhcpd.conf

Description

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

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.

Name

       dhcp-edit - add or and remove entries to/from dhcpd.conf

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.

Synopsis

       dhcp-edit [OPTION] HOST MAC [IP]

See Also