[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring the Ingress Router for Static LSPs

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:

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 

Example: Configuring the Ingress Router

Configure the ingress router for a static LSP that consists of three routers (see Figure 20).

Figure 20: Static MPLS Configuration

Image h1451.gif

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

[Contents] [Prev] [Next] [Index] [Report an Error]