logical-interface

Configures a logical interface on a physical port or a port-channel (LAG) on an edge port, entering LIF configuration mode, and optionally binds the interface to a bridge domain (BD).

Syntax

logical-interface { ethernet slot/port.service_instance | port-channel num.service_instance }
no logical-interface { ethernet slot/port.service_instance | port-channel num.service_instance }

Command Default

See the Usage Guidelines.

Parameters

ethernet slot/port
Specifies an Ethernet interface.
port-channel num
Specifies a port-channel interface.
service_instance
Specifies a service instance ID. Range is from 1 through 12288.

Modes

Interface subtype configuration mode

Bridge domain configuration mode

Usage Guidelines

The following are some common rules to consider in configuring logical interfaces:

The no version of the command removes the LIF from the BD configuration. This can be applied any time if the LIF is not yet associated with (bound to) a service. If it is already associated with a service, the LIF is also implicitly removed from the BD configuration.

Examples

The following example sets "trunk-no-default-native" mode on an Ethernet interface, so that an untagged LIF can be configured on service instance 120.

device(config)# interface ethernet 2/6
device(conf-if-eth-2/6)# switchport mode trunk-no-default-native
device(conf-if-eth-2/6)# logical-interface ethernet 2/6.120
device(conf-if-eth-lif-2/6.120)#

The following examples illustrate how up to command options can be configured in a single line.

device(conf-if-eth-2/6)# logical-interface ethernet 2/6.120 name myLIF120
device(conf-if-eth-lif-2/6.120)#

device(conf-if-eth-2/6)# logical-interface ethernet 2/6.120 vlan 120
device(conf-if-eth-lif-2/6.120)#

The following example sets "trunk-no-default-native" mode on a port-channel (LAG) interface, so that an untagged LIF can be configured on service instance 3.

device(config)# int port-channel 10
device(config-port-channel-10)# switchport mode trunk-no-default-native
device(config-port-channel-10)# logical-interface port-channel 10.3
device(config-if-po-lif-10.3)# untagged vlan 3

The following example shows how to create a logical Ethernet interface service instance (1/5.10) and bind it to bridge domain 4 by means of the bridge-domain command.

device# configure terminal
device(config)# interface ethernet 1/5
device(conf-if-eth-1/5)# logical-interface ethernet 1/5.10
device(conf-if-eth-lif-1/5.10)# vlan 50
device(conf-if-eth-lif-1/5.10)# exit

device(config)# bridge-domain 4
device(config-bridge-domain-4)# logical-interface ethernet 1/5.10

The following example shows how to bind a logical port-channel interface service instance (2.200) to bridge domain 4 by means of the bridge-domain command.

device# configure terminal
device(config)# bridge-domain 4
device(config-bridge-domain-4)# logical-interface port-channel 2.200

The following example shows the error message that displays when an attempt is made to bind a logical interface that was not previously created to a bridge domain.

device# configure terminal
device(config)# bridge-domain 4
device(config-bridge-domain-4)# logical-interface ethernet 1/3.100
Error: Logical Interface not yet created

The following example shows the error message that displays when an attempt is made to bind a logical interface that is previously bound to another bridge domain.

device>enable
device# configure terminal
device(config)# bridge-domain 4
device(config-bridge-domain-4)# logical-interface ethernet 1/3.100
 Error: LIF already Binded