Sei sulla pagina 1di 24

Operation Manual VLL Quidway S8500 Series Routing Switches

Table of Contents

Table of Contents
1.1 MPLS L2VPN Overview ....................................................................................................1 1.1.1 Introduction to MPLS L2VPN...................................................................................1 1.1.2 Packet Forwarding...................................................................................................2 1.1.3 Implementation........................................................................................................3 1.2 CCC MPLS L2VPN Configuration......................................................................................5 1.2.1 Configuring CCC MPLS L2VPN...............................................................................5 1.2.2 CCC MPLS L2VPN Configuration Example.............................................................7 1.3 Martini MPLS L2VPN Configuration..................................................................................11 1.3.1 Configuring Martini MPLS L2VPN..........................................................................11 1.3.2 Martini MPLS L2VPN Configuration Example........................................................12 1.4 Kompella MPLS L2VPN Configuration.............................................................................16 1.4.1 Configuring Kompella MPLS L2VPN......................................................................16 1.4.2 Kompella MPLS L2VPN Configuration Example....................................................18 1.5 Displaying and Debugging MPLS L2VPN.........................................................................22 1.6 Troubleshooting MPLS L2VPN.........................................................................................23

Huawei Technologies Proprietary i

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

MPLS L2VPN
Note: L2VPN mentioned in the following section refers to the L2VPN implemented through virtual leased line (VLL).

1.1 MPLS L2VPN Overview


1.1.1 Introduction to MPLS L2VPN
MPLS L2VPN provides MPLS network-based Layer 2 VPN services. For users, an MPLS L2VPN is a Layer 2 switched network, through which Layer 2 connections can be established between network nodes.
CE VPN A CE PE VC P LSP P PE VPN B CE CE VPN B PE VC VPN A

Figure 1.1 MPLS L2VPN MPLS L2VPN has the following advantages:

Multiple network layer protocols supported, such as IP, IPv6, IPX, and SNA. Powerfulextensibility. MPLS L2VPN only establishes Layer 2 connections, rather than imports and manages the routing information. This eases work load of PE (provider edge) devices and the entire SP (service provider) network remarkably and thus enables SPs to provide more VPNs and accommodate more users.

Reliability and privacy of user routes. As no user routing information is imported, there is no need for MPLS L2VPN to obtain and process the information, ensuring the privacy of user routes.

Error: Reference source not found illustrates the structure of an MPLS L2VPN packet.

Huawei Technologies Proprietary 1

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

Tunnel label label

VC label label

Label Stack Stack

L2 PDU PDU

Figure 1.2 Structure of an MPLS L2VPN packet The fields in an MPLS L2VPN packet are described as follows: Tunnel label (the outer label) is an MPLS lable or a GRE label. It is used to transmit a packet from one PE to anther. VC label (the inner label) is a lower layer label used to identify the links between PEs and CEs. Packets of MPLS L2VPNs implemented through circuit cross connect (CCC) do not contain this label. Data in MPLS L2VPN can be encapsulated as Ethernet or VLAN packets at the data link layer. At present, data of different nodes in a VPN must be encapsulated as the same type of packets.

1.1.2 Packet Forwarding


In an MPLS L2VPN, CE, PE, and P operate in the same way as those in a BGP/MPLS VPN. That is, they also forward packets in an MPLS network transparently by using label stacks. To forward packets in an MPLS L2VPN, tunnels must be established first between PEs (this can be achieved by either manual configuration or signaling protocols). When the interfaces connecting PEs and CEs are up, PEs insert VC labels for packets sent by CE, and then mark them with tunnel labels. On receiving these packets, the remote PEs strip off the tunnel labels and send the packets to the corresponding CEs according to their VC labels. Error: Reference source not found illustrates changes of the label stack of a packet during the forwarding.

Huawei Technologies Proprietary 2

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

CE1

PE1

PE2

CE2

L2 PDU

T V L2 PDU

V L2 PDU

L2 PDU

L2 PDU: Data link layer packet T: Tunnel label V: VC label

Figure 1.3 Label stack processing of MPLS L2VPN

1.1.3 Implementation
At present, the official standard for MPLS L2VPN has not been established yet. However, the PPVPN (Provider-provisioned Virtual Private Network) group of IETF (Internet Engineering Task Force) defines multiple framework drafts, two of which are commonly used. They are known as Martini draft and Kompella draft. Till May, 2005, they are depicted in the following documents respectively: draft-martini-l2circuit-trans-m pls-09.txt draft-kompella-ppvpn-l2vpn-02.txt Martini draft defines the way to implement MPLS L2VPN by establishing point-to-point links. Here, LDP (label distribution protocol) is used as the signaling protocol to exchange VC labels. This kind of MPLS L2VPNs is known as Martini MPLS L2VPNs. Kompella draft defines how to establish MPLS L2VPNs in MPLS networks through endto-end (CE-to-CE) connections. At present, BGP (border gateway protocol) is used as the signaling protocol to propagate the information about Layer 2 reachability and VC labels. This kind of MPLS L2VPNs is known as Kompella MPLS L2VPN. Also, you can establish MPLS L2VPNs without signaling protocols. In this case, MPLS L2VPN services are provided through statically configured VC labels. An example of this is CCC, which implement MPLS L2VPNs through static configuration. Error: Reference source not found describes the features and implementation ways of the above three types of MPLS L2VPNs.

