1

I have three switches and I configured VLAN with trunk on those switches but my requirement is VLAN 1, VLAN 2, VLAN 3 has to be configured on Switch 1 and Switch 3, but I don't need VLAN 2 configuration on Switch 2, so for this requirement for configuration, what should I have to configure and in which switch?

Switch 1 <---> Switch 2 <---> Switch 3
VLAN 1-3       VLAN 1,3       VLAN 1-3
5
  • You question is confusing. Do you mean that Switch 1 needs all three VLANs, but Switch 2 needs only VLANs 1 and 3? Also, what are the switch models? – Ron Maupin Feb 25 '18 at 17:12
  • Yes, three switches are connected and switch model cisco catalyst 2960 model and for example first and third switches need vlan 1 ,2,3 access but in second switch only need vlan 1& 3 access only. – Sakthivel S Feb 26 '18 at 5:41
  • But how are they connected (star, bus, ring)? Which interfaces are connected to which switches? – Ron Maupin Feb 26 '18 at 5:43
  • which is connected in Bus topology – Sakthivel S Feb 26 '18 at 5:44
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Apr 1 '18 at 21:22
2

You need to configure the switch interfaces as trunks:

switchport mode trunk

You may want to restrict the VLANs on the trunks:

switchport trunk allowed vlan 1 - 3

All three VLANs will be transported across the trunks, but you simply do not use VLAN 2 on any Switch 2 access interfaces.

A better design is to use a star topology, where both Switch 2 and Switch 3 connect back to Switch 1. You can then restrict the trunk interfaces between Switch 1 and Switch 2 to VLANs 1 and 3:

switchport trunk allowed vlan 1 , 3

If you connect them in a ring, you could also use the above command for the trunk interfaces between Switch 2 and Switch 3.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.