Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring VLAN IDs for Logical Interfaces

You can bind a VLAN identifier to a logical interface by including the vlan-id statement:

vlan-id number;

You can include this statement at the following hierarchy levels:

  • [edit interfaces interface-name unit logical-unit-number]
  • [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number]

You can also configure a logical interface to forward packets and learn MAC addresses within each VPLS routing instance configured with a VLAN ID that matches a VLAN ID specified in a list using the vlan-id-list statement. VLAN IDs can be entered individually using a space to separate each ID, entered as an inclusive list separating the starting VLAN ID and ending VLAN ID with a hyphen, or a combination of both.

For example, to configure the VLAN IDs 20 and 45 and the range of VLAN IDs between 30 and 40, issue the following command from the CLI:

set interfaces ge-1/0/1 unit 1 vlan-id-list [20 30-40 45];

To configure a list of VLAN IDs for a logical interface, include the vlan-id-list statement:

vlan-id-list list-of-vlan-ids;

You can include this statement at the following hierarchy levels:

  • [edit interfaces interface-name unit logical-unit-number]
  • [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number]

For more information about how to configure VLANs, see the Junos OS Network Interfaces Configuration Guide. For detailed information about how VLAN identifiers in a VPLS routing instance are processed and translated, see the MX Series Layer 2 Configuration Guide.

Published: 2012-06-27

Supported Platforms

Published: 2012-06-27