cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4245
Views
0
Helpful
2
Replies

what is IP Host on a Switch?

conf t

ip host <name> <x.x.x.x> <------------- and this part seems to allow you to go on and on and on with ip addresses from what I tried.

 

something about a PORT NUMBER if you put a '?' after the <name>

 

I have never seen this and I don't know what the use is.

 

Is this different from setting up a VLAN Interface?

 

It seems so simple but it's just creating more questions.

 

 

2 Replies 2

Vinit Jain
Cisco Employee
Cisco Employee

I guess after the name you should get 3 options:

1. Default telnet port number to use (you can modify it from the default of port 23)

2. Host IP Address

3. Additional - append additional addresses (you can assign multiple IP Addresses to the same host)

This command is used to map the host with the IP Address. its easier to remember hostnames than IP Addresses. Please refer to the CCO documentation for more reference.

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dns/configuration/15-mt/dns-15-mt-book/dns-config-dns.html

Hope this answers your questions

Regards

Vinit

Thanks
--Vinit

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi Josh,

The ip host command simply maps a name to an IP address so

ip host  abc 192.168.1.11

you can now either type

ping 192.168.1.11 ( ping by ip address) 

or

ping abc ( Ping by mapped hostname)

Note :- It is local to router and it should work both. Check more detail on ip hostname command

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr/command/ipaddr-cr-book.html

Hope it Helps..

-GI

Rate if it Helps