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" ?
Jung TorresAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Don JohnstonInstructorCommented:
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.
0
Jung TorresAuthor Commented:
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"?
0
Don JohnstonInstructorCommented:
Does this allow only vlan 1 and 10 or does it allow all vlans because of the command "switchport mode trunk"?

Only VLAN's 1 and 10 are allowed on the trunk.

"switchport mode trunk" is what makes the port a trunk.

If the "switchport trunk allowed vlan 1,10" were not there, then all VLAN's are allowed.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jung TorresAuthor Commented:
Great.  I really appreciate your assistance :)
0
Jung TorresAuthor Commented:
Thank You :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Cisco

From novice to tech pro — start learning today.