switch-options (VLANs)
Syntax (EX Series, MX Series, QFX Series and NFX Series)
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)
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
[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
[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.