Riverstone Networks WICT1-12 User Manual

Page 382

Advertising
background image

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

Configuring L2 Tunnels

MPLS Configuration

R2 is a transit LSR with interfaces to R1 and R3. The following is the configuration for R2:

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

! Configure tunnel 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 tunnel 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

mpls set label-switched-path to_rs5_rsvp primary to_rs5_primary no-cspf retry-interval 5

preference 30

! Start MPLS

mpls start

! Configure RSVP

rsvp add interface to_rs2

rsvp add interface to_rs6

rsvp start

! Configure LDP

ldp add interface lo0

ldp add remote-peer 111.1.1.3

adds R3 as LDP peer

ldp add remote-peer 111.1.1.5

adds R5 as LDP peer

ldp add l2-fec vlan 100 to-peer 111.1.1.3

send VLAN 100 mapping to R3

ldp add l2-fec vlan 200 to-peer 111.1.1.3

send VLAN 100 mapping to R5

ldp add l2-fec vlan 200 to-peer 111.1.1.5

send VLAN 200 mapping to R3

ldp add l2-fec vlan 100 to-peer 111.1.1.5

send VLAN 200 mapping to R5

ldp start

! Configure interfaces

vlan create ldp_in1 port-based id 110

vlan create ip_ldp ip id 175

vlan add ports gi.14.1 to ldp_in1

vlan add ports gi.14.2 to ip_ldp

interface create ip to_rs1 address-netmask 200.1.1.2/16 vlan ldp_in1

interface create ip to_rs3 address-netmask 210.1.1.1/16 vlan ip_ldp

interface add ip lo0 address-netmask 111.1.1.2/32

! Configure OSPF

ip-router global set router-id 111.1.1.2

ospf create area backbone

Advertising