Riverstone Networks WICT1-12 User Manual

Page 407

Advertising
background image

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

MPLS Configuration

Configuring L2 Tunnels

R4 is a transit LSR with interfaces to R3 and R5. The following is the configuration for R4:

Two LSPs are configured on R5. The LSP from R5 to R1 is configured with a loose explicit path of 2 hops and is
restricted to traffic destined for the 124.2.0.0/16 subnet. The LSP from R5 to R3 is configured with a primary and
secondary path. The primary path is a strict explicit path of 3 hops (R5, R4, R3) and the secondary path is a strict
explicit path of 5 hops (R5, R6, R1, R2, R3). The following is the configuration for R5:

! Create VLANs and interfaces

vlan create rsvp_vlan1 ip id 140

vlan add ports gi.3.2 to rsvp_vlan1

interface create ip to_rs3 address-netmask 110.1.1.2/16 port gi.3.1

interface create ip to_rs5 address-netmask 100.1.1.2/16 vlan rsvp_vlan1

interface add ip lo0 address-netmask 111.1.1.4/32

! Configure OSPF

ip-router global set router-id 111.1.1.4

ospf create area backbone

ospf add interface all to-area backbone

ospf add stub-host 111.1.1.4 to-area backbone cost 5

ospf start

! Configure MPLS

mpls add interface to_rs3

mpls add interface to_rs5

mpls start

! Configure RSVP

rsvp add interface to_rs3

rsvp add interface to_rs5

rsvp start

! Configure VLANs and interfaces

vlan create ldp_in1 port-based id 130

vlan create to_rs4_vlan port-based id 140

vlan create to_rs1_only port-based id 60

vlan add ports gi.13.2 to ldp_in1

vlan add ports gi.13.1 to to_rs4_vlan

vlan add ports gi.6.2 to to_rs1_only

interface create ip to_rs6 address-netmask 220.1.1.2/16 vlan ldp_in1

interface create ip to_rs4 address-netmask 100.1.1.1/16 vlan to_rs4_vlan

interface add ip lo0 address-netmask 111.1.1.5/32

! Configure OSPF

ip-router global set router-id 111.1.1.5

ospf create area backbone

ospf add interface lo0 to-area backbone

ospf add interface to_rs6 to-area backbone

Advertising