Huawei Technologies Proprietary 3

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

3.1 Features and implementation ways of the three types of MPLS L2VPNs VPN type CCC Implementation Configures static LSPs to implement MPLS L2VPN. You sending packets must and manually receiving for configure two LSPs (for respectively) Feature Data is transmitted through packets with single-layer labels. LSPs are used exclusively. No signaling is needed to transmit the Layer 2 VPN information. Only MPLS forwarding is required. In this way, CEs of different SPs can be interconnected easily.

each CCC connection node by node (including PEs and Ps). The configured LSPs can only be used of to the CCC transmit packets

corresponding connections. Martini

Uses extended LDP as the signaling to transmit the VC information. Uses VC-TYPE and VC-ID to identify VCs. VC-TYPE indicates the encapsulation type of data link layer, and VC-ID uniquely identifies a VC. PEs connecting VC CEs labels CEs exchange the

Local switching like CCC is not available. An LSP can be shared by multiple VCs.

through LDPs. They bind corresponding through VC-IDs.

Huawei Technologies Proprietary 4

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

VPN type Kompella

Implementation Similar to Layer 3 BGP/MPLS VPN defined in RFC2547. PEs discover Layer 2 VPN nodes through automatically IBGP sessions

Feature Users can assign extra labels to VPNs for future use. This eases the configuration work loads of VPN deployment and capacity expansion. Vpn-target is used to identify VPNs. This brings great flexibility for VPN networking. Connections between CEs are not concerned. This type of MPLS L2VPN is implemented by dividing the entrie SP network into different VPNs and numbering these CEs in the VPNs. To establish a to connection between two CEs, you need to set the local CE ID and the remote CE ID on the PE, and specify the Circuit ID assigned CE. for the connection by the local

established between them. They also propagate the VPN information. Labels are distributed in the form of label blocks, which enables multiple connections being assigned tags simultaneously. The size of a tag block is determined by CE range (user-configurable). Vpn-target is used differentiate VPNs.

Note:

You also can configure LSPs without P devices.

1.2 CCC MPLS L2VPN Configuration


1.2.1 Configuring CCC MPLS L2VPN
3.2 Configure CCC MPLS L2VPN Configuration step Enter system view Configure LASR ID Command system-view mpls lsr-id X.X.X.X Required Description

Huawei Technologies Proprietary 5

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

Configuration step Enable MPLS Create the egress for the static LSP mpls

Command

Description Required Required. Before configuring a CCC connection, you need to configure two static LSPs between the two PEs and all P routers in between for bidirectional packets. Refer to corresponding sections in the command manual for more information about these commands and corresponding undo commands.

static-lsp egress lsp-name l2vpn incoming-interface vlan-interface vlan-id inlabel in-label static-lsp ingress lsp-name l2vpn nexthop next-hopaddr out-label out-label static-lsp transit lsp-name l2vpn incoming-interface vlan-interface vlan-id inlabel in-label { nexthop next-hop-addr | outgoinginterface vlan-interface vlan-id } out-label out-label quit

Create the ingress for the static LSP Create the transit for the static LSP

Quit MPLS view and enter system view Enable L2VPN MPLS

mpls l2vpn ccc ccc-connection-name interface vlan-interface vlan-id out-interface ccc ccc-connection-name interface vlan-interface vlan-id transmit-lsp transmit-lsp-name receivelsp receive-lsp-name

Required Required. Two types of CCC connections exist: local CCC connection and remote CCC connection. A local CCC connection is established between two local CEs. It can be switched directly by the PE without being configured a static LSP. A remote CCC connection is established between the local CE and a remote CE. The two CEs are attached to different PEs. In this case, you need to configure two static LSPs for bidirectional packets transmitted between the two PEs.

Establish local CCC connection Establish remote CCC connection

Huawei Technologies Proprietary 6

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

Caution:

In L2VPN, you can configure only one virtual circuit for each VLAN interface. L2VPN supports VLAN interfaces only. When you configure an L2VPN on a VLAN interface, data is encapsulated as Ethernet packets by default. You must use cards with the silk screen of CA (such as LSB2FT48CA) for CCC MPLS L2VPN. You can configure only one VLAN on the access side of each VPN private network. Each VLAN can have only one interface, and all the VLANs connecting to the interface must have IGMP disabled.

