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 Trunk 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 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:

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