10-24-2015 01:54 AM - edited 03-08-2019 02:21 AM
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.
10-24-2015 07:15 AM
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
10-24-2015 08:01 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide