05-15-2006 04:52 AM - edited 03-03-2019 03:12 AM
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.
05-15-2006 04:58 AM
Hi:
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.
Regards
Alberto Giorgi from spain.
05-15-2006 05:26 AM
Hi there,
Thanks.
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?
Cheers
05-15-2006 05:04 AM
Hi.
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
05-15-2006 05:12 AM
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.
Yves
05-15-2006 05:39 AM
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?
Thanks
05-15-2006 05:55 AM
Hi,
' 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
05-15-2006 06:04 AM
amit,
Thats the answer i'm looking for. Thank you.
Is there any writeup on this?
I will rate your post
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: