cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2524
Views
13
Helpful
5
Replies

Clearing VLAN's from trunk vs. VTP pruning

rlaplaca
Level 1
Level 1

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 5

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

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

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.

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

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

mike

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: