Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Disabling MAC Learning for a VLAN or Logical Interface

    You can disable MAC learning for all logical interfaces in a specified VLAN, or for a specific logical interface in a VLAN. Disabling dynamic MAC learning prevents the specified interfaces from learning source MAC addresses.

    To disable MAC learning for all logical interfaces in a VLAN in a virtual switch, include the no-mac-learning statement at the [edit vlans vlan-name switch-options] hierarchy level:

    [edit]
    vlans {vlan-name {domain-type bridge;interface interface-name;switch-options {no-mac-learning;}}}

    To disable MAC learning for a specific logical interface in a VLAN, include the no-mac-learning statement at the [edit vlans vlan-name switch-options interface interface-name] hierarchy level.

    [edit]
    vlans {vlan-name {domain-type bridge;interface interface-name;switch-options {interface interface-name {no-mac-learning;}}}}

    Note: When you disable MAC learning, source MAC addresses are not dynamically learned, and any packets sent to these source addresses are flooded into the VLAN.

    Note: When you gather interfaces into a VLAN, the no-mac-learn-enable statement at the [edit interfaces interface-name ether-options ethernet-switch-profile] hierarchy level is not supported. You must use the no-mac-learning statement at the [edit vlans vlan-name switch-options interface interface-name] hierarchy level to disable MAC learning on an interface in a VLAN.

    Note: When MAC learning is disabled for a VPLS routing instance, traffic is not load balanced and only one of the equal-cost next hops is used.

    Published: 2013-04-03