cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
370
Views
4
Helpful
4
Replies

VLAN

onurcoskun
Level 1
Level 1

Hi, I need to know if two host PCs which are part of the same subnet but are in different VLANs can ping each other if the hosts are connected to two different switches. The switches are also connected by two access ports and those ports are assigned to different VLANs as well. The configuration is described below.

SWA`s FA0/1 is assigned to VLAN 2 in which PCA resides and its Gi0/1 is assigned to VLAN 2 and attached to SWB.

For SWB, Fa0/1 is assigned to VLAN 3 in which PCB resides and Gi0/1 is assigned to VLAN 3 and connected to Gi0/1 port of SWA.

Best regards.

4 Replies 4

onurcoskun
Level 1
Level 1

Well I`ll try to make myself more articulate. Are ports (switchport modes are access btw), which connects two switches together, allowed to be assigned to different VLANs?

Thanks again.

paul.matthews
Level 5
Level 5

When all are set as access ports, there is no tagging of VLANs. The two ports of interest are in the same VLAN (2) on switch A, so traffic can flow. Similarly on switch B both interested ports are in VLAN 3, so the PC *should* be able to talk, however this is rather a silly configuration and if it got beyound two switches it would be difficult to support as you would need to maintain VLAN translation tables alongside your normal documentation - ie

Switch A Switch B

VLAN2 VLAN3

I really hope this is an academic consideration to help understand VLANs...

This has been an acacademic consideration to understatand VLANs and it solved the questions on my mind. Thank you.

No problem - I just sometimes get a little wary when people are asking things that would not be wise to do in a live network just in case they take me saying it will work as advice that it is agood thing to do!

Please remember to rate all helpful posts,

Paul.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card