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.

Anonymous
N/A

Disable mac-address learning per Vlan

Hello,

I would like to ask how can I disable mac-address learning in a layer2 3-play enviroment (7600 product).

Regards

6 REPLIES
New Member

Re: Disable mac-address learning per Vlan

New Member

Re: Disable mac-address learning per Vlan

If you are trying to disable mac-address learning on VPLS, only way to do is to limit the VLAN mac-addresses globally. (Limit the vlan where u gave the command xconnect vfi).

Re: Disable mac-address learning per Vlan

You can control mac-address learning for a VLAN by using this switchport command on a trunk.

Router(config-if)# switchport port-security maximum 3 vlan 102

Or simply use this to allow only a certain number of mac's per access port.

Router(config-if)# switchport port-security maximum 1

Here is the command reference.

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122sr/cr/srir_r/ir_s4sr.htm#wp1015189

PS: you cannot totally stop mac learning as the valid values are from 1-4097 so you cant set it to zero and i believe you dont want to as well , since you have a layer2/3 environment.

HTH-Cheers,

Swaroop

New Member

Re: Disable mac-address learning per Vlan

you can disable vlan MAC learning by douing this: (config) no mac-address-table learning vlan

cheers

New Member

perfect!!no mac address-table

perfect!!

no mac address-table learning vlan 1-4094

New Member

you can use remote-span for

you can use remote-span for this vlan

Redards

8320
Views
10
Helpful
6
Replies