The dhcp server bootfile command configures the name of the startup configuration file for a DHCP client.
The undo dhcp server 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
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 name of the startup configuration file is configured using the dhcp server 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.
Prerequisites
IP addresses in the interface address pool have been configured using the ip address command.
The DHCP server function has been enabled on the interface using the dhcp select interface command.
# Configure the name of the startup configuration file as start.ini for the DHCP client on the Vlanif100.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 192.168.1.1 255.255.255.0 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server bootfile start.ini
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ip address 192.168.1.1 255.255.255.0 [HUAWEI-GigabitEthernet0/0/1] dhcp select interface [HUAWEI-GigabitEthernet0/0/1] dhcp server bootfile start.ini