Riverstone Networks WICT1-12 User Manual

Page 393

Advertising
background image

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

MPLS Configuration

Configuring L2 Tunnels

Two LSPs are configured on R1. The LSP from R1 to R5 is configured with a strict explicit path of 3 hops (R1, R6,
and R5) and is restricted to traffic destined for the 152.1.0.0/16 subnet. The LSP from R1 to R3 is configured with a
loose explicit path of 2 hops. The following is the configuration for R1:

! Configure VLANs and interfaces

vlan make trunk-port gi.2.1

customer ports must be trunk ports for 802.1q packets

vlan make trunk-port gi.6.2

customer ports must be trunk ports for 802.1q packets

vlan make trunk-port gi.5.1

customer ports must be trunk ports for 802.1q packets

vlan create ldp_in port-based id 110

vlan create ldp_in2 port-based id 120

vlan add ports gi.4.2 to ldp_in2

vlan add ports gi.4.1 to ldp_in

interface create ip to_rs2_1 address-netmask 200.1.1.1/16 vlan ldp_in

LDP-signaling VLAN interface

interface create ip to_rs2_second address-netmask 201.1.1.1/16 vlan ldp_in2

LDP-signaling VLAN

interface

interface add ip lo0 address-netmask 111.1.1.1/32

! Configure OSPF

ip-router global set router-id 111.1.1.1

ospf create area backbone

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

ospf add interface to_rs2_1 to-area backbone

ospf add interface to_rs2_second to-area backbone

ospf add interface ip_to_rs3000 to-area backbone

ospf start

! Configure MPLS

mpls add interface to_rs2_1

mpls add interface to_rs2_second

! Configure explicit path p1 to R3

mpls create path p1 num-hops 2

mpls set path p1 ip-addr 200.1.1.1 type loose hop 1

mpls set path p1 ip-addr 210.1.1.2 type loose hop 2

! Configure explicit path to R5

mpls create path to_rs5_primary num-hops 3

mpls set path to_rs5_primary ip-addr 201.1.1.1 type strict hop 1

mpls set path to_rs5_primary ip-addr 201.1.1.2 type strict hop 2

mpls set path to_rs5_primary ip-addr 220.1.1.2 type strict hop 3

! Configure LSP to R3 with explicit path p1

mpls create label-switched-path to_rs3_rsvp to 111.1.1.3 no-cspf preference 10

mpls set label-switched-path to_rs3_rsvp primary p1 no-cspf retry-interval 5 mtu 1000

! Configure LSP to R5

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

mpls create policy dip_to_rs5 dst-ipaddr-mask 152.1.0.0/16

mpls set label-switched-path to_rs5_rsvp policy dip_to_rs5

Advertising