IP Addressing Commands
78-20269-01 Command Line Interface Reference Guide
495
35
Parameters
•
name—Specifies the host name. (Length: 1–158 characters. Maximum label
length: 63 characters)
•
address—Specifies the associated IP address. Up to 4 addresses can be
defined.
Default Configuration
No host is defined.
Command Mode
Global Configuration mode
User Guidelines
Host names are restricted to the ASCII letters A through Z (case-insensitive), the
digits 0 through 9, the underscore and the hyphen. A period (.) is used to separate
labels.
Example
The following example defines a static host name-to-address mapping in the host
cache.
Console(config)#
ip host
accounting.website.com 176.10.23.1
35.19 clear host
Use the clear host Privileged EXEC mode command to delete entries from the host
name-to-address cache.
Syntax
clear host
{name | *}
Parameters
•
name—Specifies the host entry to remove. (Length: 1–158 characters.
Maximum label length: 63 characters
)
•
* —Removes all entries.