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
nmuhammadhAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StolsieCommented:
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
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
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.
nmuhammadhAuthor Commented:
Hi Stolsei

I would rate myself 7. Pl go ahead.
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

nmuhammadhAuthor Commented:
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..
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
Are both switches part of the same VLAN?
nmuhammadhAuthor Commented:
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
StolsieCommented:
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?
nmuhammadhAuthor Commented:
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?
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
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?
nmuhammadhAuthor Commented:
Dear All,

Only 2 persons are discussing this thread...Appreciate if some more people can jump into this.
StolsieCommented:
Sorry i have been busy...
Management vlan does not need to be on vlan 1 and most definitely not stay on vlan 1 in a real environment.


This is what i would do.
First create another vlan the number is not important at this time provided the IP of switch 2 is on the native vlan.
Remove the secondary IP address on vlan 1.
Say your new vlan is vlan 2 give it ip address 20.1.1.2 255.255.255.252
Switch port f0/1 make access and apply vlan 2
You should then have the ability to ping it, if not. Try the following
Set the interface f0/1 to trunk make vlan 1 native and allow all
Set a spare interface probably f0/2 to trunk make vlan 1 native and allow all.
Plug a laptop (preferably) with WireShark loaded and see what data you get, you will more than likely get a better result if you monitor f0/1 and set the mirror port to f0/2 and disable TCP/IP on the laptop.
It all depends how you want to do it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nmuhammadhAuthor Commented:
I need time to try it out..
StolsieCommented:
good luck once you get the time. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.