You must configure two static LSPs for each remote CCC connection. Two CCC connections cannot share one static LSP. A static LSP used by a remote CCC connection cannot be used for other purposes (such as carrying IP packets and BGP/MPLS VPN packets). When you configure a static LSP for a CCC connection, the next hop must be the IP address from which the ARP packets are learnt.

1.2.2 CCC MPLS L2VPN Configuration Example


I. Network requirements
CEs and the corresponding PEs shown in Error: Reference source not found are interconnected through their GigabitEthernet ports. Data is encapsulated as Ethernet packets at the data link layer. A local connection is required between CE-A and CE-B, and a remote connection between CE-A and CE-C.

II. Network diagram


CE B Local connection VLAN2 13 VLAN2 11 CE A VLAN2 12 P PE A VLAN2 11 VLAN2 14 VLAN2 12 P VLAN2 12 PE B VLAN2 11 CE C

Remote connection

Figure 1.4 Network diagram for CCC MPLS L2VPN

Huawei Technologies Proprietary 7

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

III. Configuration procedure


Configure PE-A. # Enable MPLS globally.
[Quidway] mpls lsr-id 1.1.1.1 [Quidway] mpls

# Enable MPLS L2VPN globally.


[Quidway] mpls l2vpn

# Configure VLAN 211.


[Quidway] vlan 211 [Quidway-vlan211] port gigabitethernet 2/1/1 [Quidway-Vlan211] interface vlan 211 [Quidway-Vlan-interface211] quit

# Configure VLAN 212.


[Quidway] vlan 212 [Quidway-vlan212] port gigabitethernet 2/1/2 [Quidway-vlan212] interface vlan 212 [Quidway-Vlan-interface212] quit

# Configure VLAN 213.


[Quidway] vlan 213 [Quidway-vlan213] port gigabitethernet 2/1/3 [Quidway-vlan213] interface vlan 213 [Quidway-Vlan-interface213] quit

# Enable MPLS on the interface of VLAN 214.


[Quidway] vlan 214 [Quidway-vlan214] port gigabitethernet 2/1/4 [Quidway-vlan214] quit [Quidway] interface vlan-interface 214 [Quidway-Vlan-interface214] ip address 5.5.5.1 24 [Quidway-Vlan-interface214] mpls [Quidway-Vlan-interface214] quit

# Configure the local connection.


[Quidway] ccc local-conn interface vlan-interface 211 outgoing-interface vlan-interface 213

# Configure a static LSP, with the out-label of 100 and the egress interface being the interface of VLAN 214.
[Quidway] mpls [Quidway-mpls] static-lsp ingress PEA-PEB l2vpn nexthop 5.5.5.2 out-label

Huawei Technologies Proprietary 8

Operation Manual VLL Quidway S8500 Series Routing Switches


100

1.1

MPLS L2VPN

# Configure a static LSP, with the in-label of 211 and the ingress interface being the interface of VLAN 214.
[Quidway-mpls] static-lsp egress PEB-PEA l2vpn incoming-interface vlaninterface 214 in-label 211

# Configure the remote connection.


[Quidway] ccc remote-connection interface vlan-interface 212 transmit-lsp PEA-PEB receive-lsp PEB-PEA

Configure PE-B. # Enable MPLS globally.


[Quidway] mpls lsr-id 10.0.0.1 [Quidway] mpls

# Enable MPLS L2VPN globally.


[Quidway] mpls l2vpn

# Configure VLAN 211.


[Quidway] vlan 211 [Quidway-vlan211] port gigabitethernet 2/1/1 [Quidway] interface vlan-interface 211 [Quidway-Vlan-interface211] quit

# Enable MPLS on the interface of VLAN 212.


[Quidway] vlan 212 [Quidway-vlan212] port gigabitethernet 2/1/2 [Quidway-vlan212] quit [Quidway] interface Vlan-interface 212 [Quidway-Vlan-interface212] ip address 6.6.6.1 24 [Quidway-Vlan-interface212] mpls

# Configure a static LSP, with the out-label of 200 and the egress interface being the interface of VLAN 212.
[Quidway-mpls] static-lsp ingress nexthop 6.6.6.2 out-label 200

# Configure a static LSP, with the in-label of 101 and the ingress interface being the interface of VLAN 212.
[Quidway-mpls] static-lsp egress PEA-PEB l2vpn incoming-interface vlaninterface 212 in-label 101

# Configure the remote connection.


[Quidway] ccc remote-connection interface vlan-interface 211 transmit-lsp PEB-PEA receive-lsp PEA-PEB

Configure P.

Huawei Technologies Proprietary 9

Operation Manual VLL Quidway S8500 Series Routing Switches


