Riverstone Networks WICT1-12 User Manual

Page 394

Advertising
background image

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

Configuring L2 Tunnels

MPLS Configuration

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

mpls set label-switched-path to_rs5_rsvp primary to_rs5_primary no-cspf retry-interval 5

preference 30

! Start MPLS

mpls start

! Configure RSVP

rsvp add interface to_rs2_1

rsvp add interface to_rs2_second

rsvp start

! Configure LDP

ldp add interface lo0

ldp map ports gi.6.2 customer-id 10

map ports to customer-id 10

ldp map ports gi.2.1 customer-id 10

ldp map ports gi.5.1 customer-id 10

ldp add remote-peer 111.1.1.3

adds R3 as LDP peer

ldp add l2-fec customer-id 10 to-peer 111.1.1.3

send customer-id 10 to R3

ldp add l2-fec customer-id 10 to-peer 111.1.1.5

send customer-id 10 to R5

ldp add remote-peer 111.1.1.5

adds R5 as LDP peer

ldp start

! Configure VLANs and interfaces

vlan create ldp_in1 port-based id 110

vlan create ip_ldp ip id 175

vlan add ports gi.14.1 to ldp_in1

vlan add ports gi.14.2 to ip_ldp

interface create ip to_RS1 address-netmask 200.1.1.2/16 vlan ldp_in1

interface create ip to_RS3 address-netmask 210.1.1.1/16 vlan ip_ldp

interface add ip lo0 address-netmask 111.1.1.2/32

! Configure OSPF

ip-router global set router-id 111.1.1.2

ospf create area backbone

ospf add interface all to-area backbone

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

ospf start

! Configure MPLS

mpls add interface to_RS1

mpls add interface to_RS3

mpls start

! Configure RSVP

rsvp add interface to_RS1

Advertising