162
For the other devices, create a separate script file for each of them.
Configuring the DHCP server
The DHCP server assigns the following items to devices that need to be automatically configured:
IP addresses.
Paths of the configuration files or scripts.
Configuration guidelines
When you configure the DHCP server, follow these guidelines:
For devices for which you have prepared different configuration files, perform the following
tasks for each of them on the DHCP server:
ï‚¡ Create a DHCP address pool.
ï‚¡ Configure a static address binding.
ï‚¡ Specify a configuration file or script file.
For devices for which you have prepared the same configuration file, perform the following
tasks on the DHCP server:
ï‚¡ Create a DHCP address pool for the devices.
ï‚¡ Configure a static address binding for each of the devices in the address pool.
ï‚¡ Specify the configuration file for the devices.
If all devices on a subnet share the same configuration file or script file, perform the following
tasks on the DHCP server:
ï‚¡ Configure dynamic address allocation.
ï‚¡ Specify the configuration file or script file for the devices.
The configuration file can contain only the common settings for the devices. You can provide a
method for the device administrators to change the configurations after their devices start up.
Configuring the DHCP server when an HTTP file server is used
1. Enter system view.
N/A
2. Enable DHCP.
By default, DHCP is disabled.
3. Create a DHCP address
pool and enter its view.
dhcp server ip-pool
pool-name
By default, n
created.
4. Configure
pool.
• (Method 1.)
Specify the
primary subnet for the
address pool:
network network-address
[ mask-length | mask mask ]
• (Method 2.)
static binding:
static-bind ip-address
ip-address [ mask-length |
mask mask ]
{ client-identifier
client-identifier |
hardware-address
hardware-address
[ ethernet | token-ring ] }
Use either or both methods.
By default, no primary subnet or static
binding is configured.
You can add multiple static bindings.
One IP address can be bound to only
one client. To change the binding for a
DHCP client, you must delete the
binding and reconfigure a binding.
5. Specify the
URL of the
configuration file or
script file.
bootfile-name
url
By default, no configuration file URL is
specified.