Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

one physical port multiple vlans

Is it possible to configure one fast ethernet port with multiple vlans. like

switchport access vlan 1,2 and so

If it's not like that how do you guys do this in real world?


Re: one physical port multiple vlans

Sure, you can assign multiple VLANS to a switch port. You need to configure the port as a trunk and not access port. By default, trunk port carries traffic for all VLANs but you have the option of specifying which VLANs are allowed on a trunk.

A basic trunk port configuration would look something like this.

int f0/1

switchport trunk encapsulation dot1q

switchport mode trunk



New Member

Re: one physical port multiple vlans


What's your purpose to configure more than one vlan on a ethernet port? An access is supposed to be connected by one network terminal. If it is a server which does need to handle multiple vlan, you need a NIC with multiple vlan support. Then, just configure the port to be a trunk port. Access port supports only one vLAN since it should be connected with one machine only. If multiple machines are connected to the port, they must be sharing with another switch. So, the connection between two switches with VLAN support should be treated as a trunk.