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 private LAN services (VPLS), you can
configure MAC pinning.
This topic describes how to configure MAC pinning for all pseudowires
of the VPLS site in a BGP-based VPLS routing instance for a logical
system.
To configure MAC pinning for all pseudowires in a BGP-based
VPLS Routing instance for a logical system:
- Configure the interface by specifying 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 and specify the trunk interface
and list of VLAN IDs on the logical unit.
[edit]
user@host# set 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
- Configure the VPLS routing instance and specify the trunk
interface.
[edit routing-instances]
user@host# set routing-instance-name instance-type vpls;
user@host# set routing-instance-name interface interfacetype-fpc/pic/port
- Configure MAC pinning after specifying the routing protocol
and the trunk interface.
[edit routing-instances]
user@host# set routing-instance-name protocols vpls interface interfacetype-fpc/pic/port
user@host# set routing-instance-name protocols vpls site site-name 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;
}
}
}
}
routing-instances{
routing-instance-name {
instance-type vpls;
interface interfacetype-fpc/pic/port;
protocols{
vpls {
interface interfacetype-fpc/pic/port;
site site-name {
mac-pinning;
}
}
}
}