![GreatSpeed GS-R250S Plus/Duo Installation Manual & Command Reference Download Page 56](http://html1.mh-extra.com/html/greatspeed/gs-r250s-plus-duo/gs-r250s-plus-duo_installation-manual-and-command-reference_2259962056.webp)
56
GS-R250S Installation Guide
Experience the Internet @ GreatSpeed
DHCP Server Commands
• config
>config [add <text> | confirm | delete | flush]
!
This command displays or edits the current configuration of the DHCP server.
To display current configuration, provide no argument to the command.
Use of the “add” argument adds the line <text> to the configuration file.
Use of the “confirm” argument re-parses 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 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:
Mymachine > dhcpserver config
!
Mymachine > dhcpserver config add subnet 192.168.1.0 netmask 255.255255.0
!
Mymachine > dhcpserver delete
!
Mymachine > dhcpserver flush
!
• status
>status
!
This command provides a summary of all leases known to the server on each interface in turn. It also shows
remaining available IP address (i.e. those with no specified lease time, or client identifier).
Example:
Mymachine > dhcpserver status
!
Text line examples for configuration example:
Use the command
config add
to edit each line and use
config delete
to delete the last line.
subnet 192.168.4.0 netmask 255.255.255.0
{
range 192.168.4.1 192.168.4.99 ;
default-lease-time 43200;
max-lease-time 864000;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.4.255;
option routers 192.168.4.254;
}