Riverstone Networks WICT1-12 User Manual

Page 383

Advertising
background image

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

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 restricted to traffic
destined for the 124.2.0.0/16 subnet. The following is the configuration for R3:

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

! Configure VLANs and interfaces

vlan make trunk-port gi.12.2

vlan make trunk-port gi.12.1

vlan create ldp_if1 id 120

vlan create ip_ldp port-based id 175

vlan create cust1 port-based id 100

vlan create cust2 ip id 200

vlan create to_rs1_only ip id 50

vlan add ports gi.12.2 to ip_ldp

vlan add ports gi.14.1,gi.12.2 to cust1

vlan add ports gi.12.1 to ldp_if1

vlan add ports gi.12.1 to cust1

vlan add ports gi.12.2,at.3.1.0.100 to cust2

vlan add ports gi.13.2 to cust2

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

Advertising