10-27-2016 09:47 PM - edited 03-08-2019 07:57 AM
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?
Solved! Go to Solution.
10-28-2016 12:00 AM
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
10-28-2016 12:00 AM
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
10-30-2016 09:23 PM
Thanks mamdohmardini issue was with wrong default-gateway.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide