05-01-2024 01:22 AM
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
05-01-2024 01:31 AM
@krutiksojitra567 hi, can you provide diagram of your network? or if its packet tracer, please attached zipped packet tracer file
05-01-2024 01:39 AM
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.
05-02-2024 06:44 AM
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.
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