Link to home
Start Free TrialLog in
Avatar of nmuhammadh
nmuhammadh

asked on

Directly connected Cisco Switch not pinging but able to see via CDP

Hi

I have 2 Cisco switches connected with Ethernet cable. I am getting a CDP-native-VLAN-mismatch error on 1 switch.
Let me say this setup for easy understanding....SW-1-F0/1-Vlan1-------------SW-2-F0/2-Vlan2
Vlan-1 IP is 10.1.1.1
Vlan-2 IP is 20.1.1.1
I dont have access to SW2 switch. I want to ping SW2 - 20.1.1.1 from SW-1. I did the following, nothing worked...

1) I changed the vlan of the SW1, port F0/1 to Vlan2. Also assigned 20.1.1.20 IP in Vlan-1 as secondary IP. But still I cant ping
2) Made SW1, port0/1 as trunk port. Vlan1 still has 20.1.1.20 as secondary IP, but not able tp ping.
3) Made SW1, port F0/1 as L3 interface and assigned 20.1.1.20...Removed secondary IP in Vlan 1. Still not able to ping

But show cdp neigh is showing the other switch..What are the reasons SW-1 is not able to ping SW-2?

Regards
Mohamed.N
Avatar of Stolsie
Stolsie
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi nmohammedh
Before I get stuck in i can see the potential problem. But i would rather not talk to you like you are not a networker if you are, can you please rate your networking knowledge 1 for poor and 10 for CCIP
Avatar of Mohammed Khawaja
In order to ping various VLANs, you need a router in place.  Each VLAN must have a default gateway assigned and your router needs sub-interfaces, one on each VLAN.  Then you will be able to ping.
Avatar of nmuhammadh
nmuhammadh

ASKER

Hi Stolsei

I would rate myself 7. Pl go ahead.
Mohammed Khawaja

I am trying to ping from 20.1.1.20 to 20.1.1.1. I am assigning 20.1.1.20 in SW-1, Vlan1 as secondary..hence no need for router..

SW-1 config
int vlan1
ip address 10.1.1.1 255.255.255.0
ip address 20.1.1.20 255.255.255.0

Trying to ping 20.1.1.1 now...I dont have access to SW-2..But I want to login SW-2..Hence trying to modify config in SW-1 and trying to login SW-2..Hope this clarifies my requirement..
Are both switches part of the same VLAN?
Khawaja:

Nope. Pls refer my exhibit.

SW-1-F0/1-Vlan1-------------SW-2-F0/2-Vlan2

I know Vlan 1 and Vlan 2 will not communicate..That is why I did the following

1) I changed the vlan of the SW1, port F0/1 to Vlan2. Also assigned 20.1.1.20 IP in Vlan-1 as secondary IP. But still I cant ping
 2) Made SW1, port0/1 as trunk port. Vlan1 still has 20.1.1.20 as secondary IP, but not able tp ping.
 3) Made SW1, port F0/1 as L3 interface and assigned 20.1.1.20...Removed secondary IP in Vlan 1. Still not able to ping
7 thats pretty high
Where is your console cable? You know you need to hold onto that blue baby they tend to grow legs lol.
how have you lost access?
Stolsie

This is a real time environment. The switches need to be accessed remotely. I can telnet to SW-1. But unable to telnet to SW-2. I am also not able to ping SW-2..

What else I can try?
In order to be able to able to ping the second switch, the management IP has to be in VLAN 1 for both of them and then these switches must be connected either by etherchannel or trunk ports to each other which should allow for VLAN traffic to  be able travel from switch 1 to switch 2.  How have connected switches 1 and 2?
Dear All,

Only 2 persons are discussing this thread...Appreciate if some more people can jump into this.
ASKER CERTIFIED SOLUTION
Avatar of Stolsie
Stolsie
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I need time to try it out..
good luck once you get the time. :)