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.
Note: When label-switching enabled on subinterface/VLAN interface, MTU value must be manually increased by at least 20 bytes on both Parent interface and suinterface/VLAN interface. Example, default MTU must be set as 1520 instead of 1500 on label-switching enabled interface and its parent. (Subinterface/VLAN interface MTU >= 1520, Parent Interface MTU >= Subinterface/VLAN interface MTU).
Command Syntax
label-switching
label-switching <0-60000>
no label-switching
Parameter
<0-60000>
Label space value in this range
Default
By default, label switching is 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.
#configure terminal
(config)#interface eth0
(config-if)#label-switching 654
Last modified date: 07/17/2023