Riverstone Networks WICT1-12 User Manual

Page 338

Advertising
background image

17-30 Riverstone Networks RS Switch Router User Guide Release 8.0

Configuring L3 Label Switched Paths

MPLS Configuration

At router R2, packets arriving on interface MPLS-R2IN that are labeled ‘50’ are assigned the label ‘100’ and
forwarded to the next-hop router (R3) at 20.1.1.2. Note the

mpls set interface

command in the following

configuration for R2:

Router R3 is the egress label edge router in the path. At the egress router, the label is stripped off before the packet is
forwarded to its next destination. At router R3, the packets arriving on interface MPLS-R3IN that are labeled ‘100’
will have the label stripped off before the packets are sent to the next-hop. Router R3 has the following configuration:

In the above example, a policy is defined at the ingress router (R1) to filter traffic that is directed onto the static path.
There are other ways that you can send traffic on a path, including IGP shortcuts. (See

Section 17.7.3, "IGP

Shortcuts."

)

You can use the

mpls show static-paths

command to display the MPLS static path information. On router R1,

the following is displayed for the configured static path:

! Create the MPLS interfaces on this router

interface create ip MPLS-R2IN address-netmask 10.1.1.1/16 port. gi.1.1

interface create ip MPLS-R2OUT address-netmask 20.1.1.1/16 port gi.1.2

! Enable MPLS on the router interfaces

mpls add interface MPLS-R2IN

mpls add interface MPLS-R2OUT

! Configure swapping of labels and next-hop

mpls set interface MPLS-R2IN label-map 50 pop next-hop 20.1.1.2

! Enable MPLS on this router

mpls start

! Create the MPLS interfaces on this router

interface create ip MPLS-R3IN address-netmask 20.1.1.1/16 port. gi.1.1

interface create ip MPLS-R3OUT address-netmask 30.1.1.1/16 port gi.1.2

! Enable MPLS on the router interfaces

mpls add interface MPLS-R3IN

mpls add interface MPLS-R3OUT

! Enable MPLS on this router

mpls start

R1#

mpls show static-paths all

Ingress LSP:

LSPname To From State LabelIn LabelOut

SP1 50.1.1.1 7.7.7.7 Up - 50

Advertising