Link to home
Start Free TrialLog in
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" ?
Avatar of Don Johnston
Don Johnston
Flag of United States of America image

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.
Avatar of Jung Torres
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
Avatar of Don Johnston
Don Johnston
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great.  I really appreciate your assistance :)
Thank You :)