15
359
name
no ip host
ip host
Parameters
•
hostname
—Name of the host. (Length: 1–158 characters. Maximum label
length of each domain level is 63 characters).
•
address1
—Associated host IP address (IPv4 or IPv6, if IPv6 stack is
supported).
•
address2
address8
...
delimited by a single space (IPv4 or IPv6, if IPv6 stack is supported).
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.
An IP application will receive the IP addresses in the following order:
1. IPv6 addresses in the order specified by the command.
2. IPv4 addresses in the order specified by the command.
Use the no format of the command with the
delete the specified addresses. The entry is deleted if all its addresses are
deleted.
Example
The following example defines a static host name-to-address mapping in the host
cache.
switchxxxxxx(config)#
name
address1...address8
[
—Up to seven additional associated IP addresses,
address1...address8
accounting.website.com 176.10.23.1
ip host
OL-32830-01 Command Line Interface Reference Guide
DNS Client Commands
]
argument to