cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1115
Views
0
Helpful
2
Replies

configure vlan

MinhVu07669
Level 1
Level 1

What is the difference between "switchport trunk allowed" and "switchport trunk native" commands?

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

high level :

 

switchport trunk native - Native VLAN is an 802.1Q concept: frames belonging to native VLAN are sent untagged. (if you do not mention default is VLAN1)

 

switchport trunk allowed XX ( this prevents other VLAN passing over trunk) - so it will be Limited to that VLANs only.

 

hope this makes sense?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

high level :

 

switchport trunk native - Native VLAN is an 802.1Q concept: frames belonging to native VLAN are sent untagged. (if you do not mention default is VLAN1)

 

switchport trunk allowed XX ( this prevents other VLAN passing over trunk) - so it will be Limited to that VLANs only.

 

hope this makes sense?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

pmckenzie
Level 3
Level 3

Good question

the command "switchport trunk allowed" indicates to the switch which VLANS are allowed to be received, transmitted and also which VLANs can be blocked. (all VLANs allowed by default)

eg VLANS 1-10 and 12 are blocked by first statement, second statement allows VLAN 7

switchport trunk allowed vlan remove 1-10,12

switchport trunk allowed vlan add 7

 

the command "switchport trunk native" simply means that the switch will not tag that VLAN. All VLANs are still allowed but will be tagged using 802.1Q protocol. Each switch upon receipt of the Frame will unpack it, look at tag and be able to categorize which VLAN that Frame belongs to. If Frame doesn't have tag Switch will categorize it as Native. (both connected switches need to have same native VLAN defined.

 

There are worlds out there where the sky is burning, where the sea's asleep and the rivers dream, people made of smoke and cities made of song. Somewhere there's danger, somewhere there's injustice and somewhere else the tea is getting cold" Dr Who
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:

Review Cisco Networking products for a $25 gift card