Riverstone Networks WICT1-12 Network Router User Manual


 
17-76 Riverstone Networks RS Switch Router User Guide Release 8.0
Configuring L2 Tunnels MPLS Configuration
R4 is a transit LSR with interfaces to R3 and R5. The following is the configuration for R4:
! Create tunnel LSP to R1
mpls create label-switched-path to_rs1_rsvp to 111.1.1.1 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
! Create tunnel LSP to R5
mpls create label-switched-path to_rs5_rsvp to 111.1.1.5 no-cspf
mpls start
! Configure RSVP
rsvp add interface to_rs2
rsvp add interface to_rs4
rsvp start
! Configure LDP
ldp add interface lo0
ldp add l2-fec vlan 100 to-peer 111.1.1.1
send VLAN 100 mapping to R1
ldp add l2-fec vlan 200 to-peer 111.1.1.1
send VLAN 200 mapping to R1
ldp add remote-peer 111.1.1.1
adds R1 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.5
send VLAN 100 mapping to R5
ldp add l2-fec vlan 200 to-peer 111.1.1.5
send VLAN 200 mapping to R5
ldp start
! Configure interfaces
vlan create rsvp_vlan1 ip id 140
vlan add ports gi.3.2 to rsvp_vlan1
interface create ip to_rs3 address-netmask 110.1.1.2/16 port gi.3.1
interface create ip to_rs5 address-netmask 100.1.1.2/16 vlan rsvp_vlan1
interface add ip lo0 address-netmask 111.1.1.4/32
! Configure OSPF
ip-router global set router-id 111.1.1.4
ospf create area backbone
ospf add interface all to-area backbone
ospf add stub-host 111.1.1.4 to-area backbone cost 5
ospf start
! Configure MPLS
mpls add interface to_rs3
mpls add interface to_rs5
mpls start