cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4427
Views
1
Helpful
5
Replies

switchport trunk encapsulation dot1q vs switchport trunk allowed vlan

varshenys
Level 1
Level 1

Hi,

please someone tell me the difference of switchport trunk encapsulation dot1q vs switchport trunk allowed vlan

 

5 Replies 5

marce1000
VIP
VIP

 

- There is no difference between the two because both elements are unrelated, encapsulation specified the trunk-protocol as denoted , allowed vlan(s) specifies which vlans are allowed on the trunk.

 M.



-- ' 'Good body every evening' ' this sentence was once spotted on a logo at the entrance of a Weight Watchers Club !

that means I can use both the commands together ?

 

 - You can't use them together on the same command line, because they need to execute different things.

 M.



-- ' 'Good body every evening' ' this sentence was once spotted on a logo at the entrance of a Weight Watchers Club !

there are two protocol tag the frame pass through the Trunk ISL and dot1Q
we use 
switchport trunk encapsulation dot1q 
to specific the protocol dot1q

to config the VLAN allow to pass through the trunk we use the command 

switchport trunk allowed vlan

Yes you can use both command under same port.

The 2 commands are somewhat related but are quite different. If you want a switch port to operate as a trunk then the most important required command is switchport mode trunk. After defining the port as a trunk there are other commands that you might use.

switchport trunk encapsulation dot1q is an optional command that defines the encapsulation type of this trunk. dot1q is the default encapsulation type and the other type is isl. It has been a very long time since I have seen a switch configured to use isl, so the command to set encapsulation type is not used very frequently in live environments.

When a switch port is configured as a trunk, by default all vlans are carried on the trunk. If you want to specify that only certain vlans are to be carried on this trunk you would use the command switchport trunk allowed vlan.

HTH

Rick
Getting Started

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: