Configuring VTP Pruning

InFiqure 1-17, a port is active on VLAN 2 on the crane, yin, and yang switches, but not on the man VTP pruning) is enaeied for VLAN 2 on the yang switch, the mantis sw itch will not rece ive broadcast and unknown/iflooded unicast toaffic for VLAN 2. Likewise, the crane switch will not receive the sam traffic from VLAN 3 and VLAN 4, assuming pruning is enabled on the yin switch. By default, VTP pr disabled; therefore, global VTP pruning must be enabled. Enabling VTP pruning is a two-step proce second step opei onal:

Step 1. Enable VTP pruning from the VLAN configuration mode or the VLAN database with th prun ing command. This; comma nd enab i es prunin g for VLANs, and no further configuration i unless you only want to prune specific VLANs.

3550_switch(vlan)#vtp pruning

Step 2. (Opt ional) Add VLANs to the prune- eli gible list. By defaul t, a ll VLANu are prune eligib stpp may ee bypassed. Ynu may mark only c^htciin VLAN s pr une eligible by using the follows command:

3550_switch(config-if)#switchport trunk pruning vlan {add | except | none | remove

You may add multiple VLANs, separated by a comma, or a range of VLANs, using a hyphen (-). For interface command switchport trunk pruning vlan add 2-10 makes only the VLANs 2 through 1 eligible. You can control VTP pruning on a trunk-by-trunk basis with this command.

Global VTP pruning, whether it is enabled or not, can be verified by the show vtp status comman verify VTP pruning for individual VLANs by using the show interface command with the switchpo by viewing the VTP status. Example 1-21 demonstrates how to verify whether VTP pruning is enabl show vtp status command.

Was this article helpful?

0 0

Post a comment