Riverstone Networks WICT1-12 User Manual

Page 406

Advertising
background image

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

Configuring L2 Tunnels

MPLS Configuration

Two LSPs are configured on R3: one is from R3 to R5, while the other is from R3 to R1 and restricted to traffic destined
for the 124.2.0.0.16 subnet. The following is the configuration for R3:

! Create VLANs and interfaces

vlan create ldp_if1 id 120

vlan create ip_ldp port-based id 175

vlan create to_rs1_only ip id 50

vlan add ports gi.12.2 to ip_ldp

vlan add ports gi.12.1 to ldp_if1

vlan add ports gi.15.1 to to_rs1_only

interface create ip to_rs2 address-netmask 210.1.1.2/16 vlan ip_ldp

interface create ip to_rs4 address-netmask 110.1.1.1/16 vlan ldp_if1

interface add ip lo0 address-netmask 111.1.1.3/32

! Configure OSPF

ip-router global set router-id 111.1.1.3

ospf create area backbone

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

ospf add interface to_rs2 to-area backbone

ospf add interface to_rs4 to-area backbone

ospf start

! Configure MPLS

mpls add interface to_rs2

mpls add interface to_rs4

mpls create label-switched-path to_rs1_rsvp to 111.1.1.1 no-cspf

mpls create label-switched-path to_rs5_rsvp to 111.1.1.5 no-cspf

mpls create policy dip_to_rs1 dst-ipaddr-mask 124.2.0.0/16

mpls set label-switched-path to_rs1_rsvp policy dip_to_rs1

mpls start

! Configure RSVP

rsvp add interface to_rs2

rsvp add interface to_rs4

rsvp start

! Configure LDP

ldp add interface lo0

ldp map ports gi.15.1 customer-id 20

maps port gi.15.1 to customer-id 20

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

sends label mapping for customer-id 20/VLAN

50 to R1

ldp add remote-peer 111.1.1.1

adds R1 as LDP peer

ldp start

Advertising