cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
641
Views
5
Helpful
4
Replies
Highlighted
Beginner

switchport mode trunk vs switchport trunk allowed vlan all

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
4 REPLIES 4
Highlighted
VIP Mentor

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 ***
Highlighted

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
Highlighted
Engager

 

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 **

Highlighted
Beginner

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! :) **
Content for Community-Ad