Riverstone Networks WICT1-12 Network Router User Manual


 
Riverstone Networks RS Switch Router User Guide Release 8.0 17-91
MPLS Configuration Configuring L2 Tunnels
L2 Tunneling Based on VLAN ID and Port Configuration Examples
The FEC-to-label binding for a virtual circuit can be based on both a customer-specified VLAN ID and the port on
which the traffic arrives. Each combination of VLAN ID and logical customer ID (which represents the incoming port)
is mapped to a single FEC.
Figure 17-20 shows two VLANs with sites that are connected to routers R1 and R3. Port gi.6.1 on R1 and gi.12.1 on
R3 provide access for the VLANs. Each VLAN ID/port combination is mapped to a VC label that is distributed via
LDP. The LSP tunnel can use either LDP or RSVP as the signaling protocol; configuration commands for both LDP
and RSVP tunnel signaling are shown.
Timesaver
Click on the router name (in blue) to see the corresponding configuration.
Figure 17-20 Tunneling of multiple virtual circuits based on port and 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 and gi.6.1 trunk ports
vlan make trunk-port gi.4.1
vlan make trunk-port gi.6.1
! Configure the VLAN cust1 with a VLAN ID of 100
vlan create cust1 port-based id 100
vlan add ports gi.6.1 to cust1
! Configure the VLAN cust2 with a VLAN ID of 200
vlan create cust2 port-based id 200
vlan add ports gi.6.1 to cust2
LSP Tunnel (LDP or RSVP)
gi.6.1
gi.12.1
Virtual Circuit based on Port and VLAN ID 100 (LDP)
R3
R1
111.1.1.1/16 111.1.1.3/16
111.1.1.2/16
R2
Virtual Circuit based on Port and VLAN ID 200 (LDP)
VLAN ID 100
VLAN ID 200
VLAN ID 100
VLAN ID 200
gi.4.1
gi.3.2
gi.14.1 gi.15.1