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.

New Member

Clearing VLAN's from trunk vs. VTP pruning

Maybe I have missed the boat here on these two subjects...

Could someone describe the difference between clearing a VLAN from a trunk port vs. using VTP pruning on a trunk?

5 REPLIES

Re: Clearing VLAN's from trunk vs. VTP pruning

VTP pruning is an automated process - a switch can prune off VLANs that it doesn't need, and automatically re-add them should access to the 'pruned' VLANs be needed. Manual clearing of VLANs from a trunk is hard-coding what VLANs are and are not allowed on a trunk.

Obviously VTP Pruning needs a VTP domain to be established and pruning enabled within the Domain.....

Andy

New Member

Re: Clearing VLAN's from trunk vs. VTP pruning

Andy,

Thanks for clarifing the issue for me.. All the Cisco documentation aludes to fact.. but never quite states it as clearly as you have in a paragraph

New Member

Re: Clearing VLAN's from trunk vs. VTP pruning

We have decided not to use VTP on our network but instead do the pruning manually. Here is where my confusion is. I can tell my trunk links to Prune or I can tell it allow only certain VLANS.

Example

switchport trunk allowed vlan XXX

or

switchport trunk pruning vlan XXX

Can someone explain the difference? They seem to have the same fuction but I am sure they dont. Any info would be great.

New Member

Re: Clearing VLAN's from trunk vs. VTP pruning

Switchport trunk allowed specifies which VLANs are allowed on the trunk. This is one of the commands you can use to manually remove (prune) VLANs from a trunk link. By default all VLANs are allowed on the link and specifying them using this command only allows those that are listed.

Note: If you use this command, then it will allow only the vlans specified when you issue the command. For example if you wanted to allow only VLAN 10,20, and 30, you would enter the command:

switchport trunk allowed vlan 10,20,30

If later you wanted to add vlan 40 you would have to enter the command:

switchport trunk allowed vlan 10,20,30,40

or

switchport trunk allowed vlan add 40

If you entered: switchport trunk allowed vlan 40, then that would be all that is allowed. See the following link for more details:

http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/1218ea1/3550scg/swvlan.htm#1150302

The switchport trunk pruning vlan command specifies which VLANs are allowed to be pruned, by VTP pruning. Whatever you enter after this command is added to the prune list, which is all VLAN's by default. This command is useful when you don't want to prune a particular. For example let's say you had a VLAN that you never wanted VTP to prune, then you could remove that VLAN from the prune list with the command switchport trunk pruning vlan remove xxx.

See the following for more command details.

http://www.cisco.com/univercd/cc/td/doc/product/lan/c3550/1218ea1/3550scg/swvlan.htm#1101134

New Member

Re: Clearing VLAN's from trunk vs. VTP pruning

Thanks for your reply. Your explanations and links cleared things up..

mike

2027
Views
13
Helpful
5
Replies
CreatePlease login to create content