Enabling VTP Pruning on a CLIBased Switch

VTP pruning is enabled using the set vtp pruning enable command. If this command is used on a VTP server, pruning is enabled for the entire management domain. By default, VTP pruning is disabled. When pruning is enabled with this command, all VLANs become eligible for pruning on all trunk links, if needed. The default list of pruning eligibility can be modified. Like VLAN trunking, you can first clear VLANs from the eligibility list using the clear vtp pruneeligible vlan-range command. Then, specify the VLANs that can be pruned with the set vtp pruneeligible vlan-range command.

NOTE By default, VLANs 2-1000 are eligible for pruning. VLAN 1 has a special meaning because it is normally used as a management VLAN and is never eligible for pruning. In addition, VLANs 1001-1005 are never eligible for pruning.

Example 4-4 shows the use of these commands. VTP pruning is enabled, and VLAN 6 should be eligible for pruning, while VLANs 5, 7, 8, 9, and 10 are not eligible for pruning. Notice how VLANs 1 and 1001-1005 are never eligible for pruning.

Example 4-4 Enabling VTP Pruning

Switch(enable) set vtp pruning enable Switch(enable) clear vtp pruneeligible 5-10 Switch(enable) set vtp pruneeligible 6

The pruning status on the switch and its VLANs can be displayed with the show vtp domain command. Example 4-5 shows some sample output from this command:

Example 4-5 show vtp domain Command Output Displays VTP Pruning Status on a Switch and Its VLANs

The pruning status on the switch and its VLANs can be displayed with the show vtp domain command. Example 4-5 shows some sample output from this command:

Example 4-5 show vtp domain Command Output Displays VTP Pruning Status on a Switch and Its VLANs

Switch> show vtp domain

Domain Name

Domain Index VTP Version Local Mode Password

accounting

1 2 server -

Vlan-count Max-

vlan-storage Config Revision Notifications

3 1023

2 disabled

Last Updater

V2 Mode

Pruning PruneEligible on Vlans

172.16.4.1

Switch>

disabled

enabled 6,11-2000

Was this article helpful?

0 0

Responses

  • Claudia
    How to enable vtp pruning in switch?
    3 months ago

Post a comment