vlan Tagging 10gb interface on a Cisco switch

MD Johnson
MD Johnson used Ask the Experts™
on
I am trying to tag the TenGigabiteEthernet1/1 with several vlans on a Cisco 3560. The commands seem simple enough but the tagged vlans do not show after I run it. See below

int TenGigabitEthernet1/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan add 1,5,10,15,18,100
exit
show vlan

After running
This is the output.

interface TenGigabitEthernet1/1
 switchport trunk encapsulation dot1q
 switchport mode trunk

Any help would be appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2018
Commented:
switchport mode trunk

switchport trunk allowed vlan add 1,5,10,15,18,100
Switchport mode trunk by default is permittig all the vlans.

switchport trunk allowed vlan add is adding new vlans to already permitted vlan list, since all vlans are already enabled command is ignored.

If you need only thoe vlans to be permitted on trunk command should be

switchport trunk allowed vlan 1,5,10,15,18,100
DP230Network Administrator

Commented:
Agreed with JustInCase, you can also check with command: "show int trunk"

Then you will see which VLANs are tagging on which interfaces.

Author

Commented:
Thanks.
Distinguished Expert 2018

Commented:
You're welcome.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial