Riverstone Networks WICT1-12 User Manual

Page 385

Advertising
background image

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

MPLS Configuration

Configuring L2 Tunnels

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:

! 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.13.1

vlan make trunk-port gi.7.2

vlan create cust1 port-based id 100

vlan create ldp_in1 port-based id 130

vlan create to_rs4_vlan port-based id 140

vlan create cust2 ip id 200

vlan add ports gi.12.1,gi.13.2 to cust1

vlan add ports gi.13.2 to ldp_in1

vlan add ports gi.13.1 to to_rs4_vlan

vlan add ports gi.13.1 to cust1

vlan add ports gi.6.1 to cust2

vlan add ports gi.7.2 to cust1

vlan add ports gi.7.2 to ldp_in1

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

! Configure OSPF

ip-router global set router-id 111.1.1.5

ospf create area backbone

ospf add interface lo0 to-area backbone

ospf add interface to_rs6 to-area backbone

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

ospf add interface to_rs4 to-area backbone

ospf start

! Configure MPLS

mpls add interface to_rs6

mpls add interface to_rs4

! Create explicit path to_rs3_primary to R3

mpls create path to_rs3_primary num-hops 3

mpls set path to_rs3_primary ip-addr 100.1.1.1 type strict hop 1

mpls set path to_rs3_primary ip-addr 100.1.1.2 type strict hop 2

Advertising