A MAC move occurs when a MAC address frequently appears
on a different physical interface than the one it was learned on.
Frequent MAC moves indicate the presence of loops. To avoid loops
across interfaces in bridge domains, you can configure MAC pinning.
This topic describes how to configure MAC pinning on an access
interface in a bridge domain. A logical interface configured to accept
untagged packets is called an access interface or access port. When an access interface receives
a tagged or an untagged packet, the interface’s VLAN ID is added
to the packet. The packet is then forwarded within the bridge domain
that is configured with the matching VLAN ID.
To configure MAC pinning on access interfaces in bridge
domains:
- Configure the interface as an access interface and specify
the VLAN ID at the [
edit interfaces] hierarchy level.[edit interfaces]
user@host# set interfacetype-fpc/pic/port encapsulation ethernet-bridge
user@host# set interfacetype-fpc/pic/port unit logical-unit-number family bridge interface-mode access
user@host# set interfacetype-fpc/pic/port unit logical-unit-number family bridge vlan-id vlan-id
- Configure MAC pinning on the interface by including the
mac-pinning statement at the [edit bridge-domains] hierarchy level. [edit bridge-domains]
user@host# set bridge-domain-name bridge-options interface interfacetype-fpc/pic/port mac-pinning
- In configuration mode, verify the configuration.
user@host# show interfaces
interfaces {
interfacetype-fpc/pic/port {
encapsulation ethernet-bridge;
unit logical-unit-number {
family bridge {
interfaces-mode access;
vlan-id vlan-id;
}
}
}
}
user@host# show bridge-domains
bridge-domains {
bridge-domain-name {
bridge-options {
interfacetype-fpc/pic/port {
mac-pinning;
}
}
}
}