[Quidway] mpls lsr-id 10.0.0.2 [Quidway] mpls [Quidway] vlan 211 [Quidway-vlan211] port gigabitethernet 2/1/1 [Quidway-vlan211] quit [Quidway] interface Vlan-interface 211 [Quidway-Vlan-interface211] ip address 5.5.5.2 24 [Quidway-Vlan-interface211] mpls [Quidway] vlan 212 [Quidway-vlan212] port gigabitethernet 2/1/2 [Quidway-vlan212] quit [Quidway] interface Vlan-interface 212 [Quidway-Vlan-interface212] ip address 6.6.6.2 24 [Quidway-Vlan-interface212] mpls

1.1

MPLS L2VPN

# Configure a static LSP, with the in-label of 100, the ingress interface being the interface of VLAN 211, the out-label of 101, and the egress interface being the interface of VLAN 212.
[Quidway-mpls] static-lsp transit PEA-PEB l2vpn incoming-intergace vlaninterface 211 in-label 100 nexthop 6.6.6.1 out1going-interface vlan-

interface 212 out-label 101

# Configure a static LSP, with the in-label of 200, the ingress interface being the interface of VLAN 212, the out-label of 211, and the egress interface being the interface of VLAN 211.
[Quidway-mpls] static-lsp transit PEB-PEA l2vpn incoming-interface vlaninterface 212 in-label 200 nexthop 5.5.5.1 out-label 211

Caution: Following must be met to make a local CCC connection to go up:


The interfaces of the two CE are physically up. The encapsulattion types of the interfaces of the two CEs are the same and are supported by the MPLS L2VPN.

For Layer 2 connections with the MPLS L2VPN being VLAN encapsulation, the VLAN IDs of the interfaces of the two CEs can either be the same or different. However, if a trunk is configured between the CEs and the PEs on both sides, the VLAN IDs of the interfaces of the two CEs must be the same.

Huawei Technologies Proprietary 10

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

1.3 Martini MPLS L2VPN Configuration


1.3.1 Configuring Martini MPLS L2VPN
4.1 Configure Martini MPLS L2VPN Configuration step Enter system view Configure the LSR ID Enable MPLS Quit to system view Configure the LDP remote peer Command system-view mpls lsr-id X.X.X.X mpls quit mpls ldp remote-peer index Required Required Required. Before configuring the connection, you need to enable LDP on each router along the connection and configure the LDP remote peer on the peer PE. Refer to LDP Configuration in MPLS module for the configuration related to LDP . Required. To configure a Martini MPLS L2VPN on a PE, you need to provide the IP address (Isr-id) of the peer PE and specify the VC ID. The combination of the VC ID and the encapsulation type must be unique on the PE. Required Description

Quit to system view Enter VLAN interface view Create a Martini MPLS L2VPN virtual connection in VLAN interface view

quit Interface vlan vlan id mpls l2vc ip-address vc-id

Quit to system view Enable L2VPN MPLS

quit mpls l2vpn

Huawei Technologies Proprietary 11

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

Caution:

You must use cards with the silk screen of CA (such as LSB2FT48CA) on the public network access side when configuring Martini MPLS L2VPN. You can configure only one VLAN on the access side of each VPN private network. Each VLAN can have only one interface. And all the VLANs connecting to the interface must have IGMP disabled.

L2VPN supports VLAN interfaces only. When you configure an L2VPN on a VLAN interface, data is encapsulated as Ethernet packets by default.

1.3.2 Martini MPLS L2VPN Configuration Example


I. Network requirements
CEs shown in Error: Reference source not found are in the same VLAN as the corresponding PEs resides in. A remote connection is required between CE-A and CEB.

II. Network diagram


VLAN211 CE A VLAN212 PE A VLAN211 P VLAN212 VLAN211

VLAN212 PE B

CE B

Figure 1.5 Network diagram for Martini MPLS L2VPN

III. Configuration procedure


1) Configure PE-A.

# Configure the LSR ID. Enable MPLS, LDP, and MPLS L2VPN.
[Quidway-A] mpls lsr-id 2.2.2.2 [Quidway-A] mpls [Quidway-A-mpls] quit [Quidway-A] mpls ldp [Quidway-A] mpls l2vpn

# Configure VLAN 212.


[Quidway-A] vlan 212 [Quidway-A-vlan212] port gigabitethernet 2/1/2 [Quidway-A-vlan212]interface vlan 212 [Quidway-Vlan-interface212] quit

Huawei Technologies Proprietary 12

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

# Configure the VLAN interface.


[Quidway-A] vlan 211 [Quidway-A-vlan211] port gigabitethernet 2/1/1 [Quidway-A-vlan211] quit [Quidway-A] interface Vlan-interface 211 [Quidway-A-Vlan-interface211] ip address 168.1.1.1 255.255.0.0 [Quidway-A-Vlan-interface211] mpls [Quidway-A-Vlan-interface211] mpls ldp

