28
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 15 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 ―beijing‖ to 200.121.1.1.
Switch(config)#ip host beijing 200.121.1.1
Command related: telnet, ping, traceroute
1.1.15 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 ipv6 host <hostname>‖ command deletes this mapping relationship.
Parameter: <hostname> is the name of the host, containing max 15 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 beijing to 2001:1:2:3::1
Switch(config)#ipv6 host beijing 2001:1:2:3::1
Command related: ping6,traceroute6
1.1.16 ip http server
Command: ip http server
no ip http server
Function: Enable Web configuration; the ―no ip http server‖ command disables Web
configuration
Command mode: Global mode
Usage guide: Web configuation is for supplying a interface configured with HTTP for the