
76 | Command Sets for Command Line Interface |
Commands for DHCP server process
1. dhcpserver config
Syntax:
dhcpserver config [add <text>confirmdeleteflush]
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
subnet 192.168.219.0 netmask 255.255.255.0 { range 192.168.219.10 192.168.219.30;
}
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>