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 in Virtual Switches for Logical Systems

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 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 access interfaces in virtual switch routing instance of a logical system.

To configure MAC pinning on access interfaces in virtual switches for logical systems:

  1. Configure the interface and specify the encapsulation.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# set interfacetype-fpc/pic/port encapsulation ethernet-vpls
    
  2. Create the logical system by specifying the name of the logical system, and specify the access interface.
    content_copy zoom_out_map
    [edit ]
    user@host# set logical-systems logical-system-name interfaces interfacetype-fpc/pic/port unit logical-unit-number family bridge interface-mode access vlan-id vlan-id
    
  3. Configure the routing instance as virtual switch and specify the access interface.
    content_copy zoom_out_map
    [edit routing-instances]
    user@host# set routing-instance-name instance-type virtual-switch;
    user@host# set routing-instance-name interface interfacetype-fpc/pic/port
    
  4. Configure the bridge domain and specify the list of VLAN IDs.
    content_copy zoom_out_map
    [edit routing-instances]
    user@host# set routing-instance-name bridge-domains bridge-domain-name vlan-id-list vlan-id-numbers
    user@host# set routing-instance-name bridge-domains bridge-domain-name bridge-options interface interfacetype-fpc/pic/port mac-pinning
    
  5. In configuration mode, verify the configuration.
    content_copy zoom_out_map
    user@host# show interfaces
    interfaces {
        interfacetype-fpc/pic/port {
            encapsulation ethernet-vpls;
        }
    }
    content_copy zoom_out_map
    user@host# show logical-systems
    logical-systems {
        logical-system-name {
            interfaces {
                interfacetype-fpc/pic/port {
                    unit logical-unit-number  {
                        family bridge {
                            interface-mode access;
                            vlan-id vlan-id;
                        }
                    }
                }
            }
    
    content_copy zoom_out_map
    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;
                            bridge-options {
                                interface interfacetype-fpc/pic/port {
                                    mac-pinning;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
footer-navigation