Figure 17-8 l3 static label switched path -29 – Riverstone Networks WICT1-12 User Manual

Page 337

Advertising
background image

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

MPLS Configuration

Configuring L3 Label Switched Paths

Timesaver

Click on the router name (in blue) to see the corresponding configuration.

Figure 17-8 L3 static label switched path

Router R1 has the CLI configuration shown below. Note the

push

parameter in the

mpls create static-path

command, which assigns the label ‘50’ to packets destined for 50.1/16.

! Create the MPLS interface on this router

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

! Enable MPLS on the router interfaces

mpls add interface MPLS-R1OUT

! Create a policy to filter traffic to 50.1.0.0/16

mpls create policy POL1 dst-ipaddr-mask 50.1.0.0/16

! Create the static path and assign the label 50 to packets that will travel this path

mpls create static-path SP1 to 50.1.1.1 push 50 gateway 10.1.1.2

! Apply the policy POL1 to this static path

mpls set static-path SP1 policy POL1

! Enable MPLS on this router

mpls start

Ingress LSR

Egress LSR

to 50.1/16
network

IP traffic
to 50.1/16
network

Intermediate/

PHP LSR

10.1.1.1

10.1.1.2

20.1.1.1

20.1.1.2

30.1.1.1

Label = 50

Label removed

gi.1.1

gi.1.1

gi.1.2

gi.1.1

gi.1.2

R1

R2

R3

Advertising