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

    mac-learn-enable

    Syntax

    (mac-learn-enable | no-mac-learn-enable);

    Hierarchy Level

    [edit interfaces interface-name gigether-options ethernet-switch-profile]

    Release Information

    Statement introduced before Junos OS Release 7.4.

    Description

    For Gigabit Ethernet IQ and Gigabit Ethernet PICs with SFPs (except the 10-port Gigabit Ethernet PIC and the built-in Gigabit Ethernet port on the M7i router), and for Gigabit Ethernet DPCs on MX Series routers, configure whether source and destination MAC addresses are dynamically learned:

    • mac-learn-enable—Allow the interface to dynamically learn source and destination MAC addresses.
    • no-mac-learn-enable—Prohibit the interface from dynamically learning source and destination MAC addresses.

    MAC address learning is based on source addresses. You can start accounting for traffic after there has been traffic sent from the MAC address. Once the MAC address is learned, the frames and bytes transmitted to or received from the MAC address can be tracked.

    Note: When you gather interfaces into a bridge domain, the no-mac-learn-enable statement at the [edit interfaces interface-name gigether-options ethernet-switch-profile] hierarchy level is not supported. You must use the no-mac-learning statement at the [edit bridge-domains bridge-domain-name bridge-options interface interface-name] hierarchy level to disable MAC learning on an interface in a bridge domain. For information on disabling MAC learning for a bridge domain, see MX Series Layer 2 Configuration Guide.

    Required Privilege Level

    interface—To view this statement in the configuration.

    interface-control—To add this statement to the configuration.

    Published: 2013-02-13