Riverstone Networks WICT1-12 User Manual

Page 395

Advertising
background image

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

MPLS Configuration

Configuring L2 Tunnels

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

rsvp add interface to_RS3

rsvp start

! Configures VLANs and interfaces

vlan make trunk-port gi.15.1

customer ports must be trunk ports for 802.1q packets

vlan create ldp_if1 id 120

vlan create ip_ldp port-based id 175

vlan add ports gi.12.2 to ip_ldp

vlan add ports gi.12.1 to ldp_if1

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 add interface ip_local_123 to-area backbone

ospf add interface to_rs38000_internet 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 10

map port gi.15.1 to customer-id 10

ldp add remote-peer 111.1.1.1

adds R1 as LDP peer

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

send customer-id mapping to R1

ldp add remote-peer 111.1.1.5

adds R5 as LDP peer

Advertising