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).
See the Usage Guidelines.
Interface subtype configuration mode
Bridge domain configuration mode
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.
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