Riverstone Networks WICT1-12 User Manual

Page 347

Advertising
background image

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

MPLS Configuration

Configuring L3 Label Switched Paths

The following is the configuration for router R5:

! Create interfaces

interface create ip 30net address-netmask 30.1.1.1/16 port et.1.2

interface create ip 33net address-netmask 33.1.1.1/16 port et.1.5

interface create ip 20net address-netmask 20.1.1.1/16 port et.5.1

interface add ip lo0 address-netmask 98.1.1.1/16

! Configure router

ip-router global set autonomous-system 64977

ip-router global set router-id 98.1.1.1

! Configure OSPF

ospf create area backbone

ospf add interface all to-area backbone

ospf start

! Enable MPLS on all interfaces

mpls add interface all

! Create explicit path 57 (primary path to 100.1.1.1)

mpls create path 57

! Create explicit path 567 with 3 hops (secondary path to 100.1.1.1)

mpls create path 567 num-hops 3

mpls set path 567 hop-num 1 ip-addr 30.1.1.1

mpls set path 567 hop-num 2 ip-addr 30.1.1.2

mpls set path 567 hop-num 3 ip-addr 31.1.1.2

! Create dynamic LSP L1 to egress router 100.1.1.1 w/ primary, secondary paths

mpls create label-switched-path L1 to 100.1.1.1 no-cspf

mpls set label-switched-path L1 primary 57 adaptive

mpls set label-switched-path L1 secondary 567 adaptive standby

! Create dynamic LSP L2 to egress router 20.1.1.2

mpls create label-switched-path L2 to 20.1.1.2 adaptive no-cspf

! Start MPLS on router R5

mpls start

! Configure RSVP

rsvp add interface all

rsvp start

Advertising