6211-I1 ADSL2+ Router Command Line Interface User’s Guide
24
dhcpserver
Name
dhcpserver
Lets you configure or show the DHCP server data.
Synopsis
dhcpserver config <start IP address> <end IP address> <leased time (hour)>
dhcpserver show
dhcpserver --help
Description
The dhcpserver command configures or shows the DHCP server data. This utility:
configures the DHCP server on the primary LAN interface.
shows the DHCP server configuration data.
displays usage.
All information is displayed to stdout. A program or shell script that calls this utility can redirect stdout to a file
and then parse the file in order to interpret the displayed output.
Commands
config
Configures the DHCP server with the given data.
This command saves the configuration data to flash, but does not take effect until the system is
rebooted.
show
Shows the DHCP server configuration data.
--help
Displays usage.
Options
Options for the config command:
dhcpserver config <start IP address> <end IP address> <leased time (hour)>.
<start IP address>
The IP address of the first address in the range. The value of range start must be less than or
equal to the value of range end.
Valid values: any valid IP address.
Default value: 192.168.1.2.
<end IP address>
The IP address of the last address in the range. The value of range end must be greater than or
equal to the value of range start.
Valid values: any valid IP address.
Default value: 192.168.1.254.