# Configure an IP address for the loopback interface, which is used as the router ID.
[Quidway-A] interface loopback 0 [Quidway-A-LoopBack0] ip address 192.1.1.1 255.255.255.255

# Enable OSPF.
[Quidway-A] ospf 1 [Quidway-A-ospf-1] area 0.0.0.0 [Quidway-A-ospf-1-area-0.0.0.0] network 192.1.1.1 0.0.0.0 [Quidway-A-ospf-1-area-0.0.0.0] network 168.1.1.1 0.0.255.255 [Quidway-A-ospf-1-area-0.0.0.0] network 192.2.1.0 0.0.0.255

# Create an LSP tunnel.


[Quidway-A] mpls ldp

# Configure the LDP remote peer.


[Quidway-A] mpls ldp remote-peer 1 [Quidway-A-remote-peer-1] remote-ip 192.1.1.2

# Configure a Martini MPLS L2VPN connection.


[Quidway-A] interface vlan-interface 212 [Quidway-A-Vlan-interface212] mpls l2vc 192.1.1.2 20

2)

Configure PE-B.

# Configure the LSR ID. Enable MPLS, LDP, and MPLS L2VPN.
[Quidway-B] mpls lsr-id 192.1.1.2 [Quidway-B] mpls [Quidway-B-mpls] quit [Quidway-B] mpls ldp [Quidway-B] mpls l2vpn

# Configure VLAN 211.

Huawei Technologies Proprietary 13

Operation Manual VLL Quidway S8500 Series Routing Switches


[Quidway-B] vlan 211 [Quidway-B-vlan211] port gigabitethernet 2/1/1 [Quidway-B-vlan211] interface Vlan-interface 211 [Quidway-Vlan-interface 211] quit

1.1

MPLS L2VPN

# Configure the VLAN interface.


[Quidway-B] vlan 212 [Quidway-B-vlan212] port gigabitethernet 2/1/2 [Quidway-B-vlan212] quit [Quidway-B] interface Vlan-interface 212 [Quidway-B-Vlan-interface212] ip address 169.1.1.1 255.255.0.0 [Quidway-B-Vlan-interface212] mpls [Quidway-B-Vlan-interface212] mpls ldp

# Configure an IP address for the loopback interface, which is used as the LSR ID.
[Quidway-B] interface loopback 0 [Quidway-B-LoopBack0] ip address 192.1.1.2 255.255.255.255

# Enable OSPF.
[Quidway-B] ospf 1 [Quidway-B-ospf-1] area 0.0.0.0 [Quidway-B-ospf-1-area-0.0.0.0] network 192.1.1.2 0.0.0.0 [Quidway-B-ospf-1-area-0.0.0.0] network 169.1.0.0 0.0.255.255 [Quidway-B-ospf-1-area-0.0.0.0] network 192.2.0.0 0.0.0.255

# Create an LSP tunnel.


[Quidway-B] mpls [Quidway-B-mpls] mpls ldp

# Configure the LDP remote peer.


[Quidway-B] mpls ldp remote-peer 1 [Quidway-B-mpls-remote1] remote-ip 192.1.1.1

# Configure a Martini MPLS L2VPN connection.


[Quidway-B] interface vlan-interface 211 [Quidway-B-Vlan-interface211] mpls l2vc 192.1.1.1 20

3)

Configure P.

# Configure the LSR ID. Enable MPLS, LDP, and MPLS L2VPN.
[Quidway-P] mpls lsr-id 192.1.1.3

Huawei Technologies Proprietary 14

Operation Manual VLL Quidway S8500 Series Routing Switches


[Quidway-P] mpls [Quidway-P-mpls] quit [Quidway-P] mpls ldp [Quidway-P] mpls l2vpn

1.1

MPLS L2VPN

# Configure an IP address for the loopback interface, which is used as the LSR ID.
[Quidway-P] interface loopback 0 [Quidway-P-LoopBack0] ip address 192.1.1.3 255.255.255.255 [Quidway-P-LoopBack0] quit

# Configure the VLAN interface.


