Riverstone Networks WICT1-12 User Manual

Page 350

Advertising
background image

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

Configuring L3 Label Switched Paths

MPLS Configuration

R1 has the following configuration:

! Configure interfaces

interface create ip R1R4 address-netmask 200.135.89.73/26 port gi.2.1

interface create ip R1R2 address-netmask 200.135.89.4/28 port gi.2.2

interface add ip lo0 address-netmask 1.1.1.1/16

mpls add interface all

rsvp add interface all

! Configure OSPF

ip-router global set router-id 1.1.1.1

ospf create area backbone

ospf add interface R1R4 to-area backbone

ospf add stub-host 1.1.1.1 to-area backbone cost 10

ospf add interface R1R2 to-area backbone

ospf start

! Create policies

mpls create policy p1 dst-ipaddr-mask 150.10.0.0/16

mpls create policy p2 dst-ipaddr-mask 160.10.0.0/16

! Create dynamic LSP:
! Create primary path dp1

mpls create path dp1 num-hops 4

mpls set path dp1 hop 1 ip-addr 200.135.89.73 type strict

mpls set path dp1 hop 2 ip-addr 201.135.89.76 type strict

mpls set path dp1 hop 3 ip-addr 201.135.89.130 type strict

mpls set path dp1 hop 4 ip-addr 201.135.89.197 type strict

! Create secondary path dp2l (loose)

mpls create path dp2l num-hops 2

mpls set path dp2l hop 1 ip-addr 200.135.89.4 type loose

mpls set path dp2l hop 2 ip-addr 16.128.11.7 type loose

! Configure dynamic LSP d1

mpls create label-switched-path d1 to 3.3.3.3 no-cspf

mpls set label-switched-path d1 policy p1

mpls set label-switched-path d1 primary dp1 standby no-cspf

mpls set label-switched-path d1 secondary dp2l no-cspf adaptive standby

! Create static LSP s1

mpls create static-path s1 push 70,60,50 gateway 200.135.89.76 to 3.3.3.3

mpls set static-path s1 policy p2

! Start MPLS and RSVP

mpls start

rsvp start

Advertising