Configuring MAC Pinning for All Pseudowires of the VPLS Routing Instance (LDP and BGP)
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 on a trunk interface for all pseudowires of the VPLS routing instance.
To configure MAC pinning for the VPLS routing instance:
- 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-tagginguser@host# set interfacetype-fpc/pic/port encapsulation flexible-ethernet-servicesuser@host# set interfacetype-fpc/pic/port unit logical-unit-number encapsulation vlan-vpls;user@host# set interfacetype-fpc/pic/port unit logical-unit-number family bridge interface-mode trunkuser@host# set interfacetype-fpc/pic/port unit logical-unit-number family bridge vlan-id-list vlan-id-numbers
- Configure the routing instance as VPLS 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
configuration.[edit routing-instances]user@host# set routing-instance-name protocols vpls mac-pinning
- In configuration mode, verify the configuration.user@host# show interfacesinterfaces {interfacetype-fpc/pic/port {flexible-vlan-tagging;encapsulation flexible-ethernet-services;unit logical-unit-number {encapsulation vlan-vpls;}family bridge {interface-mode trunk ;vlan-id-list vlan-id-numbers;}}}user@host# show routing-instancesrouting-instances{routing-instance-name {instance-type vpls;interface interfacetype-fpc/pic/port;protocols{vpls {mac-pinning;}}}}