06-16-2010 08:19 AM - edited 03-06-2019 11:36 AM
Hello,
When I'm on our main router I might need to telnet to a number of routers from that during that session, rather than me typing "telnet 192.168.1.1" etc etc is there a way I can craete a short cut so I might just type "r1" for router 1 and it telnets to the router? I guess I could use the "ip host" option.
Solved! Go to Solution.
06-16-2010 08:28 AM
You could create this alias
config t
alias exec r1 telnet 192.168.1.1
that should work.
Mike
06-16-2010 08:28 AM
You could create this alias
config t
alias exec r1 telnet 192.168.1.1
that should work.
Mike
06-16-2010 08:37 AM
Hello,
When I'm on our main router I might need to telnet to a number of routers from that during that session, rather than me typing "telnet 192.168.1.1" etc etc is there a way I can craete a short cut so I might just type "r1" for router 1 and it telnets to the router? I guess I could use the "ip host" option.
Hi,
To define a static host name-to-address mapping in the host cache, use the ip host global configuration command. To remove the name-to-address mapping, use the no form of this command.
ip host name [tcp-port-number] address1 [address2...address8]
Config# ip host ROUTER_NAME INT_Address
Example: ip host lab-a 192.168.5.1
or Config# ip host RTR_NAME INT_ADD1 INT_ADD2 INT_ADD3
Example: ip host lab-a 192.168.5.1 205.23.4.2 199.2.3.2 - (for e0, s0, s1)
Hope to Help !!
Ganesh.H
Remember to rate the helpful post
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