• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2415
  • Last Modified:

telnet from one switch to another

I have Swicth1 and Switch2 Trunked.
I have only one Rollover cable(console cable), plugged to one of the switches.
Instead of unplugging the rollover cable from on switch and plug it to another, I would like just to telnet from one switch to another then back whenever I need.
Both switch are L3 Switches and have some common vlans, and they are both configured with Interface vlans for each vlan.

Any  help will be appreciated
4 Solutions

I'm assuming they're Cisco switches.

Make sure you have

Lin vty 0 4
 Password xxxxxx

Defined on the switch you want to telnet onto.

The numbers may vary.

Also make sure both switches have an ip address that is reachable by the other.

You can either use

Telnet x.x.x.x or just the address x.x.x.x on its own will let you telnet onto the other switch.
AkinsdNetwork AdministratorCommented:
The switches must have an ip address and be in the same vlan for you to be able to telnet.

It is a good idea to have a management lan if you don't have one.

your subnet is /24
your management lan is vlan 10
You gateway is

on each switch,
Sw1(config)#int vlan 10
Sw1(config-if)#ip address
Sw1(config)#ip default-gateway

Sw2(config)#int vlan 10
Sw2(config-if)#ip address
Sw2(config)#ip default-gateway

from the priviledge mode of Sw1, you can then telnet to Sw2
Sandeep GuptaConsultantCommented:
SW1# telnet <<SW2 B2B IP>> /source-interface <<SW1 B2B interface>>
you've been given the configuration and instructions on the telnet activity.

In order to switch back to the source session without logging off,  <Ctrl> <Shift> 6 x (basically <Ctrl> ^ and then the x key).  It will take you back to your source switch, allow you to do operations, and you can return to the client telnet session by pressing <Return> on a blank line.  You can also manually disconnect the client telnet session by typing discon 1 on the command line of the source session.

hope this helps, good luck with whatever you're doing (sounds like a little lab setup)
jskfanAuthor Commented:
Thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now