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
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

switch-options (VLANs)

date_range 19-Nov-23

Syntax (EX Series, MX Series, QFX Series and NFX Series)

content_copy zoom_out_map
switch-options {
    interface interface-name {
        interface-mac-limit limit {
            packet-action drop;
        }
        mac-pinning 
        no-mac-learning; 
        static-mac static-mac-address {
            vlan-id number;
        }
    }
    interface-mac-limit limit {
        packet-action drop;
    }
    mac-statistics;
    mac-ip-table-size number;
    mac-table-size limit {
        packet-action drop;
    }
    no-mac-learning;
    service-id number; 
    vtep-source-interface
}

Syntax (SRX Series)

content_copy zoom_out_map
switch-options {
    interface interface-name { 
        encapsulation-type;
        ignore-encapsulation-mismatch;
        pseudowire-status-tlv;
        static-mac mac-address {
            vlan-id vlan-id;
        }
    }
    mac-table-aging-time seconds;
    mac-table-size {
        number;
        packet-action drop;
    }
}

EX Series, MX Series, QFX Series and NFX Series

content_copy zoom_out_map
[edit ],
[edit logical-systems logical-system-name routing-instances routing-instance-name vlans vlan-name],
[edit routing-instances routing-instance-name vlans vlan-name],
[edit vlans vlan-name]

SRX Series

content_copy zoom_out_map
[edit vlans vlans-name]

Description

Configure Layer 2 learning and forwarding properties for a VLAN or a virtual switch.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement modified in Junos OS Release 9.5.

Statement introduced in Junos OS Release 12.3R2.

Statement (mac-pinning) introduced in Junos OS 16.2 for MX Series routers.

mac-ip-table-size statement introduced in Junos OS 17.4 Release for MX Series routers and EX9200 switches.

footer-navigation