Chapter 5
46
A useful method of automatically configuring suitable IP
devices is to put a device add statement into the file //isfs/
resolve and downloading it upon booting the image.
Example:
adsl> ip device add ethernet ether //edd dhcp
adsl> ip device
#
type
dev file
IP address
device ethernet ether
//edd
mtu 1500 dhcp
5.4.3
DHCP Server Commands
DHCP Server Console commands.
5.4.3.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.
Example:
adsl> dhcpserver config
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;
}