Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Shorcut command on router?

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Shorcut command on router?

You could create this alias

config t

alias exec r1 telnet 192.168.1.1

that should work.

Mike

2 REPLIES

Re: Shorcut command on router?

You could create this alias

config t

alias exec r1 telnet 192.168.1.1

that should work.

Mike

Re: Shorcut command on router?

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

303
Views
0
Helpful
2
Replies