Configuring the VLAN ID List for a Trunk Interface
To configure the list of VLAN IDs to be accepted by the trunk
port, include the vlan-id-list
statement and specify the
list of VLAN IDs. You can specify individual VLAN IDs with a space
separating the ID numbers, specify a range of VLAN IDs with a dash
separating the ID numbers, or specify a combination of individual
VLAN IDs and a range of VLAN IDs.
vlan-id-list [number number-number];
You can include this statement at the following hierarchy levels:
[edit interfaces interface-name unit logical-unit-number family bridge interface-mode trunk]
[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number family bridge interface-mode trunk]
When a packet is received that is tagged with a VLAN ID specified in the trunk interface list of VLAN IDs, the packet is accepted and forwarded within the bridge domain that is configured with the matching VLAN ID.
When a packet is received that is tagged with a VLAN ID not specified in the trunk interface list of VLAN IDs, the native VLAN ID is pushed in front of the existing VLAN tag or tags and the packet is forwarded within the bridge domain that is configured with the matching VLAN ID.
When an untagged packet is received on a trunk interface, the native VLAN ID is added to the packet and the packet is forwarded within the bridge domain that is configured with the matching VLAN ID.
A bridge domain configured with a matching VLAN ID must be configured before the trunk interface is configured. To learn more about configuring bridge domains, see the Junos Routing Protocols Configuration Guide.