OcNOS-SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Command Reference : MPLS Commands : mpls map-route
mpls map-route
Use this command to map a prefix to an FEC.
Use the no parameter with this command to disable this configuration.
Command Syntax
mpls map-route (A.B.C.D/M|A.B.C.D A.B.C.D) (A.B.C.D/M|A.B.C.D A.B.C.D)
no mpls map-route (A.B.C.D/M|A.B.C.D A.B.C.D)
Parameters
A.B.C.D
IPv4 prefix to map
A.B.C.D/M
IPv4 prefix to map, plus mask
A.B.C.D
Mask for IPv4 prefix to map
A.B.C.D/M
Mask for IPv4 prefix to map, plus mask.
A.B.C.D
IPv4 forwarding equivalence class for route to map
A.B.C.D
Mask for IPv4 forwarding equivalence class
Default
By default, mpls map-route is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
In the following examples 5.6.7.8/32 is the FEC for an LSP, and 1.2.3.4 is the prefix to be mapped.
#configure terminal
(config)#mpls map-route 1.2.3.4/32 5.6.7.8/32
 
#configure terminal
(config)#mpls map-route 1.2.3.4 255.255.255.255 5.6.7.8 255.255.255.255
Last modified date: 10/17/2023