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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

VLAN Pruning

switchport trunk allowed vlan 1,6

In my VLAN configuration i have used the above command in the Trunk Port for pruning in 4506 switch. Do i need to add some other command to make Vlan Pruning to work with the above command.

If so, can any one give me the sample configs.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: VLAN Pruning

Hi Friend,

Pruning is a all together different concept then clearing of vlans. When you Prune the vlan BPDU still passes the link but if you clear the vlans BPDU will also stop passing the link.

What you have configured is clearing of vlans

switchport trunk allowed vlan vlan_list

And if you want to set the list of VLANs that are enabled for VTP pruning when the switch is in trunking mode then run this command

switchport trunk pruning vlan vlan_list

This link will guide you the configuration for IOS on 4506 switch

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_1_20/cmdref/snmp_vtp.htm#wp1022676

To guide you more about VTP pruning please read this doc for 4506 switch with IOS

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_1_20/config/vtp.htm#1020444

HTH

Ankur

8 REPLIES
Silver

Re: VLAN Pruning

Yes you have add other commands to make vlan pruning

Hope this link clears ur doubt,

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat5000/rel_4_2/config/vlans.htm#12000

New Member

Re: VLAN Pruning

Thanks for your reply Balaji

The above link which you sent for Cat OS. The switch which i am handling is the IOS version. It will be great if you attach some Document or Sample config lines for IOS version.

Thanks

Rajesh Krishnamurthy

Re: VLAN Pruning

New Member

Re: VLAN Pruning

Thanks Prame.

I did't get proper solution from the document. Since mine is the IOS verson of 4506 switch.

Just want to know if i use "switchport trunk allowed vlan 1,6" on a trunk port, do i need to add "VTP purning" in the Vlan config mode.

Can u guys kindly let me know other commands to be added along with the above 2 commands.

Thanks

Re: VLAN Pruning

Hi rajesh

sorry i did send u the link about VTP Pruning ,with the command ur using up on the trunk will allow only vlan 1 and 6 to transmit & recieve traffic thru the trunk interface.

If ur intention is to allow only those vlans (1,6) via the trunk then it will do.

regds

New Member

Re: VLAN Pruning

Yes Prame,

My intention is to send only Vlan 1 & 6 for sixth floor, 1 & 7 for seventh floors trunk interfaces. So i think the

interface range gigabitEthernet 1/1 - 4

description ---> VLAN TRUNK FOR SIXTH FLOOR <----

switchport mode trunk

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 1,6

no shut

exit

interface range gigabitEthernet 1/5 - 8

description ---> VLAN TRUNK FOR SEVENTH FLOOR <----

switchport mode trunk

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 1,7

no shut

exit

will do without the need of the command "vtp prouning" inside vlan config mode.

Thanks Prem.

Re: VLAN Pruning

Hi Friend,

Yes if your intention is just to allow vlan on specific floors then what commands you have posted above will work fine and give you the desired results.

You need not configure Pruning for this purpose.

Regards,

Ankur

Re: VLAN Pruning

Hi Friend,

Pruning is a all together different concept then clearing of vlans. When you Prune the vlan BPDU still passes the link but if you clear the vlans BPDU will also stop passing the link.

What you have configured is clearing of vlans

switchport trunk allowed vlan vlan_list

And if you want to set the list of VLANs that are enabled for VTP pruning when the switch is in trunking mode then run this command

switchport trunk pruning vlan vlan_list

This link will guide you the configuration for IOS on 4506 switch

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_1_20/cmdref/snmp_vtp.htm#wp1022676

To guide you more about VTP pruning please read this doc for 4506 switch with IOS

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat4000/12_1_20/config/vtp.htm#1020444

HTH

Ankur

288
Views
0
Helpful
8
Replies