Assign two VLAN ID to a single Port of a Switch

Answered Question
May 12th, 2009
User Badges:

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

Correct Answer by Leo Laohoo about 8 years 1 week 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
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

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
User Badges:

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
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

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
User Badges:

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
User Badges:

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
User Badges:
  • Blue, 1500 points or more

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

Leo Laohoo Wed, 05/13/2009 - 13:44
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

Hi Renjith,

Sure you can. Have a look at the link below. This will give you an example for Configuring VLAN and Configuring VLAN Trunks.


http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_25_sea/configuration/guide/swvlan.html


Hope this helps.

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

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
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

Hi Renjith,


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

Actions

This Discussion