[Quidway-P] vlan 211 [Quidway-P-vlan211] port gigabitethernet 2/1/1 [Quidway-P-vlan211] quit [Quidway-P] interface Vlan-interface 211 [Quidway-P-Vlan-interface211] mpls [Quidway-P-Vlan-interface211] mpls ldp [Quidway-P-Vlan-interface211] ip address 168.1.1.2 255.255.0.0 [Quidway-P-Vlan-interface211] quit [Quidway-P] vlan 212 [Quidway-P-vlan212 port gigabitethernet 2/1/2 [Quidway-P-vlan212] quit [Quidway-P] interface Vlan-interface 212 [Quidway-P-Vlan-interface212] mpls [Quidway-P-Vlan-interface212] mpls ldp [Quidway-P-Vlan-interface212] ip address 169.1.1.2 255.255.0.0

# Enable OSPF.
[Quidway-P] ospf 1 [Quidway-P-ospf-1] area 0.0.0.0 [Quidway-P-ospf-1-area-0.0.0.0] network 168.1.0.0 0.0.255.255 [Quidway-P-ospf-1-area-0.0.0.0] network 169.1.0.0 0.0.255.255 [Quidway-P-ospf-1-area-0.0.0.0] network 192.1.1.3 0.0.0.0

Huawei Technologies Proprietary 15

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

Caution: Following must be met to make an LDP Layer 2 VPN to go up:


The interfaces of the two CE are physically up. Two LSP tunnels, which are opposite in direction, exist between two PEs. The encapsulattion types of interfaces of the two CEs are the same and are supported by the MPLS L2VPN.

LDP remote sessions exist between PEs and are in Operational state.

To establish a tunnel, routes to the peer PE are necessary. So you need to configure IGP (interior gateway protocol) on each router along the path, such as OSPF.

1.4 Kompella MPLS L2VPN Configuration


1.4.1 Configuring Kompella MPLS L2VPN
5.1 Configure Kompella MPLS L2VPN Configuration step Enter system view Configure the LSR ID Enable MPLS Perform BGP (border gateway protocol) related configuration. Make sure BGP operates properly and routers can discover routes to other routers. Enter address view. L2VPN family Command system-view mpls lsr-id X.X.X.X mpls Refer to BGP Configuration in Routing Protocol module. Required Required Required. In a Kompella MPLS L2VPN, the extended BGP is used as the signaling protocol to distribute VC labels. So, you also need to configure BGP parameters on PEs. As for the MPLS L2VPN itself, it has no special requirements on the BGP configuration. Required Description

l2vpn-family

Activate the peer or peergroup.

peer { group-name | peeraddress } enable

Required. By default, only the peers of BGP IPv4 unicast address families are active. The peer groups of other types are deactivated and thus cannot exchange the routing information.

Quit to system view

quit

Huawei Technologies Proprietary 16

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

Configuration step Create a VPN and specify the encapsulation type. Configure the RD (route distinguisher) of the MPLS L2VPN

Command mpls l2vpn vpn-name [ encapsulation Ethernet ] route-distinguisher distinguisher route-

Description Required. The default encapsulation type is Ethernet. Required. For an MPLS L2VPN, you must configure the RD before performing other configurations. An RD cannot be modified once it is configured. The only way to modify a configured RD is to remove the corresponding MPLS L2VPN and create another one. As for L2VPN, it is recommended that you assign a unique RD for each VPN. Required

Configure the VPNtarget of the MPLS L2VPN Configure the Layer 2 MTU (maximum transmission unit) of the VPN

vpn-target vpn-target-extcommunity [ importextcommunity| exportextcommunity | both ] mtu mtu

Optional. You can configure the Layer 2 MTU for the VPN. For the entire network, only one valid VPN MTU exists. If two interconnected PEs are configured with different MTUs, the smaller one is adopted. Required. Each CE created on a PE needs to uniquely correspond to one actual CE device connected to the PE. You need to specify a unique ID for these CEs. You can also specify the CE range. It is desired that the CE ID begins with 1 and increases in step of 1. Required. When planning a VPN, you can specify CE IDs for CEs beginning with 1 and increasing in step of 1, and then establish connections by CE IDs. You can establish connections with CE offset not provided for simplifying the configuration. In this case, the default CE offset is used.

Create a CE or modify the CE range of an existing CE Enter an existing CE

ce name id id [ range range ] [ default-offset offset ] ce name

Create connections between CEs

connection [ ce-offset offset ] { interface vlaninterface vlan-id }

Huawei Technologies Proprietary 17

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

Caution:

You can only change the CE range to a number larger than the existing one. For example, you can change a CE range from 10 to 20, rather than from 10 to 5. The only way to change a CE range to a smaller number is to remove the CE and create a new one.

You must use cards with the silk screen of CA (such as LSB2FT48CA) on the public network access side when configuring Kompella MPLS L2VPN. You can configure only one VLAN on the access side of each VPN private network. Each VLAN can have only one interface. And all the VLANs connecting to the interface must have IGMP disabled.

In Kompella MPLS L2VPN, the encapsulation type on the access side of each private network must be Ethernet.

1.4.2 Kompella MPLS L2VPN Configuration Example


I. Network requirements
CEs shown in II are in the same VLAN as the corresponding PEs resides in. A remote connection is required between CE-A and CE-B.

II. Network diagram


VLAN211 CE A VLAN212 PE A VLAN211 P VLAN212 VLAN211

VLAN212 PE B

CE B

Figure 1.6 Network diagram for Kompella MPLS L2VPN

III. Configuration procedure


1) Configure PE-A.

