Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring MAC Pinning on Access Interfaces for Bridge Domains

date_range 23-Nov-23

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:

  1. Configure the interface as an access interface and specify the VLAN ID at the [edit interfaces] hierarchy level.
    content_copy zoom_out_map
    [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
    
  2. Configure MAC pinning on the interface by including the mac-pinning statement at the [edit bridge-domains] hierarchy level.
    content_copy zoom_out_map
    [edit bridge-domains]
    user@host# set bridge-domain-name bridge-options interface interfacetype-fpc/pic/port mac-pinning
    
  3. In configuration mode, verify the configuration.
    content_copy zoom_out_map
    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;
                        }
                    }
                } 
            }
    
footer-navigation