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

Example: Configuring an Intermediate Router

For packets labeled 1000123 arriving on interface so-0/0/0, assign the label 1000456, and transmit them to the next-hop router at 12.2.2.2:

[edit]
interfaces {
so-0/0/0 {
unit 0 {
family mpls;
}
}
}
protocols {
mpls {
interface so-0/0/0 {
label-map 1000123 {
next-hop 12.2.2.2;
swap 1000456;
}
}
}
}

To determine whether the static intermediate route is installed, use the following command:

user@host> show route table mpls.0 protocol static

The following is a sample of the output. The swap 1000456 keyword identifies the route.

1000123       *[Static/5] 00:01:48
> to 12.2.2.2 via so-0/0/0, swap 1000456 

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