# Enable MPLS globally.


[Quidway] mpls lsr-id 1.1.1.1 [Quidway] mpls

# Configure an IP address for the loopback interface.


[Quidway] interface loopback 0 [Quidway-LoopBack0] ip address 1.1.1.1 32

# Enable MPLS L2VPN globally.


[Quidway] mpls l2vpn

Huawei Technologies Proprietary 18

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

# Configure VLAN 211.


[Quidway] vlan 211 [Quidway-vlan211] port gigabitethernet 2/1/1 [Quidway-Vlan211] interface vlan 211 [Quidway-Vlan-interface211] quit

# Configure VLAN 212.


[Quidway] vlan 212 [Quidway-vlan212] port gigabitethernet 2/1/2 [Quidway-vlan212] interface vlan 212 [Quidway-Vlan-interface212] quit

# Configure VLAN 213.


[Quidway] vlan 213 [Quidway-vlan213] port gigabitethernet 2/1/3 [Quidway-vlan213] interface vlan 213 [Quidway-Vlan-interface 213] quit

# Enable MPLS on the interface of VLAN 214.


[Quidway] vlan 214 [Quidway-vlan214] port gigabitethernet 2/1/4 [Quidway-vlan214] quit [Quidway] interface vlan-interface 214 [Quidway-Vlan-interface214] ip address 5.5.5.1 24 [Quidway-Vlan-interface214] mpls [Quidway-Vlan-interface214] mpls ldp [Quidway-Vlan-interface214] mpls ldp transport-ip interface [Quidway-Vlan-interface214] quit

# Configure BGP.
[Quidway] bgp 100 [Quidway-bgp] group 100 internal [Quidway-bgp] peer 100 connect-interface loopback0 [Quidway-bgp] peer 3.3.3.3 group 100 [Quidway-bgp] l2vpn-family [Quidway-bgp-af-l2vpn] peer 100 enable

# Create and configure the VPN.

Huawei Technologies Proprietary 19

Operation Manual VLL Quidway S8500 Series Routing Switches


[Quidway] mpls l2vpn vpn1 encapsulation ethernet

1.1

MPLS L2VPN

[Quidway-mpls-l2vpn-vpn1] route-distinguisher 100:1 [Quidway-mpls-l2vpn-vpn1] vpn-target 100:1

# Create CE1 and configure the corresponding connection.


[Quidway-mpls-l2vpn-vpn1] ce ce1 id 1 range 200 [Quidway-mpls-l2vpn-vpn1-ce1] interface 212 [Quidway-mpls-l2vpn-vpn1-ce1] interface 213 [Quidway-mpls-l2vpn-vpn1-ce1] quit connection ce-offset 3 interface vlanconnection ce-offset 2 interface vlan-

# Enable OSPF.
[Quidway] ospf 1 router-id 1.1.1.1 [Quidway-ospf-1] area 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] network 5.5.5.0 0.0.0.255

2)

Configure PE-B.

# Enable MPLS globally.


[Quidway] mpls lsr-id 3.3.3.3 [Quidway] mpls

# Configure an IP address for the loopback interface.


[Quidway] interface loopback 0 [Quidway-LoopBack0] ip address 3.3.3.3 32

# Enable MPLS L2VPN globally.


[Quidway] mpls l2vpn

# Configure VLAN 211.


[Quidway] vlan 211 [Quidway-vlan211] port gigabitethernet 2/1/1 [Quidway-vlan211] quit

# Configure VLAN 212.


[Quidway] vlan 212 [Quidway-vlan212] port gigabitethernet 2/1/2 [Quidway-vlan212] interface vlan 212 [Quidway-Vlan-interface 212] quit

# Configure VLAN 213.


Huawei Technologies Proprietary 20

Operation Manual VLL Quidway S8500 Series Routing Switches


[Quidway] vlan 213 [Quidway-vlan213] port gigabitethernet 2/1/3 [Quidway-vlan212] interface vlan 213 [Quidway-Vlan-interface 213] quit

1.1

MPLS L2VPN

# Enable MPLS on the interface of VLAN 214.


[Quidway] vlan 214 [Quidway-vlan214] port gigabitethernet 2/1/4 [Quidway-vlan214] quit [Quidway] interface vlan-interface 214 [Quidway-Vlan-interface214] ip address 6.6.6.1 24 [Quidway-Vlan-interface214] mpls [Quidway-Vlan-interface214] mpls ldp [Quidway-Vlan-interface214] mpls ldp transport-ip interface [Quidway-Vlan-interface214] quit

