A logical
interface (LIF) serves the purpose of abstracting a forwarding interface in a very generic
way, making it possible to capture the underlying physical characteristics of a forwarding
interface.
This feature
facilitates the support of future forwarding technologies without the need to modify
code design in various software components.
A forwarding interface
is also known as "main interface." It can be a physical port, a port-channel (Link
Aggregation Group, or LAG), a pseudowire (PW), a tunnel, and so on. A logical interface
can also be thought of as a subinterface configuration on top of a main interface.
Note
Currently the
only LIFs that require explicit user configuration are attachment circuit (AC) LIFs.
LIFs and
bridge domains
A Layer 2
application for LIFs is for bridge domains (BDs). A BD is an infrastructure that
supports the implementation of different switching technologies; it is essentially a
generic broadcast/forwarding domain that is not tied to a specific transport
technology. Bridge domains support a wide range of service endpoints, including
regular Layer 2 endpoints and Layer 2 endpoints over Layer 3 technologies. Logical
interfaces representing BD endpoints must be created before they can be bound to a
BD. For more information and configuration details, refer to Bridge Domains.
Configuration considerations
The following are
some common rules to consider in configuring logical interfaces:
By default, when
the LIF is created it is configured as "no shutdown."
By default, when
the LIF is created, it is "tagged" unless it is explicitly configured with the
"untagged" option.
Allowed LIF service
instance ID ranges are from 1 through 12288.
An LIF service
instance ID has no correlation to the VLAN ID of the LIF.
Each
physical/LAG-based LIF must have an associated VLAN configured or else it will
not be usable when the user attempts to add it to a service (such as VPLS, Layer
2). Such a configuration request to add the LIF to a service will be rejected.
Once the LIF is
associated with a Layer 2 service, its VLAN value cannot be changed or deleted
unless it is first removed from the associated service. In case the LIF is not
yet associated to a service, the user is free to remove the VLAN configuration
or change the VLAN assignment.
The no option to the logical-interface command
can be applied at any time.
The "untagged"
configuration is allowed for only one LIF under the same physical port or LAG.
If one LIF is already configured as untagged, all subsequent attempts on the
same physical port or LAG are rejected.
Once the "untagged"
option is selected, it will only have one VLAN as the next classification
option. There is no dual-tag support for the untagged case.
In order to
configure an untagged LIF, the main interface must be configured as "switchport
mode trunk-no-default-native". If it is configured set to regular trunk mode,
the native VLAN is already associated with a regular Layer 2 VLAN LIF and no
explicit untagged LIF can be configured on that interface.
Once the LIF is
associated with a service (Layer 2) such as a bridge domain, its
"untagged/tagged" configuration cannot be changed. The service instance or its
current VLAN classification must be deleted by the user first and then added
back with the proper "untagged/tagged" option.
VLANs 4091 through
4095 are reserved VLANs and these should not be used as the VLAN ID for either
the inner or outer VLAN of the LIF.
The VLAN specified
under the LIF ensures that such a VLAN is not already configured under the
switchport command for a
regular Layer 2 allowed VLAN.
If the interface
is already configured as "switchport access," then it is not allowed to be
configured with LIF. The reverse condition is also not allowed: the interface cannot
be changed to mode access if a LIF is still configured under the main interface.