Riverstone Networks WICT1-12 User Manual

Page 405

Advertising
background image

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

MPLS Configuration

Configuring L2 Tunnels

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

rsvp start

! Configure LDP

ldp add interface lo0

ldp map ports gi.2.2 customer-id 20

maps port gi.2.2 to customer-id 20

ldp add remote-peer 111.1.1.3

adds R3 as LDP peer

ldp add remote-peer 111.1.1.5

adds R5 as LDP peer

ldp add l2-fec customer-id 20 vlan 50 to-peer 111.1.1.3

sends label mapping for customer-id 20/VLAN

50 to R3

ldp add l2-fec customer-id 20 vlan 60 to-peer 111.1.1.5

sends label mapping for customer-id 20/VLAN

60 to R5

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

rsvp add interface to_RS3

rsvp start

Advertising