[Contents] [Prev] [Next] [Index] [Report an Error]

Disabling MAC Learning for a Bridge Domain or Logical Interface

You can disable MAC learning for all logical interfaces in a specified bridge domain, or for a specific logical interface in a bridge domain. Disabling dynamic MAC learning prevents the specified interfaces from learning source MAC addresses. You can also disable MAC learning for an MX-series router. For more information, see Disabling MAC Learning.

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

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

To disable MAC learning for a specific logical interface in a bridge domain, include the no-mac-learning statement at the [edit bridge-domains bridge-domain-name bridge-options interface interface-name] hierarchy level.

[edit]
bridge-domains {
bridge-domain-name {
domain-type bridge;
interface interface-name;
bridge-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 bridge domain.

For more information about how to disable MAC learning for the entire MX-series router, see Disabling MAC Learning.


[Contents] [Prev] [Next] [Index] [Report an Error]