Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


swap (protocols mpls)


Hierarchy Level


Remove the label at the top of the label stack and replace it with the specified label. Manually assigned incoming labels can have values from 1,000,000 through 1,048,575. This statement is used to configure static LSPs at transit routers.


out-label—Manually assigned outgoing label value.

  • Range: 0 through 1,048,575

  • Default: If you do not define the out-label option, the original label value remains unchanged.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.