Command Reference Guide
3Com Router 5000 Family and Router 6000 Family ip host ● 197
Command Reference
ip host
Purpose Use the ip host command to configure the IP address corresponding to a host
name.
Use the undo ip host command to remove the IP address corresponding to a host
name.
Syntax ip host hostname ip-address
undo ip host hostname [ ip-address ]
Parameters hostname
The name of a host, comprised of a string from 1 to 20
characters long. Valid values are any digit from 0 to 9,
a capital letter from A to Z, or a small letter from a to z.
Other characters are invalid. At least one letter must be
contained in the host name.
ip-address
The IP address corresponding to a host name, whose
format can be A.B.C.D
Default By default, the static domain name table is empty, that is, no hostname-to-IP map.
Example Configure the IP address corresponding to the host name router1 as 10.110.0.1.
[3Com] ip host router1 10.110.0.1
Configure the IP address corresponding to the host name router2 as 10.110.0.2.
[3Com] ip host router2 10.110.0.2
Configure to assign the IP address 10.110.0.3 to the host name router3.
[3Com] ip host router3 10.110.0.3
Remove the IP address 10.110.0.2 corresponding to the host name router2.
[3Com] undo ip host router2 10.110.0.2
View This command can be used in the following views:
■ System view
Description A hostname can be mapped to one IP address only.