Riverstone Networks WICT1-12 User Manual

Page 401

Advertising
background image

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

MPLS Configuration

Configuring L2 Tunnels

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 and gi.12.1 trunk ports

vlan make trunk-port gi.3.2

vlan make trunk-port gi.12.1

! Configure the VLAN cust1 with a VLAN ID of 100

vlan create cust1 port-based id 100

vlan add ports gi.12.1 to cust1

! Configure the VLAN cust2 with a VLAN ID of 200

vlan create cust2 port-based id 200

vlan add ports gi.12.1 to cust2

Advertising