interface-mode
Syntax
Hierarchy Level
Release Information
Statement introduced in JUNOS Release 9.2.
Description
Determines whether the logical interface accepts or discards packets based on VLAN tags. Specify the trunk option to accept packets with a VLAN ID that matches the list of VLAN IDs specified in the vlan-id-list statement, then forward the packet within the bridge domain configured with the matching VLAN ID. Specify the access option to accept packets with no VLAN ID, then forward the packet within the bridge domain configured with the VLAN ID that matches the VLAN ID specified in the vlan-id statement.
Options
-
access—Configure a logical interface to accept untagged packets. Specify the VLAN to which this interface belongs using the vlan-id statement.
-
trunk—Configure a single logical interface to accept packets tagged with any VLAN ID specified with the vlan-id-list statement.
Usage Guidelines
See Configuring a Logical Interface for Access Mode and Configuring a Logical Interface for Trunk Mode.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
