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 MAC moves
across interfaces in bridge domains, you can configure MAC pinning.
In this topic, we are configuring MAC pinning on a trunk interface
in a bridge domain. A logical interface configured to accept any packet
tagged with a VLAN ID that matches a VLAN ID specified in the domain
is called a trunk interface or trunk
port. When a trunk interface receives a packet tagged with
a VLAN ID that matches the list of VLAN IDs specified within the bridge
domain, the packet is then forwarded within the bridge domain that
is configured with the matching VLAN ID.
To configure MAC pinning on trunk interfaces in bridge
domains:
- Configure the interface as a trunk interface and specify
the list of VLAN IDs.
[edit interfaces]
user@host# set interfacetype-fpc/pic/port flexible-vlan-tagging
user@host# set interfacetype-fpc/pic/port encapsulation flexible-ethernet-services
user@host# set interfacetype-fpc/pic/port unit logical-unit-number family bridge interface-mode trunk
user@host# set interfacetype-fpc/pic/port unit logical-unit-number family bridge vlan-id-list vlan-id-numbers
- Configure the bridge domain by specifying the name of
the bridge and the VLAN ID.
[edit bridge-domains]
user@host# set bridge-domain-name vlan-id all
- Configure MAC pinning on the interface by including the
mac-pinning statement at the [edit switch-options] hierarchy level. [edit switch-options]
user@host# set interface interfacetype-fpc/pic/port mac-pinning
- In configuration mode, verify the configuration.
user@host# show interfaces
interfaces {
interfacetype-fpc/pic/port {
flexible-vlan-tagging;
encapsulation flexible-ethernet-services;
unit logical-unit-number {
family bridge {
interfaces-mode trunk ;
vlan-id-list vlan-id-numbers;
}
}
}
}
user@host# show bridge-domains
bridge-domains {
bridge-domain-name {
vlan-id all;
}
}
user@host# show switch-options
switch-options {
interface interfacetype-fpc/pic/port {
mac-pinning;
}
}