label-switching

Use this command to either enable label-switching on an interface or to modify the label-space to which this interface is bound.

Use the no parameter and the interface is bound to the platform-wide (zero) label-space.

 

  • When label-switching enabled on VLAN interface, MTU value must be manually increased by at least 20 bytes on Parent interfaces of VLAN. Example, default MTU must be set as 1520 instead of 1500 on label-switching parent interface label switched VLAN interface. (Parent Interface MTU >= label switched VLAN interface MTU + 20).

  • Due to hardware solution restriction, MPLS termination on double-tagged sub-interface is not supported for Qumran1 (Q1) series platforms.

Command Syntax

Copy
label-switching
label-switching <0-60000>
no label-switching

Parameter

<0-60000>

Label space value in this range

Default

Disabled

Command Mode

Interface mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

This example shows the enabling of label switching on the eth0 interface.

Copy
#configure terminal
(config)#interface eth0
(config-if)#label-switching 654