Using automatic configuration
Overview
When the device starts up without a valid next-startup configuration file, the device searches the root
directory of its default file system for the autocfg.py, autocfg.tcl, and autocfg.cfg files. If any one of the
files exists (only one of the files can exist), the device loads the file. If none of the files exists, the
device uses the automatic configuration feature to obtain a set of configuration settings. This feature
simplifies network configuration and maintenance.
Automatic configuration can be implemented by using a set of servers. Server-based automatic
configuration requires a DHCP server and a file server (HTTP or TFTP server). A DNS server might
also be required.
Server-based automatic configuration applies to scenarios that have the following characteristics:
•
A number of devices need to be configured.
•
The devices to be configured are widely distributed.
•
The configuration workload on individual devices is heavy.
Using server-based automatic configuration
As shown in
•
DHCP server.
•
File server (TFTP or HTTP server).
•
(Optional.) DNS server.
Figure 34 Server-based automatic configuration network diagram
Server-based automatic configuration task list
Tasks at a glance
(Required.)
Figure
34, server-based automatic configuration requires the following servers:
Configuring the file server
171