Riverstone Networks WICT1-12 User Manual

Page 396

Advertising
background image

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

Configuring L2 Tunnels

MPLS Configuration

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:

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

send customer-id mapping to R5

ldp start

! Configure 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 to R4 and R6

vlan make trunk-port gi.12.2

customer ports must be trunk ports for 802.1q packets

vlan create ldp_in1 port-based id 130

vlan create to_rs4_vlan port-based id 140

vlan add ports gi.13.2 to ldp_in1

vlan add ports gi.13.1 to to_rs4_vlan

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

Advertising