The ingress router checks the IP address in the incoming packet’s destination address field and, if it finds a match in the routing table, applies the label associated with that address to the packets. The label has forwarding information associated with it, including the address of the next-hop router, and the route preference and CoS values.
To configure static LSPs on the ingress router, include the static-path statement:
-
static-path inet {
-
-
prefix {
-
class-of-service value;
-
double-push bottom-label top-label;
-
next-hop (address | interface-name | address/interface-name);
-
preference preference;
-
push out-label;
-
triple-push bottom-label middle-label top-label;
- }
- }
You can include this statement at the following hierarchy levels:
The next-hop and push statements are required; the other statements are optional.
Each static-path statement consists of the following parts:
Criteria to use to analyze an incoming packet:
Label properties applied to the packet in the LSP, which are defined by the following statements:
A label is a 20-bit integer, so it can be a number from 0 through 1,048,575 (220– 1). Labels 0 through 999,999 are for internal use. Labels 1,000,000 through 1,048,575 are unassigned by the JUNOS software and are available for static LSPs. When you configure static LSPs, you can use only this range of labels.
To determine whether a static ingress route is installed, use the command show route table inet.0 protocol static. The following is sample output. The push keyword identifies that a label is to be added in front of an IP packet.
10.0.0.0 *[Static/5] 00:01:48 > to 11.1.1.1 via so-0/0/0, push 1000123
Configure the ingress router for a static LSP that consists of three routers (see Figure 20).
Figure 20: Static MPLS Configuration

For packets addressed to 10.0.0.0, assign label 1000123 and transmit them to the next-hop router at 11.1.1.1:
- [edit]
- interfaces {
-
- so-0/0/0 {
-
- unit 0 {
- family mpls;
- }
- }
- }
- protocols {
-
- mpls {
-
- static-path inet {
-
- 10.0.0.0 {
- next-hop 11.1.1.1;
- push 1000123;
- }
- }
- interface so-0/0/0;
- }
- }
To determine whether the static ingress route is installed, use the following command:
- user@host> show route table inet.0 protocol
static
The following is a sample of the output. The push 1000123 keyword identifies the route.
10.0.0.0/8 *[Static/5] 00:01:48 > to 11.1.1.1 via so-0/0/0, push 1000123