# Configure BGP.
[Quidway] bgp 100 [Quidway-bgp] group 100 internal [Quidway-bgp] peer 100 connect-interface loopback0 [Quidway-bgp] peer 1.1.1.1 group 100 [Quidway-bgp] l2vpn-family [Quidway-bgp-af-l2vpn] peer 100 enable

# Create and configure VPN1.


[Quidway] mpls l2vpn vpn1 encapsulation ethernet [Quidway-mpls-l2vpn-vpn1] route-distinguisher 100 :1 [Quidway-mpls-l2vpn-vpn1] vpn-target 100 :1

# Create CE2 and configure the corresponding connection.


[Quidway-mpls-l2vpn-vpn1] ce ce2 id 2 range 200 [Quidway-mpls-l2vpn-vpn1-ce2] interface 212 [Quidway-mpls-l2vpn-vpn1-ce2] quit [Quidway-mpls-l2vpn-vpn1] ce ce3 id 3 range 200 [Quidway-mpls-l2vpn-vpn1-ce3] interface 213 [Quidway-mpls-l2vpn-vpn1-ce3] quit connection ce-offset 1 interface vlanconnection ce-offset 1 interface vlan-

Huawei Technologies Proprietary 21

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

# Enable OSPF.
[Quidway] ospf 1 router-id 3.3.3.3 [Quidway -ospf-1] area 0.0.0.0 [Quidway -ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0 [Quidway -ospf-1-area-0.0.0.0] network 6.6.6.0 0.0.0.255

3)

Configure the P device.

The configuration of P device is the same as that of standard MPLS configuration. Refer to the P router Configuration of BGP/MPLS VPN in Basic MPLS Operation Manual.

1.5 Displaying and Debugging MPLS L2VPN


After the above configuration, you can verify your configuration concerning MPLS L2VPN by executing the display command in any view and checking the output information. You can execute the debugging command in user view to debug MPLS L2VPN. 6.1 Display and debug L2VPN Configuration step Display information about a CCC connection Display information about a Martini MPLS L2VPN connection Display VLL/Kompella information about a specified interface Command display ccc [ ccc-name | type [ local | remote ] ] display mpls l2vc [ interface vlan-interface vlan-id | verbose ] display mpls l2vpn [ vsi_name [ local_ce | remote_ce ] | connection [ vsi_name [ down | remotece | up | verbose ] | brief | interface Vlan-interface vlan-id ] | forwarding-info { vc-label | interface interfacetype } ] display bgp l2vpn all Description You can execute the two commands in any view.

Display information about the system or about Kompella MPLS L2VPNs Enable debugging for MPLS L2VPN

debugging mpls l2vpn { all | advertisement | error | event | connections [ interface vlan-interface vlan-id ] }

Execute this command in user view.

Huawei Technologies Proprietary 22

Operation Manual VLL Quidway S8500 Series Routing Switches

1.1

MPLS L2VPN

1.6 Troubleshooting MPLS L2VPN


Symptom 1: Fail to configure Layer 2 VPN on the VLAN interface. Solution:

Check to see if MPLS/BGP VPN, multicast, or VLL is enabled on the VLAN interface. Because you cannot perform Layer 2 VPN configuration on a VLAN interface if MPLS/BGP VPN, multicasting, or VLL is enabled on it.

Check to see if the VLAN is a Super-Vlan or a Sub-Vlan. You can perform the Layer 2 VPN configuration only on common VLAN interfaces.

Symptom 2: Fail to ping the peer from one end of a Martini MPLS L2VPN connection. The VC is down and the Remote value is invalid. Solution:

VC state being down indicates the encapsulation types or VC IDs of the two ends are not the same. Make sure the interface types (Access or Trunk) of the two PE interfaces and the VC IDs of the two ends are consistent.

As for the invalid Remote value, make sure you have configured the Remote parameters and the peer addresses correctly.

Symptom 3: Fail to ping the peer of a Kompella MPLS L2VPN connection. The Connection is down and the VPN value is null. Solution:

VPN value being null indicates the VPN is configured incorrectly. Make sure the VPN configurations (such as RD, RT) of the both ends are consistent, and the connection configurations of the two CEs on both ends are correct.

Connection being down indicates configurations concerning encapsulation of the two ends are not the same. Make sure the encapsulation types and MTUs configured for the local and remote PE devices are consistent. A connection fails if the encapsulation types configured on the two ends are not the same.

Symptom 4: Fail to ping the peer end of a CCC MPLS L2VPN connection. The sending and receiving channels are up, so does the linkconnection. Solution:

Make sure the in-label and out-label configured on the both ends correspond to each other. If a P device exists, make sure its forwarding connection configuration is correct, and the next hop configured statically is configured.

Huawei Technologies Proprietary 23

Potrebbero piacerti anche