CONFIG DHCP PARAMETERS ADD

Level

network+modify

History

custom-option1 Appears in 6.1.0
custom-option2 Appears in 6.1.0
default-ltime deprecated in 6.1.0
iparray option for custom-option2 Appears in 6.1.3
hostgroup name option for custom-option2 Appears in 6.1.3
level changes from other+modify to network+modify in 9.0.0

Description

Add a global parameter to DHCP server

Implementation notes

non documented parameters :
port=number : fix another port for dhcp server (must be superior to 1024)
authoritative=Off|On : act as an authoritative dhcp server.default valueis Off
dns-update-hosts=Off|On : update fixed host entries in dns. by default, its value is the same as dns-update
dns-use-hostname=Off|On : use dhcp name to update dns entry. by default its value is the same as dns-update
ping-check=Off|On : send an icmp echo before attributing ip address. default is On
cache-threshold=[0-100] : If a client renews before 'cache-threshold' percent of its lease has elapsed (default is 25%), the server will reuse the allocated lease rather than extend or renew the lease
wpad=Off|On : activate web proxy autoconfiguration discovery

Usage

domain-name=<name> | dns-update=Off|On | default-ltime=<seconds> | max-ltime=<seconds> | min-ltime=<seconds> | wpad=Off|On | custom-option1=<name>,<id>,(str|ip|iparray),(<string>|<host name>|<hostgroup name>) | custom-option2=<name>,<id>,(str|ip|iparray),(<string>|<host name>|<hostgroup name>)

Returns

Error code

Example

CONFIG DHCP PARAMETERS ADD domain-name=my.domain.com