Avatar of Jung Torres
Jung Torres
 asked on

Cisco Command : What is the difference between switchport mode trunk from switchport trunk allowed vlan all?

does "switchport mode trunk" command allow all vlan by default or I do I need to issue "switchport trunk allowed vlan all" ?
CiscoSwitches / HubsNetworking

Avatar of undefined
Last Comment
Jung Torres

8/22/2022 - Mon
Don Johnston

switchport mode trunk makes an interface a trunk port (can carry multiple VLANs).

By default, all VLANs are allowed on a trunk port.  

So no, you do not need to issue a "switchport trunk allowed vlan all".  Unless a prior command was issued to restrict the allowed VLAN's.
Jung Torres

ASKER
I see,
from show run command, this is what I'm seeing on the interface.
Switchport trunk allowed vlan 1,10
switchport mode trunk

Does this allow only vlan 1 and 10 or does it allow all vlans because of the command "switchport mode trunk"?
ASKER CERTIFIED SOLUTION
Don Johnston

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Jung Torres

ASKER
Great.  I really appreciate your assistance :)
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Jung Torres

ASKER
Thank You :)