Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

trunk pruning quesion

Hello, I have a list of vlan on my network (45, 56,70, 90 ...) I want on my trunk ports only to let pass traffic for specific vlan.

If I want to let pass only traffic of vlan's 45 and 56 on a trunk port what do I do?

I tried to use the following command

switchport trunk pruning vlan except 45,56

but I have this message: Command rejected: Bad VLAN pruning list

Why this message? My vtp mode is client

thanks

4 REPLIES
Silver

Re: trunk pruning quesion

Hello

Try the following command:

switchport trunk vlan allowed 45 , 56

HTH

Leon

* Please reate useful posts

Silver

Re: trunk pruning quesion

Hello

Try the following command:

switchport trunk vlan allowed 45 , 56

HTH

Leon

* Please reate useful posts

Silver

Re: trunk pruning quesion

For the switchport trunk pruning vlan command try to add spaces before and after the VLAN number "40 , 50 ".

It could be that pruning VLANs is not allowed when running VTP in client mode.

New Member

Re: trunk pruning quesion

Hello,

If I were you I would configure the trunk to accept only needed vlans (for example 45 and 56) with the command "switchport trnuk allowed vlan 45,56"

The command "switchport trunk pruning vlan except 45,56" is rejected because you cannot disable the pruning on vlans 1,1002-1005. So the command "switchport trunk pruning vlan except 1,45,56,1002-1005" should be accepted. However, you will only disable the pruning on the other vlans (70, 90 ...) This will not block them at all.

I hope this helps...

Regards,

Christophe

Regards,

Christophe

172
Views
0
Helpful
4
Replies
CreatePlease login to create content