The same VLAN across two or more switches

I have two L2 switches which I look to deploy the same VLAN to.

For example, i'm looking to deploy ports 3 and 4 on SW1 to VLAN 30 but I would also like to assign ports 6 and 8 on SW2 to VLAN 30 too.

Is it just a matter of setting up VLAN 30 on both switches and then configuring a trunk port so they can see each other ?
L-PlateAsked:
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.

Andy BartkiewiczNetwork AnalystCommented:
Yes, both switches need to recognize the vlans. There needs to be a trunk port between the two.

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
Don JohnstonInstructorCommented:
Andy is correct.

However, if you are unable to create a trunk (tagged link) between the two switches, you could also have a separate link between the switches for each VLAN.  It works fine as long as you don't have too many VLANs.
JustInCaseCommented:
Since one of topics is HP, separate links between switches per VLAN are option only with MSTP configured on switch (and only if VLANs are configured in different MSTP instances), but not with RSTP or STP (there is only one STP instance and one of links will be blocked by STP).
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

nociSoftware EngineerCommented:
@Pedrag, PVST is also possible... RSTP... etc.
MSTP consolidates ALL STP in one table...
RSTP/STP has a spanning tree Per VLAN..., they don't need to align but most probably will.
There is No problem if you have a loop in the network which (assume on this switch port 1 & 2 are involved)...
Then there is NO problem if VLAN x uses port 1 and VLAN y uses port 2.   The only is a problem if one of the VLAN's uses both ports....
(Which ANY STP will prevent...)
Now: MSTP is a Cisco special which is also support by HP, but is not widespread.

STP is the officeial standard STP, (and like MSTP) might be helpd up up to ~45 second before stabelizing. (Polling is used).
RSTP is a rapdid version that propagates changes when they occur, not by polling. RSTP & STP are compatible.

When you have 10 VLAN's THEN you have 10 STP/RSTP trees and 1 (slightly more complex) MSTP tree...
JustInCaseCommented:
@noci
that is cases for Cisco RSTP and STP implementation (per VLAN), not for HP. There is no per VLAN in HP implementation if MSTP is not implemented.
MSTP is IEEE 802.1s standard (widespread) and it aligns STP per MSTP instance (group of VLANs in one instance). MSTP is actually based on RSTP, not STP.
nociSoftware EngineerCommented:
I always used RSTP/STP on (also) HP Switches as there were other equipment in that network that only support STP.
and that network had about 13 VLAN's  accross various switches. (Not all 13 on all switches).

So my experience differs...  (Note I used ProCurve...)
Don JohnstonInstructorCommented:
MSTP is actually based on RSTP, not STP.

Not sure how about that since MSTP predates RSTP.  (S comes before W)
JustInCaseCommented:
Me neither.
802.1s - IEEE Std 802.1s-2002
802.1w - IEEE Std 802.1w-2001
Don JohnstonInstructorCommented:
No. 802.1s was part of 802.1q.  The first draft of 802.1s was in 1998.

But whatever.
nociSoftware EngineerCommented:
AFAIK  RSTP was created to get a faster but compatible STP.  MSTP was a bridge too far for many large existing networks, as it provided no compatibility.  (and putting a "non-STP switch inbetween networks doesn't help, as BDPU's are transmitted transparantly through such switches.
which i found the hard way  30 years ago).
JustInCaseCommented:
Looks like letters are not assigning letters in order of appearance.
:)
ieee802.org What's new - draft 0 for 802.1v is published after, for example, 802.1t draft 3 published.
I can't find dates of the first drafts for both 802.1s and 802.1w, but looks like both appeared at the similar time (1998 or 1999).
21 Feb 2000:
    802.1s draft 4 published.
8 Jan 2000:
    802.1w draft 3 published

I found that newer versions of HP devices do support per-vlan spanning-tree operations (not sure if only high end or all devices), but option is available at least on some devices (so, my information is outdated). At least some HP devices support per VLAN configuration which makes DOn's solution applicable to some HP devices.

MSTP is compatible with both RSTP and STP.
MSTP - RSTP compatibility
MSTP is designed to be STP and RSTP compatible and interoperable without additional operational management practice, this is due to a set of measurements based on RSTP (Clause 17 of IEEE Std 802.1D, 2004 Edition) intending to provide the capability for frames assigned to different VLANs, to be transmitted along different paths within MST Regions.

But, all of this is not really relevant to original question which was already answered properly by Andy Bartkiewicz. There could be others potential solutions too, depending on devices and switch OS's which are in use.
Don JohnstonInstructorCommented:
But, all of this is not really relevant to original question which was already answered properly by Andy Bartkiewicz.

And yet you made this post.
L-PlateAuthor Commented:
thanks guys
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.