R3 r1 – Riverstone Networks WICT1-12 User Manual

Page 376

Advertising
background image

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

Configuring L2 Tunnels

MPLS Configuration

L2 Tunneling Based on VLAN ID Configuration Examples

The FEC-to-label binding for a virtual circuit can be based on the VLAN ID assigned to a customer by a service
provider.

Figure 17-16

shows a customer VLAN with an ID of 100, and another customer VLAN with an ID of 200.

The VLANs are mapped to VC labels that are distributed via LDP. LDP-signaling VLANs carry the signaling
necessary to establish the LDP connection. For example, the ports at each end of the link between R1 and R2 are
configured with VLAN ID 110, while the ports at each end of the link between R2 and R3 are configured with VLAN
ID 120. The tunnel LSP can use either LDP or RSVP as the signaling protocol; configuration commands for both LDP
and RSVP signaling are shown.

Timesaver

Click on the router name (in blue) to see the corresponding configuration.

Figure 17-16 Tunneling of multiple virtual circuits based on VLAN ID

The following is the configuration for R1:

! Configure router loopback

interface add ip lo0 address-netmask 111.1.1.1/32

! Make gi.4.1 a trunk port

vlan make trunk-port gi.4.1

! Configure the VLAN cust1 with a VLAN ID of 100

vlan create cust1 port-based id 100

vlan add ports gi.6.1, gi.4.1 to cust1

! Configure the VLAN cust2 with a VLAN ID of 200

vlan create cust2 port-based id 200

vlan add ports gi.3.1,gi.4.1 to cust2

LSP Tunnel (RSVP or LDP)

Customer
VLAN ID 100

Customer
VLAN ID 100

Virtual Circuit based on VLAN ID 100 (LDP)

R3

R1

111.1.1.1/16

111.1.1.3/16

Customer
VLAN ID 200

Customer
VLAN ID 200

111.1.1.2/16

Virtual Circuit based on VLAN ID 200 (LDP)

R2

VLAN 110

VLAN 120

gi.6.1

gi.3.1

gi.4.1 gi.14.1

gi.15.1 gi.3.2

gi.12.1

gi.13.1

Advertising