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

l3-interface (VLAN)

date_range 02-May-24

Syntax

content_copy zoom_out_map
l3-interface (vlan logical-interface-number | irb logical-interface-number);
content_copy zoom_out_map
l3-interface l3-interface-name logical-interface-number {
    l3-interface-ingress-counting; 
}
content_copy zoom_out_map
l3-interface interface-name-logical-unit-number;

Hierarchy Level

content_copy zoom_out_map
[edit vlans vlan-name]
content_copy zoom_out_map
[edit interfaces ge-chassis/slot/port unit logical-unit-number                 family ethernet-switching]
[edit vlans vlan-name]

Description

Associate a Layer 3 interface with the VLAN. Configure Layer 3 interfaces on trunk ports to allow the interface to transfer traffic between VLANs. Within a VLAN, traffic is bridged, while across VLANs, traffic is routed. Because traffic between VLANs must be routed, a common Layer 3 interface is required.

Default

No Layer 3 (routing) interface is associated with the VLAN.

Options

interface-namelogical-unit-number—Name of a logical interface.

vlan.logical-interface-number—Number of the logical interface. Use the unit number that you used when you created the vlan interface with a set interfaces (QFX Series) vlan unit statement.

Note:

Use this statement with versions of Junos OS that do not support Enhanced Layer 2 Software (ELS).

irb.logical-interface-number—Logical interface defined with a set interfaces (QFX Series) irb statement.

Note:

Use this statement with versions of Junos OS that support Enhanced Layer 2 Software (ELS).

Required Privilege Level

routing—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 9.0.

[edit vlans vlan-name] hierarchy level introduced in Junos OS Release 12.3R2 for EX Series switches and MX Series routers.

irb option introduced in Junos OS Release 13.2 for the QFX Series.

footer-navigation