How automatic configuration works

Automatic configuration works in the following manner:

1.During startup, the device sets the first up interface (if up Layer 2 Ethernet interfaces are available, the VLAN interface of the default VLAN of the Ethernet interfaces is selected as the first up interface.) as the DHCP client to request parameters from the DHCP server, such as an IP address and name of a TFTP server, IP address of a DNS server, and the configuration file name.

2.After getting related parameters, the device sends a TFTP request to obtain the configuration file from the specified TFTP server and executes the configuration file. If the client cannot get such parameters, it uses factory default configuration.

NOTE:

To implement automatic configuration, you need to configure the DHCP server, DNS server and TFTP server, but you do not need to perform any configuration on the device that performs automatic configuration.

Before starting the device, connect only the interface needed in automatic configuration to the network.

Work flow of automatic configuration

Figure 50 shows the work flow of automatic configuration.

Figure 50 Work flow of automatic configuration

Start the device with default configuration

The interface obtains parameters through DHCP

Yes

Is the TFTP server address contained in the parameters?

No

No

 

 

 

 

 

Yes

Is the TFTP server domain

 

 

No

 

 

 

 

 

 

 

 

 

 

 

name contained in the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

parameters?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Yes

No

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Broadcast a TFTP

Fails

 

 

 

 

 

 

Resolve domain name of

 

 

 

 

 

 

 

 

 

 

the TFTP server

 

 

 

request to obtain

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the configuration file

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fails

Unicast a TFTP request to

 

 

 

 

 

Yes

 

 

 

 

Succeeds

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

obtain the configuration file

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Succeeds

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Remove the temporary

 

Remove the temporary

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

configurations and the device

 

configurations and execute

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

starts with default configuration

 

the obtained configuration file

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

End

 

 

 

 

 

 

 

 

 

Remove the temporary

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

configurations and the device

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

starts with default configuration

 

141