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 virtual switches in logical systems, you can
configure MAC pinning. A set of logical systems within a single router
can handle the functions previously handled by several small routers.
This topic describes how to configure MAC pinning on trunk interfaces
in virtual switch routing instance of a logical system.
To configure MAC pinning on trunk interfaces in virtual
switches for logical systems:
- Configure the interface and specify the encapsulation.
[edit interfaces]
user@host# set interfacetype-fpc/pic/port flexible-vlan-tagging
user@host# set interfacetype-fpc/pic/port encapsulation flexible-ethernet-services
- Create the logical system by specifying the name of the
logical system and specify the trunk interface.
[edit]
user@host# set logical-systems logical-system-name interfaces interfacetype-fpc/pic/port unit logical-unit-number family bridge interface-mode trunk vlan-id-list vlan-id-numbers
- Configure the routing instance as a virtual switch and
specify the trunk interface.
[edit routing-instances]
user@host# set routing-instance-name instance-type virtual-switch;
user@host# set routing-instance-name interface interfacetype-fpc/pic/port
- Configure the bridge domain and specify the list of VLAN
IDs.
[edit routing-instances]
user@host# set routing-instance-name bridge-domains bridge-domain-name vlan-id-list vlan-id-numbers
- Configure MAC pinning on the trunk interface 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;
}
}
user@host# show logical-systems
logical-systems {
logical-system-name {
interfaces {
interfacetype-fpc/pic/port {
unit logical-unit-number {
encapsulation vlan-vpls;
family bridge {
interface-mode trunk;
vlan-id-list vlan-id-numbers;
}
}
}
}
user@host# show routing-instances
routing-instances {
routing-instance-name {
instance-type virtual-switch;
interface interfacetype-fpc/pic/port;
bridge-domains {
bridge-domain-name {
vlan-id-list vlan-id-numbers;
}
}
}
}
}
}
}
}
user@host# show switch-options
switch-options {
interface interfacetype-fpc/pic/port {
mac-pinning;
}
}
}
}