< Home

device-domain

Function

The device-domain command sets a domain name for the device.

The undo device-domain command deletes the configured domain name.

By default, no domain name is set for the device.

Format

device-domain domain-name

undo device-domain

Parameters

Parameter Description Value
domain-name Specifies a domain name. The value is a case-insensitive string of 1 to 64 characters, for example, www.example.com.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To effectively manage and properly allocate network access resources, set a network access resource quota and a reminder threshold. If the network access resource quota is exhausted or the usage of network access resources reaches the reminder threshold, the FW pushes a portal page to remind the user of the traffic usage. The portal page contains the FW's IP address.

The FW's domain name set in this command can replace the FW's IP address in the pushed portal page to prevent information disclosure. For example, the FW's IP address is 192.168.0.1, and the URL in the pushed portal page is http://192.168.0.1:8887/abc. After you set the device domain name to www.example.com, the URL in the portal page changes to www.example.com:8887/abc.

  • The mapping between the device domain name and IP address must be set on the DNS server, so that the DNS server can parse the domain name into the device's IP address.
  • Currently, only the portal pages pushed by quota control policies support this function.

Example

# Set the FW's domain name to www.example.com.

<sysname> system-view
[sysname] device-domain www.example.com
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >