Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Access port with Trunk

Unanswered Question
May 15th, 2006
User Badges:

Hi guys,

If you have a port configured with both:

switchport access vlan x &

switchport mode trunk,

Does the port operate in static access vlan or trunk or both. Please clearify.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
a.giorgi Mon, 05/15/2006 - 04:58
User Badges:


A port can be a tagged (trunk) and untagged (access) at the same time.

The untagged vlan is called native vlan.

When the frame came to the port without vlan id then it is associated with the untagged vlan (1 by default)

When the frame came with vlan id the switch check the port belong to the same vlan.

Hope this help. Please rate if it does.


Alberto Giorgi from spain.

kelvin-yeo Mon, 05/15/2006 - 05:26
User Badges:

Hi there,


I understand what you mmeant here.

interface FastEthernet0/23

switchport access vlan 101

switchport trunk encapsulation dot1q

switchport trunk native vlan 101

switchport mode trunk

Above, what will " switchport access vlan 101" meant?


amit-singh Mon, 05/15/2006 - 05:04
User Badges:
  • Blue, 1500 points or more


looking at your present config if its a switch which support dot1q only, it will work on trunk not a static vlan port. On the other switches which has the ISL trunk support, it will work as a static access port until u define the encapsulation for the port.

A port can work both as a tagged and untagged for a vlan as explained by the poster above.

HTH, Please rate if it does.

-amit singh

ycae Mon, 05/15/2006 - 05:12
User Badges:

Well i think that this will work without problem but i think i read once that on a security point of view you should always create trunks on unused vlans for example vlan 1. Correct me if i am wrong.


kelvin-yeo Mon, 05/15/2006 - 05:39
User Badges:

Hi Again,

If its a uplink between 2 cisco switch,the above cmds put the ports into trunk with native vlan of 101.

Then how will the ' switchport access vlan 101' play apart in this case. Is it ignored?


amit-singh Mon, 05/15/2006 - 05:55
User Badges:
  • Blue, 1500 points or more


' switchport access vlan 101' will be ignored if this command is given before trunk command. But if it is given after the trunk command then it will change the port into an access port.

HTH, Please rate if it does.

-amit singh

kelvin-yeo Mon, 05/15/2006 - 06:04
User Badges:


Thats the answer i'm looking for. Thank you.

Is there any writeup on this?

I will rate your post


This Discussion