The bootfile command configures the name of the startup configuration file for a DHCP client.
The undo bootfile command deletes the configured name of the startup configuration file for a DHCP client.
By default, the startup configuration file name is not configured for a DHCP client.
Parameter |
Description |
Value |
---|---|---|
bootfile |
Specifies the name of the startup configuration file for a DHCP client. |
The value is a string of 1 to 127 case-sensitive characters without spaces. |
Usage Scenario
This command is used on a DHCP server. Besides assigning IP addresses, a DHCP server can also provide the required network configuration parameters, such as the startup configuration file name for the DHCP clients. After the startup configuration file name is configured using the bootfile command, the Offer and ACK packets sent from the DHCP server carry this file name. The DHCP client can acquire the startup configuration file from the specified server based on the file name.
Precautions
Usually, the startup configuration file is saved on a specified file server. Therefore, the route between the DHCP client and the file server must be reachable and the ip address or name of the file server must be specified.
<HUAWEI> system-view [HUAWEI] ip pool p1 [HUAWEI-ip-pool-p1] bootfile start.ini
<HUAWEI> system-view [HUAWEI] dhcp option template template1 [HUAWEI-dhcp-option-template-template1] bootfile start.ini