cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4048
Views
0
Helpful
8
Replies

Can't Telnet / Ping into the Switch

RWalia418
Level 1
Level 1

Hello Guys!

I have a Cisco 2960-S Switch, It is connected to a jack in the building to check the settings, Interface VLAN 1 has an ip, there is a default gateway, Any host connected to switch can access the network resources. But the problem is that I have to use Serial Cable to configure it. I cant ping or telnet into it from any other device. PC's are on different subnets/VLANS.

Basically this switch is connected to a port in a different switch, Do i have to make a trunk?

What should I do and check?

Thanks and Regards!

8 Replies 8

Jon Marshall
Hall of Fame
Hall of Fame

What vlan(s) are the PCs in ?

are the PCs you are pinging from connected to the 2960-S switch or other switches

which switch is responsible for routing between vlans ?

Basically if the link is not a trunk then all devices would need to be in vlan 1. If you want to connect devices to the 2960-S which are in multiple vlans then yes the connection should be a trunk between the 2 switches.

Note this is assuming that you are using a different switch for inter-vlan routing ? - presumably the switch that has the default-gateway ip address for vlan 1 that you set on the 2960-S.

Jon

PCs are Phones are in VLAN 200 and 300. I have add those VLANS on every interface.

The PCs are connected to a different switch

We have a stack and that stack does the inter-vlan routing.

To configure switchport mode trunk does both interfaces on both switches needs to be configured or only one

interface.

Do we also need switchport trunk native vlan for the encapsulation?

Thanks!

Hi Ramit,

To configure switchport mode trunk does both interfaces on both switches needs to be configured or only one

interface.

Basically you just need one interface to be configured either as trunk (switchport mode trunk) or as dynamic desirable (switchport mode dynamic desirable). The other end just needs to have DTP enabled in any of the modes (dynamic auto, dynamic desirable, trunk).

Do we also need switchport trunk native vlan for the encapsulation?

No you don't need to care about that if you haven't changed native vlan on one end. But bear in mind that both sides of the trunk have to have same native vlan configured, otherwise cdp will inform you about this inconsistency and trunk won't be formed (it is called native-vlan mismatch). If you haven't done anything with that, native vlan is vlan 1 on both ends and everything should work just fine.

Best regards,

Jan

stubinski
Level 1
Level 1

Hi,

Please post a scrubbed config of the 2960.

!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname
!
boot-start-marker
boot-end-marker
!
enable secret 5 //
!
!
!
no aaa new-model
clock timezone UTC -7
clock summer-time UTC recurring
switch 1 provision ws-c2960s-48lps-l
!
!
!
!
crypto pki trustpoint TP-self-signed-2647618432
  enrollment selfsigned
  subject-name cn=IOS-Self-Signed-Certificate-2647618432
  revocation-check none
  rsakeypair TP-self-signed-2647618432
!
!
crypto pki certificate chain TP-self-signed-2647618432
  certificate self-signed 01
   3082023F 308201A8 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
   31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
   69666963 6174652D 32363437 36313834 3332301E 170D3933 30333031 30303033
   31315A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
   4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D32 36343736
   31383433 3230819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
   8100AF5E 72C7714A 539523AC AF285F69 2807171F 712053B6 6C52D2D3 45299B71
   D565B2E6 88E0BA7A 4A6038A2 4D5A8DD5 9F643DA4 30BE8207 6320B04A 43A4C334
   9A5B78FD 9CC72502 512FF73C 28F59B27 22216009 FFBDCFD9 CD87116E B419CEA7
   BE90261F 79AE1025 4631A0FC 58A93582 B9F4442E 778EE8A1 07CC58E0 E8D1B56A
   96250203 010001A3 67306530 0F060355 1D130101 FF040530 030101FF 30120603
   551D1104 0B300982 07537769 7463682E 301F0603 551D2304 18301680 143E281C
   5E7DB579 4C54B668 332E6EAA D4EB1B2A 26301D06 03551D0E 04160414 3E281C5E
   7DB5794C 54B66833 2E6EAAD4 EB1B2A26 300D0609 2A864886 F70D0101 04050003
   818100A2 37D8AD51 1F942D2A DBE67652 DF4909EC 5ED1B747 9D4A6875 3FB1D075
   BE6BE55E 0C9F241B C04A36FC 77936F3D 391F28B5 4032CD76 5FEA05FB 79D750DF
   25775223 62C0DB95 894D97AD 2BC614F7 1DF9FE8D E5A12DED A62FE8AE 472E56D8
   831AF443 4DF2D8C7 129D6164 2DECF455 2CDA3913 59CE1E3D 4318561D 098DC537 2059D7
   quit
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
!
interface FastEthernet0
  no ip address
!
interface GigabitEthernet1/0/1
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/2
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/3
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/4
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/5
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/6
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/7
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/8
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/9
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/10
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/11
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/12
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/13
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/14
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/15
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/16
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/17
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/18
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/19
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/20
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/21
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/22
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/23
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/24
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/25
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/26
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/27
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/28
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/29
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/30
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/31
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/32
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/33
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/34
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/35
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/36
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/37
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/38
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/39
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/40
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/41
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/42
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/43
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/44
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/45
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/46
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/47
  switchport access vlan 200
  switchport mode access
  switchport voice vlan 300
  spanning-tree portfast
!
interface GigabitEthernet1/0/48
!
interface GigabitEthernet1/0/49
!
interface GigabitEthernet1/0/50
!
interface GigabitEthernet1/0/51
!
interface GigabitEthernet1/0/52
!
interface Vlan1
  ip address 10.210.196.2 255.255.255.192
!
ip default-gateway 10.210.196.1
ip http server
ip http secure-server
!
line con 0
  password
  login
line vty 0 4
  password
  login
line vty 5 15
  password
  login
!
end

HI Ramit,

where did you connect your
PC? here there is no port with VLAN 1 assigned (except 48-52 that looks like not used at all) ...

Try this:

enable

conf t

user admin priv 15 secret mypassword

line vty 0 4

login local

exit

!

interface GigabitEthernet1/0/48

sw mo acc

sw acc vlan 1

no sh

end

!

wr

!

Connect here your laptop and try again. By the way is a best practise to set a trunk between switches and then to prune the vlan through the allowed vlan list

Alessio

@allesio:

All of our PCs and Phones must be in VLAN 200 and 300. I connected the PC on port 43. The port which has VLAN 200 and 300 on it.

DHCP gives PC's the ip in the range of 10.210.198.xx
and all of our switches are in the range of 10.210.196.xx

I can ping any other switch and telnet into it from any PC, but this switch I can't ping or telnet into it. Is it because there is no trunk?

Thanks and Regards!

Very likely!!!

Chck also that the native vlan does NOT mismatch once you set up the trunk.

Take Care

Alessio

Review Cisco Networking for a $25 gift card