Shorcut command on router?

Answered Question
Jun 16th, 2010

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.

I have this problem too.
0 votes
Correct Answer by burleyman about 6 years 5 months ago

You could create this alias

config t

alias exec r1 telnet 192.168.1.1

that should work.

Mike

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
burleyman Wed, 06/16/2010 - 08:28

You could create this alias

config t

alias exec r1 telnet 192.168.1.1

that should work.

Mike

Ganesh Hariharan Wed, 06/16/2010 - 08:37

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

Actions

This Discussion