Specifying the configuration file for DHCP client auto-configuration

Auto-configuration enables a device to obtain a set of configuration settings automatically from servers when the device starts up without a configuration file. It requires the cooperation of the DHCP server, HTTP server, DNS server, and TFTP server. For more information about auto-configuration, see Fundamentals Configuration Guide.

Follow these guidelines to specify the parameters on the DHCP server for configuration file acquisition:

The DHCP client uses the obtained parameters to contact the TFTP server or the HTTP server to get the configuration file.

To specify the configuration file name in a DHCP address pool:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a DHCP address pool and enter its view.

dhcp server ip-pool pool-name

By default, no DHCP address pool exists.

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

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

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

You can specify both the IP address and name of the TFTP server.

By default, no TFTP server is specified.

4. Specify the configuration file name.

bootfile-name bootfile-name

By default, no configuration file name is specified.

To specify the configuration file URL in a DHCP address pool:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a DHCP address pool and enter its view.

dhcp server ip-pool pool-name

By default, no DHCP address pool exists.

3. Specify the URL of the configuration file.

bootfile-name url

By default, no configuration file URL is specified.