OcNOS-SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Command Reference : MPLS Commands : mpls ilm-entry swap
mpls ilm-entry swap
Use this command to create an ILM entry in the ILM table to which a swap incoming interface is bound. Upon receipt of a labeled packet on an MPLS-enabled router, a lookup is done based on the incoming label in the ILM table. If a match is found, the packet may either be label-switched downstream, or popped and passed over IP.
Use the no option with the command to delete an ILM entry. If there is no match, an error message displays.
Note: Only global label space is supported and per interface label space is not supported. MPLS core with IPv6 is not supported.
Command Syntax
mpls ilm-entry <16-1048575> (IFNAME|) swap <16-1048575> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
no mpls ilm-entry <16-1048575> (IFNAME|) swap <16-1048575> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
mpls ilm-entry <16-1048575> (IFNAME|) swap <16-1048575> IFNAME X:X::X:X X:X::X:X/M
no mpls ilm-entry <16-1048575> (IFNAME|) swap <16-1048575> IFNAME X:X::X:X X:X::X:X/M
Parameters
<16-1048575>
Incoming label value range <16-1048575>
IFNAME
Incoming interface name
swap
Specify swap for the incoming label
<16-1048575>
Configure an outgoing label with a value from <16-1048575>
Note: A value of 2 indicates explicit NULL and a value of 3 indicates implicit NULL.
IFNAME
Outgoing interface name
A.B.C.D
 
Nexthop IPv4 address
A.B.C.D
The FEC for which this ILM entry is created
A.B.C.D/M
The FEC for which this ILM entry is created, plus mask
A.B.C.D
A mask for forwarding equivalence class mask
X:X::X:X/M
IPv6 FEC for which this ILM entry is being created, plus mask
X:X::X:X
Nexthop IPv6 address
Default
By default, mpls ilm-entry are disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls ilm-entry 16 eth1 swap 17 eth2 1.1.1.1 1.1.1.1/3
Last modified date: 10/17/2023