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?
 
Don JohnstonConnect With a Mentor InstructorCommented:
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
 
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
 
Jung TorresAuthor Commented:
Great.  I really appreciate your assistance :)
0
 
Jung TorresAuthor Commented:
Thank You :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.