![Riverstone Networks WICT1-12 User Manual Download Page 369](http://html1.mh-extra.com/html/riverstone-networks/wict1-12/wict1-12_user-manual_1466194369.webp)
Riverstone Networks RS Switch Router User Guide Release 8.0 17-61
MPLS Configuration
Configuring L2 Tunnels
This section describes how to configure the ingress, transit, and egress LSRs for a static L2 LSP, as shown in
Figure 17-13
.
Figure 17-13 Static L2 path (unidirectional)
Ingress LSR Configuration
To configure an L2 static path on R1:
1.
Use the
mpls create l2-policy
command to specify which L2 frames will be subject to label
mapping and forwarding. In addition to specifying the incoming and outgoing ports, you can also
specify the following:
-
destination MAC address or mask
-
source MAC address or mask
-
VLAN ID
-
802.1p priority of the incoming packet
2.
Use the
mpls create l2-static-path
command to configure the next hop MAC address and
one or more label values to be added (
pushed
) onto the top of the label stack.
3.
Use the
mpls set l2-static-path
command to apply the L2 policy to the L2 static path.
For example, the following commands create the static path TO-R3 for frames with the source MAC address
000000:01e000 received on port gi.2.1.
! Create policy P1 for frames with source MAC 000000:01e000 and VLAN ID 1
mpls create l2-policy P1 dst-mac any src-mac 000000:01e000 vlan 1 in-port-list gi.2.1
out-port-list gi.3.1
! Create static path TO-R3 to MAC a000285:057900 with label ‘100’ pushed onto the top of the label stack
mpls create l2-static-path TO-R3 next-hop-mac 000285:057900 push 100
! Apply L2 policy P1 to L2 static path TO-R3
mpls set l2-static-path TO-R3 policy P1
R1
R2
R3
gi.2.1
gi.3.1
gi.5.1
gi.6.1
gi.4.1
gi.7.1
Label = 100
Label = 200
Label removed
Ingress LSR
Transit LSR
Egress LSR