cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
335
Views
0
Helpful
3
Replies

Ping in different vlans

I have two switches, switch 1 has vlan 10 and switch 2 has vlan 20, i don't configure anything on switch but it ping from vlan 10 pc to vlan 20 pc 

Pc1 ip 192.168.10.1

Pc2 ip 192.168.10.2

link between switches is not in trunk mode

3 Replies 3

@krutiksojitra567 hi, can you provide diagram of your network? or if its packet tracer, please attached zipped packet tracer file

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

nict
Level 1
Level 1

Sounds like you haven't changed the access vlan on the port conneted to the PC's.

If you only created vlan 10 and vlan 20, but did not apply this vlans to the port which the PC's are connected to, the would both be in Vlan 1 and therefor would have connectivity.

Even if the switch ports are assigned to vlan 10 and 20, as long as the ports connecting the switches are access ports the hosts will be able to ping each other.

It is certainly not a Best Practice to configure a connection to be vlan 10 on one side and be vlan 20 on the other side. But it is not a problem. And in that case that it is access port in vlan 10 connecting to access port in vlan 20 then the hosts will not have a problem communicating. The reason is that connection on access ports does not send information about vlan membership. The Ethernet frame going between switches is a plain Ethernet frame and does not carry any vlan identification. If we remember the basic concept that a vlan is a broadcast domain and think about the current question, we will recognize that there is a single broadcast domain between the switches. What you have is really a single vlan with 2 different names. But the names are not significant when it comes to forwarding traffic.

HTH

Rick
Review Cisco Networking for a $25 gift card