39-14
Configuring the TFTP Server and Bootfile Name for the DHCP Client
This task is to specify the IP address and name of a TFTP server and the bootfile name in the DHCP
global address pool. The DHCP clients use these parameters to contact the TFTP server, requesting
the configuration file used for system initialization, which is called auto-configuration. The request
process of the client is described below:
1) When a switch starts up without loading any configuration file, the system sets the specified
interface (VLAN-interface 1) as the DHCP client to request from the DHCP server parameters such
as the IP address and name of a TFTP server, and bootfile name.
2) After getting related parameters, the DHCP client will send a TFTP request to obtain the
configuration file from the specified TFTP server for system initialization. If the client cannot get
related parameters, it will perform system initialization without loading any configuration file.
To implement auto-configuration, you need to specify the IP address and name of a TFTP server and
the bootfile name on the DHCP server, but you do not need to perform any configuration on the DHCP
client.
When Option 55 in a client’s request contains parameters of Option 66, Option 67, or Option 150, the
DHCP server will return the IP address and name of the specified TFTP server, bootfile name and an IP
address to the client, which uses such information to complete auto-configuration.
Follow these steps to configure the TFTP server and bootfile name for the DHCP client:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter DHCP address pool
view
dhcp server ip-pool pool-name
—
Specify the TFTP server
tftp-server ip-address ip-address
Optional
Not specified by default.
Specify the name of the
TFTP server
tftp-server domain-name
domain-name
Optional
Not specified by default.
Specify the bootfile name
bootfile-name
bootfile-name
Optional
Not specified by default.
Configuring a Self-Defined DHCP Option
By configuring self-defined DHCP options, you can:
z
Define new DHCP options. New configuration options will come out with DHCP development. To
support new options, you can add them into the attribute list of the DHCP server.
z
Extend existing DHCP options. When the current DHCP options cannot meet customers’
requirements (for example, you cannot use the
dns-list
command to configure more than eight
DNS server addresses), you can configure a self defined option for extension.
Follow these steps to configure a self-defined DHCP option:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter DHCP address pool view
dhcp server ip-pool
pool-name
—