IP Addressing Commands
ip host
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
229
14
The maximum size of each domain level is 63 characters. The maximum name size
is 255 bytes.
Example
switchxxxxxx(config)#
ip domain name website.com
ip host
To define the static host-name-to-address mapping in the DNS hostname cache,
use the ip host Global Configuration mode command
To remove the static-host name-to-address, use the no form of this command.
Syntax
ip host
hostname
address1
[
address2
...
address8
]
no ip host
hostname
address1
[
address2
...
address8
]
Parameters
•
hostname
—Name of the host. (Length: 1 to 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
—(Optional) Up to seven additional associated IP
addresses, 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
Hostnames are restricted to ASCII letters A through Z (case-insensitive), the digit 0
through 9, the underscore and the hyphen symbols. A period (.) is used to separate
labels.