Assign two VLAN ID to a single Port of a Switch

Answered Question
May 12th, 2009

Hi,

I have 3 VLANs in my network and i would like to expose two VLANs(VLAN 2 and 3) to outside and the third VLAN(VLAN 4) is for internal use only.

At the outside interface point, i plan to place a switch.

I need to configure the switch Port(to which i am connecting my network) to accept VLAN2 and VLAN3 and reject VLAN4 packets.

Does any Cisco switches provide such configuration support?

As per my understanding, one Port of a switch can be assigned with only one VLAN ID.

Please correct me if i am wrong.

thanks

renjith

I have this problem too.
0 votes
Correct Answer by Leo Laohoo about 7 years 6 months ago

Hi Renjith,

Glad to be of help. Please rate when applicable. Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
Leo Laohoo Tue, 05/12/2009 - 21:37

Hi Renjith,

Typically, you can only assign ONE VLAN per port with the exception of Voice VLAN.

However, if you want to push 2 VLAN's per port, configure the port to be trunk and allow the VLANs you want.

renjith.rv Tue, 05/12/2009 - 21:46

Hi leolaohoo,

Thank you very much for the prompt reply.

Let me know,Can i specifically configure the trunk Port to accept the VLANs which i need(say VLAN 2 and 3) and discard all other VLAN packets(say VLAN4 and 5)?

Leo Laohoo Tue, 05/12/2009 - 21:49

Hi Renjith,

Sure you can. Go to the interface and configure "switchport trunk allowed vlan 2,3".

Only data from VLANs 2 & 3 will be accepted and discard the rest.

Hope this helps.

renjith.rv Tue, 05/12/2009 - 22:04

Hi leolaohoo,

Yes. This information is really valuable for me. thank you very much

Let me clarify one more thing, Can i configure any Port of the Switch as a trunk Port? (Say, '24 Port Switch' and i need to configure Port 8 and 16 a trunk ports)

renjith.rv Tue, 05/12/2009 - 23:42

Hi leolaohoo,

Let me clarify one more thing, Can i configure any Port of the Switch as a trunk Port? (Say, '24 Port Switch' and i need to configure Port 8 and 16 a trunk ports)

lamav Wed, 05/13/2009 - 08:14

Hi:

You can configure any port on a switch as a trunk port. Typically, the trunk ports are reserved for those that have fiber interfaces, but not necessarily.

HTH

Victor

renjith.rv Wed, 05/13/2009 - 20:35

Hi leolaohoo,

I have gone through the link you provided.

Yes. This helps.

thank you.

Correct Answer
Leo Laohoo Wed, 05/13/2009 - 21:03

Hi Renjith,

Glad to be of help. Please rate when applicable. Thanks.

Actions

This Discussion