Disable mac-address learning per Vlan

Unanswered Question
Mar 21st, 2007

Hello,

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

Regards

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
dinesh.thathana... Tue, 07/03/2007 - 03:26

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).

swaroop.potdar Tue, 07/03/2007 - 13:10

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

jordanbauduin Tue, 11/27/2007 - 06:58

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

cheers

Actions

This Discussion