Riverstone Networks WICT1-12 User Manual

Page 378

Advertising
background image

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

Configuring L2 Tunnels

MPLS Configuration

The following is the configuration for R3:

! If tunnel LSP uses RSVP:

mpls add interface to_r1

mpls add interface to_r3

mpls start

rsvp add interface to_r1

rsvp add interface to_r3

rsvp start

! If tunnel LSP uses LDP:

mpls add interface to_r1

mpls add interface to_r3

mpls start

ldp add interface to_r1

ldp add interface to_r3

ldp start

! Configure IGP (in this example, OSPF is the IGP)

ip-router global set router-id 111.1.1.2

ospf create area backbone

ospf add interface all to-area backbone

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

ospf start

! Configure router loopback

interface add ip lo0 address-netmask 111.1.1.3/32

! Make gi.3.2 a trunk port

vlan make trunk-port gi.3.2

! Configure the VLAN cust1 with a VLAN ID of 100

vlan create cust1 port-based id 100

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

! Configure the VLAN cust2 with a VLAN ID of 200

vlan create cust2 port-based id 200

vlan add ports gi.13.1, gi.3.2 to cust2

! Configure LDP peers and label bindings

ldp add interface lo0

ldp add remote-peer 111.1.1.1

adds R1 as LDP peer

ldp add l2-fec vlan 100 to-peer 111.1.1.1

sends label mapping for VLAN ID 100 to R1

ldp add l2-fec vlan 200 to-peer 111.1.1.1

sends label mapping for VLAN ID 200 to R1

ldp start

Advertising