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

Shorcut command on router?

Andy White
Level 3
Level 3

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

burleyman
Level 8
Level 8

You could create this alias

config t

alias exec r1 telnet 192.168.1.1

that should work.

Mike

View solution in original post

2 Replies 2

burleyman
Level 8
Level 8

You could create this alias

config t

alias exec r1 telnet 192.168.1.1

that should work.

Mike

Ganesh Hariharan
VIP Alumni
VIP Alumni

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card