cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4539
Views
9
Helpful
4
Replies

switchport mode trunk vs switchport trunk allowed vlan all

Magesh Kumar
Level 1
Level 1

If switchport mode trunk command allows multiple vlan on same interface, then what is the need of switchport trunk allowed vlan all command?

 

Regards,
Magesh Kumar G
1 Accepted Solution

Accepted Solutions

Captain HoOmi
Level 1
Level 1

You don't have to configure switchport trunk allowed vlan all. By default a trunk interface trust all VLANs, but if you have changed it manually to only allow specific VLAN(s) then you can change it back to all VLANs by this command

** Please rate this post or accept the solution if it helped! :) **

View solution in original post

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

Switchport mode trunk - allows all the VLAN

 

switchport trunk allowed vlan XX ( means only allowed VLAN in the list) ALL means again all the VLANs

 

BB

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

How to Ask The Cisco Community for Help

Hi Balaji,

 

So you mean both are doing same function, Right?  Then why we need two separate command for same function?

 

 

With Regards,

Magesh Kumar G

Regards,
Magesh Kumar G

Martin L
VIP
VIP

 

those options (add, remove, all, etc) are sort tricky a bit. I had same issues.

true, switchport mode trunk allows all vlans by default. but if u make some changes, vlans list of allowed vlan x is displayed,

so, switchport trunk allowed vlan all command can be use after any previous manual manipulation to go back quickly to default settings, aka allowing all vlans

 

 

Regards, ML
**Please Rate All Helpful Responses **

Captain HoOmi
Level 1
Level 1

You don't have to configure switchport trunk allowed vlan all. By default a trunk interface trust all VLANs, but if you have changed it manually to only allow specific VLAN(s) then you can change it back to all VLANs by this command

** Please rate this post or accept the solution if it helped! :) **
Review Cisco Networking for a $25 gift card