PREV NEXT INDEX

Avici Systems Inc.


ip host


Binds names to an IP address in the host cache.

Syntax: [no] ip host name ip-address

name

Host name to be bound to the specified IP address. Host names must comply with the Internet standards for sysName specified in RFC 1907.

ip-address

IP address to be mapped to this host name.

Description: IP addresses are more difficult to remember than names. This command enables you to associate a text name with an IP address.

Use the ip host command to associate up to 8 IP addresses with a host name so that you can refer to the IP addresses by name.

Use the no ip host command to remove the name-to-address mapping.

Factory Default: No host-name-to-IP address mapping configured.

Command Mode: Configuration.

Example 1: 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 hosts 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 not set

Name/address lookup uses static mappings



Host                     Flags Age Type Address(es)

ChicagoPOP (perm, OK) 0 IP 134.34.45.1

BostonPOP (perm, OK) 0 IP 134.34.44.6



Example 2: You can also use the show running-config command to display the new setting:

router#show running-config

.

.

.

ip domain-list avici.com

ip domain-list avici.webhost.com

ip host ChicagoPOP 134.34.45.1

ip host BostonPOP 134.34.44.6

ip domain-name avici.com

ip name-server 10.1.1.230

ip name-server 10.5.1.240

.

.

.

Related Commands: show hosts
show running-config


PREV NEXT INDEX

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_Commands7.html
    Last Updated: 05/10/04 at 16:34:20

Please email suggestions and comments to: doc@avici.com