DHCP protocol
U
SER
G
UIDE
321
determines the time in seconds for which an IP address must be reserved (not assigned to
any client) in the case of receiving an explicit message to the
DHCP DECLINE
. The default
value is
3600
seconds.
set dhcp-server <pool> conflict-time SECONDS
determines the time in seconds for which an IP address must be reserved (not assigned to
any client) in case an ARP conflict occurs, i.e. the selected address is already present in the
network. The default value is
3600
seconds.
set dhcp-server <pool> offer-time SECONDS
determines the time in seconds of validity of the offer of an address to a client. The default
value is
60
seconds.
It is possible to start the
dhcp-server
service with the command:
set dhcp-server <name> on
while the command:
set dhcp-server <name> off
turns off the
dhcp-server
service relative to the
<name>
process
.
Some commands are available to remove the previous set options:
set dhcp-server <name> no-router
set dhcp-server <name> no-subnet
set dhcp-server <name> no-wins
set dhcp-server <name> no-dns
set dhcp-server <name> no-staticroutes <subnet/prefix> <ipaddr>
set dhcp-server <name> no-msstaticroutes <subnet/prefix> <ipaddr>
For example:
set dhcp-server lan no-option 120 hex 010a0a0b0b
set dhcp-server lan no-option 152 ip 10.10.10.11
set dhcp-server lan no-option 160 ascii http://172.20.1.24
Finally, with:
set no-dhcp-server
the
dhcp-server
service is disabled, removing also all the configurations relative to the
dhcp-server
pools.
Example:
set dhcp-server LAN0 interface eth0
set dhcp-server LAN0 start-range 172.151.1.1
set dhcp-server LAN0 end-range 172.151.1.100
set dhcp-server LAN0 router 172.151.10.10
set dhcp-server LAN0 dns 172.151.113.50
set dhcp-server LAN0 lease-time 6000
set dhcp-server LAN0 subnet 255.255.0.0
set dhcp-server LAN0 on