Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Ip host command

From NetworkCommands


Image:Cisco-logo-large.gif

A command available on most Cisco platforms; used to create and manage local hostname to IP address mappings.

Contents

Image:Vm-power-on-medium.png Usage Syntax

Configuration Context: Global

To add a new hostname entry or adjust an existing entry:

ip host host_name ip_address


To add an additional IP address for an existing entry:

ip host host_name additional ip_address


To delete an entry:

no ip host host_name ip_address

Image:accessories-text-editor-v2-medium.png Usage Notes

Entering an existing host_name but a different ip_address will simply modify the ip address of the existing entry.

To add additional IP addresses for the same host use the additional keyword, as shown above.

Image:Vm-power-on-medium.png Usage Examples

ip host host1.test.com 1.1.1.1

ip host host1.test.com additional 1.1.1.2

ip host host3.test.com 1.1.1.3

Image:icemon-medium.png Related Commands

Use the show hosts command to display local hostname to IP address mappings.

Use the hostname command to configure the device's own hostname.

Image:object-flip-horizontal-medium.png Command Equivalents

The Nokia IPSO command equivalent is the show host command


Site Toolbox:

Personal tools
This page was last modified on 4 June 2008, at 10:08. - This page has been accessed 45 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki