Configuring the TFTP server and bootfile name for the client

For the DHCP server to support client auto-configuration, you must specify the IP address or name of a TFTP server and the bootfile name in the DHCP address pool. You do not need to perform any configuration on the DHCP client.

The DHCP client uses these parameters to contact the TFTP server and request the configuration file used for system initialization.

  1. When a switch starts up without loading any configuration file, the system sets an active interface (such as the interface of the default VLAN ) as the DHCP client to request from the DHCP server for parameters, such as an IP address and name of a TFTP server, and the 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 such parameters, it will perform system initialization without loading any configuration file.

To configure the IP address and name of the TFTP server and the bootfile name in the DHCP address pool:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter DHCP address pool view.

dhcp server ip-pool pool-name [ extended ]

N/A

3. Specify the IP address or name of the TFTP server.

  • Specify the TFTP server:tftp-server ip-address ip-address

  • Specify the name of the TFTP server:tftp-server domain-name domain-name

Use either command.

Not specified by default.

4. Specify the bootfile name.

bootfile-name bootfile-name

Not specified by default.