Obtaining the configuration file
Figure 51 Obtain the configuration file
|
|
| Is the configuration file | ||
|
|
| contained in the DHCP | ||
|
|
| response? | ||
| No |
|
| No | |
|
|
| |||
|
|
| |||
| Obtain the network | ||||
|
|
| intermediate file | ||
| Yes |
|
| Yes | |
|
|
| |||
|
|
| |||
| Search the domain name | ||||
|
|
| corresponding to the IP address | ||
|
|
| in the network intermediate file | ||
|
|
|
|
| No |
|
|
|
|
| |
|
|
|
|
| |
|
|
| Resolve an IP | ||
|
|
| address to a domain | ||
|
|
| name through DNS | ||
|
|
|
|
| Yes |
|
|
|
|
| |
|
|
|
|
| |
| Yes | Obtain the configuration | |||
|
|
| file corresponding to the | ||
|
|
| domain name |
No
Yes
No
| Yes | Obtain the default | No | Obtain the specified | |||
|
|
| configuration file |
| configuration file in the | ||
|
|
|
|
|
| response | |
|
|
|
| No |
|
| Yes |
|
|
|
|
|
| ||
|
|
|
|
|
| ||
|
|
| Remove the temporary |
|
| ||
Remove the temporary |
|
|
| ||||
configurations and the device |
|
|
| ||||
configurations and execute the |
|
|
| ||||
starts without loading the |
|
|
| ||||
obtained configuration file |
|
|
| ||||
configuration file |
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A device obtains its configuration file by using the following workflow:
•If the DHCP response contains the configuration file name, the device requests the specified configuration file from the TFTP server.
•If not, the device tries to get its host name from the host name file obtained from the TFTP server. If it fails, the device resolves its IP address to the host name through DNS server. Once the device gets its host name, it requests the configuration file with the same name from the TFTP server.
•If all the operations fail, the device requests the default configuration file from the TFTP server.
TFTP request sending mode
The device selects to unicast or broadcast a TFTP request by using the following workflow:
•If a legitimate TFTP server IP address is contained in the DHCP response, the device unicasts a TFTP request to the TFTP server.
•If not, the device resolves the TFTP server domain name contained in the DHCP response to the IP address through the DNS server. If successful, the device unicasts a TFTP request to the TFTP server; if not, the device broadcasts a TFTP request.
•If the IP address and the domain name of the TFTP server are not contained in the DHCP response or they are illegitimate, the device broadcasts a TFTP request.
144