vlan Tagging 10gb interface on a Cisco switch

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.
MD JohnsonAsked:
Who is Participating?
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.

JustInCaseCommented:
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
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
DP230Network AdministratorCommented:
Agreed with JustInCase, you can also check with command: "show int trunk"

Then you will see which VLANs are tagging on which interfaces.
0
MD JohnsonAuthor Commented:
Thanks.
0
JustInCaseCommented:
You're welcome.
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.