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

Having issue with directly connecting to CISCO switch using putty

amit.malik
Level 1
Level 1

Hi All,

            I am having issue with directly connecting to the CISCO 2960 switch from Putty. I am only able to connect to these switch by connecting to router in my organization first and than to switch using ssh  -l company IP-address command.

When i am connecting direct to the Switch using Putty its rejecting my connection

here is the basic configuration of switch - 

no service pad

service timestamps debug datetime msec

service timestamps log datetime msec

service password-encryption

!

hostname testswitch

!

boot-start-marker

boot-end-marker

!

enable secret ******

!

username test secret *********

no aaa new-model

vtp domain company.com

vtp mode transparent

!

!

ip domain-name company.com

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

vlan internal allocation policy ascending

!

vlan 11

 name ****

!

vlan 14

 name *****

!

vlan 15

 name Guest

!

vlan 16

 name management

!

ip ssh version 2

!

!

!

!

!

interface Vlan1

 no ip address

!

interface vlan16

 ip address ****

 ip helper-address  ****

!

ip default-gateway

no ip http server

no ip http secure-server

!

ip access-list extended remoteaccess

 permit ip *** **** any

!

banner login ^CCCC

^C

!

line con 0

 exec-timeout 30 0

 login local

line vty 0 4

 exec-timeout 15 0

 login local

 transport input ssh

line vty 5 15

 login

!

ntp server ***

end

 

Now problem is that router is being managed by vendor. But switches are still managed by us.

I can't log on the switch using putty until I first log onto the router and than ssh from there.

I am not very experienced in CISCO switching. This is my first post to this forum :)

Is there any way i can directly connect to switch using Putty?

1 Accepted Solution

Accepted Solutions

mamdohmardini
Level 1
Level 1

Hi Amit,

I think you are not able to see the management ip of the switch because the ip address is not reachable in your network, please try to do traceroute inside your network and find out at which node the trace stops. At this node add a specific route for the mgmt ip of your switch pointing to the next hop.

BR

MTM 

View solution in original post

2 Replies 2

mamdohmardini
Level 1
Level 1

Hi Amit,

I think you are not able to see the management ip of the switch because the ip address is not reachable in your network, please try to do traceroute inside your network and find out at which node the trace stops. At this node add a specific route for the mgmt ip of your switch pointing to the next hop.

BR

MTM 

Thanks mamdohmardini issue was with wrong default-gateway. 

Review Cisco Networking products for a $25 gift card