12-01-2018 05:32 PM
Hi,
I am trying to telnet, SSH from PC to switch but not able to access it.
Following is the switch config:
Switch>en
Password:
Switch#
Switch#show runn
Building configuration...
Current configuration : 779 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname Switch
!
enable secret 5 $1$mERr$lR0f3Y7.dV8twYV5Sw9Wq1
!
!
!
!
username chirag privilege 1 password 7 082244471B180207131F0908
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet1/1
!
interface FastEthernet2/1
!
interface FastEthernet3/1
!
interface FastEthernet4/1
!
interface FastEthernet5/1
!
interface Vlan1
no ip address
shutdown
!
interface Vlan12
mac-address 0030.f28d.8101
ip address 172.16.24.6 255.255.255.0
!
ip default-gateway 172.16.24.1
!
!
!
!
line con 0
password 7 082244471B1802
!
line vty 0 4
password 7 082244471B1802
login
line vty 5 15
login
!
!
!
end
The PC IP address: 172.16.24.2/24. PC is directly connected to Switch through copper straight-through cable. The topology is implemented in Cisco Packet Tracer: PC - SWITCH - ROUTER (default gateway)
Why I can't do telnet even? I can ping to default gateway successfully (172.16.24.1) from PC. However, I can't ping to switch (172.16.24.6) from PC, it says request time-out.
Any assistance would be appreciated in understanding.
Thank you.
Regards,
Chirag
Solved! Go to Solution.
12-02-2018 09:18 PM
12-01-2018 07:07 PM
12-01-2018 09:28 PM
12-02-2018 04:00 AM
Hi Francesco,
It's working now. I actually didn't assign the VLAN12 to the switch port which connected to PC. As soon I assigned the port to VLAN12 and telnet worked. It means that SSH would work too (given that I applied the SSH require configuration) as I now have the connectivity.
I also assigned an IP address to VLAN1 in the same subnet and tried the telnet but it didn't work. I was hoping that VLAN1 is the default VLAN and it would allow me.
What I can see here is that at a time only one VLAN interface IP address is accessible. If the switch has multiple VLAN IP addresses then there is no connectivity if the switch port is not configured properly.
In a production network, I am sure, there are multiple VLANs configure in the switch then which one is preferred one for management VLAN? Will there be only one management VLAN at a given time? Can we do telnet or SSH to switch or router through the console?
Thank you very much for your time, appreciated!
Regards,
Chirag
12-02-2018 05:59 PM
12-02-2018 09:10 PM
12-02-2018 09:18 PM
12-01-2018 10:22 PM
also stick the "transport input telnet ssh: on your vty 04 config. and create general RSA keys for ssh, but see if you can get it to work wioth telnet first
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