44
Commands for DHCP server process
1. dhcpserver config
Syntax:
dhcpserver config [add <text>|confirm|delete|flush]
Description:
This command displays or edits the current configuration of the DHCP server. To display current
configuration, provide no arguments to the command. Use of the “add” argument adds the line
<text>
to the configuration file. Use of the “confirm” argument reparses the configuration file,
confirming the changes made if the parse is successful. Use of the “delete” argument deletes the
last line from the configuration file. Use of the “flush” argument deletes the whole configuration.
Following any change to the configuration file, it is necessary to “confirm” the changes, issue a
“flashfs update” to commit the change to FLASH, and then restart the system before the changes
can take effect.
Example:
DSL>
dhcpserver config
---
Current DHCP server configuration
---
allow unknown-clients;
allow bootp;
subnet 192.168.219.0 netmask 255.255.255.0 {
range 192.168.219.10 192.168.219.30;
max-lease-time 5000;
}
DSL>
dhcpserver config flush
Configuration file flushed.
DSL>
dhcpserver config
---
Current DHCP server configuration
(Issue "dhcpserver config confirm" followed by "flashfs update" to confirm new
configuration)
---
DSL>
2. dhcpserver status
Syntax:
dhcpserver status
Description:
This command provides a summary of all leases known to the server on each interface in
turn. It also shows remaining available IP addresses (i.e. those with no specified lease time,
or client identifier).
Example:
DSL>
dhcpserver status
DHCP Server Lease Status
Interface “ethernet”
IP address
Client UID
Expiry
192.168.219.1 01:00:20:af:20:6f:59 11 hours
192.168.219.2 01:00:20:af:11:2a:ac 8 hours
192.168.219.3 Myclient
140 seconds
192.168.219.4 00:20:af:20:00:2b:43 2 days
192.168.219.5 <unknown>
Never
192.168.219.6 <unknown>
Never
192.168.219.7 <unknown>
Never
192.168.219.8 <unknown>
Expired
192.168.219.9 <unknown>
Expired
192.168.219.10 Foobarbozzle
Expired