cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
883
Views
1
Helpful
25
Replies

Cisco 9300 switch doesn't connect via SSH

Rick001
Level 1
Level 1

I have a couple of switches that are trunked via a LAN cable from another switch. I noticed that these switches sometimes have a hard time to SSH into. I get the error: "Connection timed out". After a while and a few tries I can connect just fine. I checked the logs (sh log) and don't really see anything helpful.

I have the following set an all the switches:

aaa new-model
aaa authentication login default local
aaa authorization exec default local
aaa authorization network default local
aaa session-id common

line vty 0 4
access-class VTY-ACL in vrf-also
exec-timeout 9 59
logging synchronous
transport input ssh
transport output ssh
line vty 5 15
access-class VTY-ACL in vrf-also
exec-timeout 9 59
logging synchronous
no exec
transport input none
transport output none
line vty 16 31
exec-timeout 9 59
no exec
transport input none
transport output none

The switches are up with no interruption. I can console in fine.

25 Replies 25

So there is tcp i.e. there is connection

You mention that you try connect from SW and it work 

Can you check 

Show tcp breif 

In both case check the IP and port 

MHM

Could you post the output of the command show arp on the switch?

HTH

Rick

So I have 4 switches with this issue. The "sh arp" command is showing all these switches' IPs and MAC (I believe cause I ping the other problem switches from it) with it's own IP Age being "-". The other device I see in the list is the Core Switch. 

I've noticed that if from another switch I ping the IP of the switch I'm trying to SSH into

in this case you not able to SSH from device, but another device you able to SSH in that means SSH working.

when the device not able to SSH - at the time are you able to ping ?

I've also noticed that it happens to switches which are trunked to other 9300 switches via CAT 6 cabling

can you explain more - how is your network connected, when you failing to connect to other switch daisy chained and you still able to connect to main switch right ?

what IP address VLAN these switches you were able to connect ? what is the device IP from you not able to connect ?

when you remove ACL are you able to connect all the time ?

your ACL seem to be odd some  of the mask you used . can you post the switch interface config and routing table from the switch you having issue  and STP information.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

It is very inconsistent. Most of the times I can't SSH directly to the switch. I noticed that if I ping the switch from any other switch in the network, I can immediately access it. I can SSH into the switches without problems within any other switch.

Th problem switches just so happen to be daisy chained.

 

Its a bit hard to reproduce, cause once I get in, I can exit and reenter fine. I have to wait a few hours until I can't SSH again to test again.

When the problem is happening and you are not able to SSH, are you able to ping the switch? Can we eliminate IP connectivity issues?

HTH

Rick

That's the strange thing. If I want to connect, I just try to ping from another switch and it then connects. 

Th problem switches just so happen to be daisy chained.

when you have issue of the switch, are you able to SSH to parent switch or even parent switch not able to SSH ?

what VAN you use for Management ?

how does your STP configured ? who is root in the Daisy chain ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help


@balaji.bandi wrote:

 

Th problem switches just so happen to be daisy chained.

 

when you have issue of the switch, are you able to SSH to parent switch or even parent switch not able to SSH ?

what VAN you use for Management ?

how does your STP configured ? who is root in the Daisy chain ?

 


Only having issues with the child switches.

I have the Management VLAN 99 on all of the switches.

 

when you have issue of the switch, are you able to SSH to parent switch or even parent switch not able to SSH ?

how does your STP configured ? who is root in the Daisy chain ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I don't have any issues with the parent switches, only the child.

I only see the trunk interfaces as root.

Review Cisco Networking for a $25 gift card