The sname command configures the name of the server from which the DHCP client obtains the startup configuration file.
The undo sname command deletes the configured name of the server from which the DHCP client obtains the startup configuration file.
By default, no name is configured for the server from which the DHCP client obtains the startup configuration file.
Parameter |
Description |
Value |
---|---|---|
sname |
Specifies the name of the server where the DHCP client obtains the startup configuration file. |
The value is a string of 1 to 63 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 client. After the name of the server from which the DHCP client obtains the startup configuration file is configured using the sname command, the DHCP client obtains the startup configuration file from this server.
Precautions
Ensure that the route between the DHCP client and the file server from which the DHCP client obtains the startup configuration file is reachable.
<HUAWEI> system-view [HUAWEI] ip pool p1 [HUAWEI-ip-pool-p1] sname example
<HUAWEI> system-view [HUAWEI] dhcp option template template1 [HUAWEI-dhcp-option-template-template1] sname Huawei