The ip domain-name command adds a suffix to a device name.
The undo ip domain-name command deletes the suffix of a device name.
By default, a device name does not have a suffix.
Only the S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this command.
Parameter | Description | Value |
---|---|---|
domain-name | Specifies the suffix of a device name. | The value is a string of 1 to 255 characters without spaces. It contains digits, letters, hyphens (-), underscores (_), and dots (.). |
A device name and a suffix form a fully qualified domain name (FQDN). If you need to add a suffix to a device name, run the ip domain-name command. In this situation, the System Name TLV in an LLDP packet is in "device name.suffix" format. For example, if the device name is HUAWEI and suffix is area1, the System Name TLV in an LLDP packet is HUAWEI.area1.
PrecautionsIf you run this command multiple times, only the latest configuration takes effect.