mac
37
according to their own requirements.
Example: Set the prompt to ―Test‖.
Switch(config)#hostname Test
Test(config)#
1.1.15 ip host
Command: ip host <hostname> <ip_addr>
no ip host {<hostname>|all}
Function: Set the mapping relationship between the host and IP address; the ―no ip host‖
parameter of this command will delete the mapping.
Parameter: <hostname> is the host name, up to 64 characters are allowed; <ip_addr> is
the corresponding IP address for the host name, takes a dot decimal format; all is all of
the host name.
Command mode: Global Mode
Usage Guide: Set the association between host and IP address, which can be used in
commands like ―ping <host>―.
Example: Set IP address of a host with the hostname of ―chicago‖ to 200.121.1.1.
Switch(config)#ip host chicago 200.121.1.1
Command related: telnet, ping, traceroute
1.1.16 ipv6 host
Command: ipv6 host <hostname> <ipv6_addr>
no ipv6 host { <hostname> | all}
Function: Configure the mapping relationship between the IPv6 address and the host;
the no command deletes this mapping relationship.
Parameter: <hostname> is the name of the host, containing max 64 characters;
<ipv6_addr> is the IPv6 address corresponding to the host name. all is all the host
address.
Command Mode: Global Mode
Usage Guide: Configure a fixed corresponding relationship between the host and the
IPv6 address, applicable in commands such as traceroute6 <host>, etc.
Example: Set the IPv6 address of the host named chicago to 2001:1:2:3::1.
Switch(config)#ipv6 host chicago 2001:1:2:3::1
Command related: ping6, traceroute6
1.1.17 ip http server










