show hosts
Displays host names and the associated IP addresses.
Syntax: show hosts
Description: IP addresses are more difficult to remember than names. The ip host command enables you to associate a text name with an IP address.
Use the show host command to display host names and their associated IP addresses.
Factory Default: None.
Command Mode: Executive and privileged.
Example: In the following example, the ip host commands associate one IP address with the host name ChicagoPOP and one IP address with the host name BostonPOP. The show host command displays the new setting:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#ip host ChicagoPOP 134.34.45.1
router(config)#ip host BostonPOP 134.34.44.6
router(config)#end
router#show hosts
Default domain is avici.com
Name/address lookup uses domain service
Host Flags Age Type Address(es)
ChicagoPOP (perm, OK) 0 IP 134.34.45.1
BostonPOP (perm, OK) 0 IP 134.34.44.6
The following table describes the fields in the display:
Related Commands: ip host
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: IP_Commands.fm
HTML File Name: IP_Commands12.html
Last Updated: 05/10/04 at 16:34:20