○
○
○
○
○
A- Commonly Used Commands
A-25
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
A.5
DHCP Server Commands
This section describes console commands provided by the dhcpserver process.
A.5.1
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.
Subnet
subnet subnet-number netmask netmask {
[ parameters ]
[ declarations ]
}
The subnet statement is used to provide the DHCP server with enough information
to determine whether or not an IP address is on that subnet.
It may also be used to provide subnet-specific parameters and to specify what
addresses may be dynamically allocated to clients booting on that subnet. Such
addresses are specified using the
range
declaration.
subnet-number
should be an IP address which resolves to the subnet number of the
subnet being described. The
netmask
should be an IP address which resolves to the
subnet mask of the subnet being described. The subnet number, together with the
subnet mask, are sufficient to determine whether any given IP address is on the
specified subnet.
Although a subnet mask must be given with every subnet declaration, it is
recommended that if there is any variance in subnet masks at a site, a
subnet-mask
option statement be used in each subnet declaration to set the desired subnet mask;
any
subnet-mask
option statement will override the subnet mask declared in the
subnet
statement.