The interface must exist in the system before it can be configured as an MPLS interface; see the 7705 SAR Router Configuration Guide for more information.
Once the MPLS protocol instance is created, the no shutdown command is not required since MPLS is administratively enabled upon creation. Configure the label-map parameters if the interface is used in a static LSP.
Use the following CLI syntax to configure an MPLS interface on a router:
config>router>mpls
interface ip-int-name
admin-group group-name [group-name...(up to 5 max)]
label-map in-label
pop
swap out-label next-hop ip-address
no shutdown
srlg-group group-name [group-name...(up to 5 max)]
te-metric value
no shutdown
config>router# mpls
config>router>mpls# interface
to-104
config>router>mpls>if# label-map
35
config>router>mpls>if>label-map# swap 36 next-hop 10.10.10.91
config>router>mpls>if>label-map# no shutdown
config>router>mpls>if>label-map# exit
config>router>mpls>if#
srlg-group ‟SRLG_fiber_1”
config>router>mpls>if#
no shutdown
config>router>mpls# exit
The following example displays the interface configuration output.
A:ALU-1>config>router>mpls# info
----------------------------------------------
interface "to-104"
admin-group "green"
admin-group "red"
admin-group "yellow"
label-map 35
swap 36 nexthop 10.10.10.91
no shutdown
srlg-group "SRLG_fiber_1"
exit
exit
no shutdown