Automatic configuration

Automatic configuration overview

Automatic configuration enables a device without any configuration file to automatically obtain and execute a configuration file during startup. Automatic configuration simplifies network configuration, facilitates centralized management, and reduces maintenance workload.

To implement automatic configuration, the network administrator saves configuration files on a server and a device automatically obtains and executes a specific configuration file.

Typical automatic configuration network

Figure 49 Network diagram for automatic configuration

DHCP server

IP network

Device Gateway

TFTP server

DNS server

As shown in Figure 49, the device implements automatic configuration with the cooperation of the following servers: a DHCP server, TFTP server, and DNS server:

DHCP serverassigns an IP address and other configuration parameters such as the configuration file name, TFTP server IP address, and DNS server IP address to the device.

TFTP server: Saves files needed in automatic configuration such as the host name file and the configuration file.

DNS serverresolves between IP addresses and host names. In some cases, the device resolves its IP address to the host name through the DNS server, and then uses the host name to request the configuration file with the same name (hostname.cfg) from the TFTP server. If the device gets the domain name of the TFTP server from the DHCP response, the device can also resolve the domain name of the TFTP server to the IP address of the TFTP server through the DNS server.

If the DHCP server, TFTP server, DNS server, and the device are not in the same network segment, you need to configure the DHCP relay agent on the gateway.

140