A newly specified IP address overwrites the previous one if there is any.
The IP address of a VLAN interface must not be on the same network segment as that of a
loopback interface on a device.
Configuring Static Domain Name Resolution
Follow these steps to configure static domain name resolution:
To do...
Enter system view
Configure a mapping between
a host name and an IP address
The IP address you assign to a host name last time will overwrite the previous one if there is any.
You may create up to 50 static mappings between domain names and IP addresses.
Displaying IP Addressing Configuration
To do...
Display static DNS database
Display information about a
specified or all Layer 3 interfaces
Display brief configuration
information about a specified or all
Layer 3 interfaces
IP Address Configuration Examples
IP Address Configuration Example
Network requirement
Assign IP address 129.2.2.1 with mask 255.255.255.0 to VLAN-interface 1 of the switch.
Use the command...
system-view
ip host hostname ip-address
Use the command...
display ip host
display ip interface [ interface-type
interface-number ]
display ip interface brief
[ interface-type [ interface-number ] ]
1-4
Remarks
—
Required
No IP address is assigned to a
host name by default.
Remarks
Available in any
view