Вы находитесь на странице: 1из 23

NE Series Routers MPLS L2VPN Practice

Guide
NE Series Routers MPLS L2VPN Practice Guide

Contents
Typical Usage Scenarios of MPLS L2VPN ....................................................................... 1
Experiment Description..................................................................................................... 3
Environment Introduction .................................................................................................................. 3
Objectives ......................................................................................................................................... 3
References ....................................................................................................................................... 3
Topology ........................................................................................................................................... 3
Tasks ................................................................................................................................................ 4
Configuration Preparation ................................................................................................................. 4
Configuration Flowchart .................................................................................................................... 5

Configuration Procedure and Verification ....................................................................... 6


Step 1: Configure router interface IP addresses ................................................................................ 6
Configuration description ............................................................................................................. 6
Configure CE1............................................................................................................................. 6
Configure CE2............................................................................................................................. 6
Configure CE3............................................................................................................................. 6
Configure PEA ............................................................................................................................ 6
Configure PEB ............................................................................................................................ 7
Verify the configuration ................................................................................................................ 7
Step 2: Enable OSPF in the MPLS domain........................................................................................ 8
Configuration description ............................................................................................................. 8
Configure PEA ............................................................................................................................ 8
Configure PEB ............................................................................................................................ 8
Verify the configuration ................................................................................................................ 8
Step 3: Create a Local CCC connection ............................................................................................ 9
Configuration description ............................................................................................................. 9
Configure PEA ...........................................................................................................................10
Configure CE1............................................................................................................................10
Configure CE2............................................................................................................................10
Verify the configuration ............................................................................................................... 11
Step 4: Create a Remote CCC connection ....................................................................................... 11
Configuration description ............................................................................................................ 11
Configure PEA ...........................................................................................................................12
Configure PEB ...........................................................................................................................12
Configure CE2............................................................................................................................12
Configure CE3............................................................................................................................13
Verify the configuration ...............................................................................................................13
Step 5: Configure a Martini VLL connection ......................................................................................14
Configuration description..................................................................................................................14

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
NE Series Routers MPLS L2VPN Practice Guide

Configure PEA ...........................................................................................................................14


Configure PEB ...........................................................................................................................15
Configure CE2............................................................................................................................15
Configure CE3............................................................................................................................15
Verify the configuration ...............................................................................................................16
Step 6: Configure an SVC connection ..............................................................................................16
Configuration description ............................................................................................................16
Configure PEA ...........................................................................................................................17
Configure PEB ...........................................................................................................................17
Configure CE2............................................................................................................................18
Configure CE3............................................................................................................................18
Verify the configuration ...............................................................................................................18

FAQ ................................................................................................................................... 19
Answers ............................................................................................................................ 20

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
NE Series Routers MPLS L2VPN Practice Guide

NE Series Routers MPLS L2VPN Practice


Guide
Typical Usage Scenarios of MPLS L2VPN
MPLS L2VPN is widely used on networks. Carriers provide L2VPNs based on different media
types on a unified MPLS network. MPLS L2VPN enables Layer 2 user data to be transparently
transmitted over an MPLS network.
Layer 2 interconnection for enterprise VPNs

As shown in the preceding figure, the enterprises have a small number of branches, and therefore
only point-to-point (P2P) L2VPN services are required. Carriers can provide simple P2P VLL
connections over an MPLS MAN to implement Layer 2 leased line interconnections between the
branches.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
2
NE Series Routers MPLS L2VPN Practice Guide

Layer 2 transparent transmission for HSI service packets

As shown in the preceding figure, HSI users access the BRAS using Layer 2 PPPoE. When HSI
users are scattered, they access the BRAS over an MAN. VLL can be deployed between the PEs
on the MAN to transparently transmit Layer 2 PPPoE dial-up packets.

VLL is used for Layer 2 leased line interconnections for enterprise VPNs in a country. Transparent transmission for HSI
user packets applies when dial-up users abroad are scattered.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
3
NE Series Routers MPLS L2VPN Practice Guide

Experiment Description

Environment Introduction
This guide describes basic configuration methods of and configuration procedures for MPLS
L2VPN. This guide also covers main technologies related to MPLS L2VPN. Router Visio 1.6.7 is
used to build an experiment environment.

Objectives
Configure MPLS L2VPN.
Troubleshoot MPLS L2VPN faults.

References
NE40E&NE80E Command Reference 04

Topology

In the topology, the three CEs on VPNA are connected using VLL. The CEs' Loopback1 addresses
are used to simulate network segment routes. For details about interfaces, IP addresses, IGP and
MPLS, see the topology.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
4
NE Series Routers MPLS L2VPN Practice Guide

Tasks
Task Description
1 Run OSPF to implement interworking between the devices in the MPLS domain.
2 Configure sub-interface VLAN IDs and VPN IP network segments, use local CCC to
connect CE1 and CE2 over E0/0/1.1, and ensure that the simulated network IP
addresses of CE1 and CE2 are reachable.
3 Configure sub-interface VLAN IDs and VPN IP network segments, use remote CCC to
connect CE2 and CE3 over E0/0/1.2, and ensure that the sub-interface network
segment IP addresses are reachable.
4 Configure sub-interface VLAN IDs and VPN IP network segments, use Martini to
connect CE2 and CE3 over E0/0/1.3, and ensure that the simulated network IP
addresses of CE2 and CE3 are reachable.
5 Configure sub-interface VLAN IDs and VPN IP network segments, use SVC to connect
CE2 and CE3 over E0/0/1.4, and ensure that the sub-interface network segment IP
addresses are reachable.
6 Configure sub-interface VLAN IDs and VPN IP network segments, use VLL at one end
and VPLS at the other end to connect CE2 and CE3 over E0/0/1.5, and ensure that the
sub-interface network segment IP addresses are reachable.

Configuration Preparation
Before you configure MPLS L2VPN, complete the following operations:
Connect and power on devices.
Configure interface IP addresses and loopback interface addresses.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
5
NE Series Routers MPLS L2VPN Practice Guide

Configuration Flowchart

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
6
NE Series Routers MPLS L2VPN Practice Guide

Configuration Procedure and Verification

Step 1: Configure router interface IP addresses

Configuration description
Operation View Command
Configure an IP [Quidway-Ethernet0/0/0] ip address ip-address mask | mask-length
address.

Configure CE1
<Quidway>system-view
[Quidway]sysname CE1
[CE1]interface LoopBack 1
[CE1-LoopBack1]ip address 11.11.11.11 32

Configure CE2
<Quidway>system-view
[Quidway]sysname CE2
[CE2]interface LoopBack 1
[CE2-LoopBack1]ip address 21.21.21.21 32

Configure CE3
<Quidway>system-view
[Quidway]sysname CE3
[CE3]interface LoopBack 1
[CE3-LoopBack1]ip address 31.31.31.31 32

Configure PEA
<Quidway>system-view
[Quidway]sysname PEA
[PEA]interface Ethernet 0/0/2
[PEA-Ethernet0/0/2]ip address 10.1.1.1 30
[PEA-Ethernet0/0/2]undo shutdown
[PEA-Ethernet0/0/2]quit
[PEA]interface LoopBack 0
[PEA-LoopBack0]ip address 1.1.1.1 32

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
7
NE Series Routers MPLS L2VPN Practice Guide

Configure PEB
<Quidway>system-view
[Quidway]sysname PEB
[PEB]interface Ethernet 0/0/2
[PEB-Ethernet0/0/2]ip address 10.1.1.2 30
[PEB-Ethernet0/0/2]undo shutdown
[PEB-Ethernet0/0/2]quit
[PEB]interface LoopBack 0
[PEB-LoopBack0]ip address 2.2.2.2 32

Verify the configuration


1. Run the display ip interface brief ip-configured command to view brief information about
interfaces with IP addresses configured. The following uses PEA as an example.
[PEA]display ip interface brief ip-configured
*down: administratively down
!down: FIB overload down
^down: standby
(l): loopback
(s): spoofing
(d): Dampening Suppressed
The number of interfaces that are UP in Physical is 2
The number of interfaces that are DOWN in Physical is 0
The number of interfaces that are UP in Protocol is 2
The number of interfaces that are DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
Ethernet0/0/2 10.1.1.1/30 up up
LoopBack0 1.1.1.1/32 up up(s)
The command output shows that all interfaces run properly and IP addresses are correct.
2. Run the ping command to check link connectivity. For example, run the ping command on
PEA to ping PEB's direct address.
[PEA]ping 10.1.1.2
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=520 ms
Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=50 ms
Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 10.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/124/520 ms
The command output shows that PEA communicates properly with PEB.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
8
NE Series Routers MPLS L2VPN Practice Guide

Step 2: Enable OSPF in the MPLS domain

Configuration description
Operation View Command
Configure a router ID. [Quidway] router id router-id

Establish an OSPF [Quidway] ospf process-id


process.
Create an OSPF area. [Quidway-ospf-1] area area-id

Configure a network [Quidway-ospf-1-area-0.0.0.1] network ip-address wildcard-mask


segment included in
the area.

Configure PEA
[PEA]router id 1.1.1.1
[PEA]ospf 1
[PEA-ospf-1]area 0
[PEA-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.3
[PEA-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0

Configure PEB
[PEB]router id 2.2.2.2
[PEB]ospf 1
[PEB-ospf-1]area 0
[PEB-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.3
[PEB-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0

Verify the configuration


1. Run the display ospf 1 peer brief command to view the peer statistics of OSPF process 1.
The following uses PEB as an example.
<PEB>display ospf 1 peer brief
OSPF Process 1 with Router ID 2.2.2.2
Peer Statistic Information
----------------------------------------------------------------- Area Id Interface
Neighbor id State 0.0.0.0 Ethernet0/0/2 1.1.1.1 Full
----------------------------------------------------------------
The command output shows that State is Full. That is, all OSPF neighbor relationships of
PEB are normal.
2. Run the display ip routing-table protocol ospf command to view OSPF routing information
in the routing table. The following uses PEB as an example.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
9
NE Series Routers MPLS L2VPN Practice Guide

<PEB>display ip routing-table protocol ospf


Route Flags: R - relay, D - download to fib
-----------------------------------------------------------------Public routing table : OSPF
Destinations : 1 Routes : 1
OSPF routing table status : <Active>
Destinations : 1 Routes : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.1/32 OSPF 10 1 D 10.1.1.1 Ethernet0/0/2
OSPF routing table status : <Inactive>
Destinations : 0 Routes : 0
The command output shows that PEB has learned the route to PEA's loopback interface from
the OSPF neighbor.
3. Run the ping command to check link connectivity. For example, run the ping command on
PEA to ping PEB's loopback address.
<PEA>ping 2.2.2.2
PING 2.2.2.2: 56 data bytes, press CTRL_C to break
Reply from 2.2.2.2: bytes=56 Sequence=1 ttl=254 time=1 ms
Reply from 2.2.2.2: bytes=56 Sequence=2 ttl=254 time=1 ms
Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=254 time=2 ms
Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=254 time=1 ms
Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=254 time=1 ms
--- 2.2.2.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/2 ms

Step 3: Create a Local CCC connection

Configuration description

According to experiment requirements, plan sub-interface VLAN IDs and VPN IP network segments. The PEs and CEs
use sub-interfaces, for example, E0/0/1.1. The VLAN ID is 10, and the VPN IP network segment is 172.168.1.0/24. The
IP address of CE1's sub-interface is 172.168.1.1/24, and the IP address of CE2's sub-interface is 172.168.1.2/24. To
ensure that the simulated network IP addresses of CE1 and CE2 are reachable, configure static routes on the CEs.

Operation View Command


Configure an LSR ID. [Quidway] mpls lsr-id x.x.x.x

Enable MPLS globally. [Quidway] mpls

Enable MPLS L2VPN globally. [Quidway] mpls l2vpn

Create a local CCC connection. [Quidway] ccc name interface … out-interface …

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
0
NE Series Routers MPLS L2VPN Practice Guide

Configure PEA
[PEA]mpls lsr-id 1.1.1.1
[PEA]mpls
[PEA-mpls]quit
[PEA]mpls l2vpn
[PEA-l2vpn]quit

\\Enable MPLS L2VPN globally.


[PEA]interface ethernet 0/0/0.1

\\Create a sub-interface and enter the sub-interface view.


[PEA-Ethernet0/0/0.1]vlan-type dot1q 10

\\Set a VLAN encapsulation type and VLAN ID on an interface.


[PEA-Ethernet0/0/0.1]quit
[PEA]interface ethernet 0/0/1.1
[PEA-Ethernet0/0/1.1]vlan-type dot1q 10
[PEA-Ethernet0/0/1.1]quit
[PEA]interface ethernet 0/0/0
[PEA-Ethernet0/0/0]undo shutdown
[PEA-Ethernet0/0/0]quit
[PEA]interface ethernet 0/0/1
[PEA-Ethernet0/0/1]undo shutdown
[PEA-Ethernet0/0/1]quit
[PEA]ccc CE1-CE2 interface Ethernet 0/0/1.1 out-interface Ethernet 0/0/0.1

\\Create a local CCC connection.

Configure CE1
[CE1]interface Ethernet 0/0/1.1
[CE1-Ethernet0/0/1.1]vlan-type dot1q 10
[CE1-Ethernet0/0/1.1]ip address 172.168.1.1 24
[CE1-Ethernet0/0/1.1]quit
[CE1]interface Ethernet 0/0/1
[CE1-Ethernet0/0/1]undo shutdown
[CE1]ip route-static 21.21.21.21 32 172.168.1.2

\\Configure a static route.

Configure CE2
[CE2]interface Ethernet 0/0/0.1
[CE2-Ethernet0/0/0.1]vlan-type dot1q 10
[CE2-Ethernet0/0/0.1]ip address 172.168.1.2 24
[CE2-Ethernet0/0/0.1]quit
[CE2]interface Ethernet 0/0/0
[CE2-Ethernet0/0/0]undo shutdown
[CE2]ip route-static 11.11.11.11 32 172.168.1.1

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
1
NE Series Routers MPLS L2VPN Practice Guide

Verify the configuration


1. Run the display vll ccc command on PEA to view CCC connection information.
<PEA>display vll ccc
total ccc vc : 1
local ccc vc : 1, 1 up
remote ccc vc : 0, 0 up
name: CE1-CE2, type: local, state: up,
intf1: Ethernet0/0/1.1 (up), access-port: false
intf2: Ethernet0/0/0.1 (up), access-port: false
VC last up time : 2012/07/12 09:05:00
VC total up time: 0 days, 0 hours, 0 minutes, 3 seconds
The command output shows that a local CCC connection has been established between two
CEs. The two CEs are connected to the same PE, which exchanges data without using static
LSPs.
2. Run the ping command to check link connectivity. For example, run the ping command on
CE1 to ping CE2's simulated network segment address.
<CE1>ping 21.21.21.21
PING 21.21.21.21: 56 data bytes, press CTRL_C to break
Reply from 21.21.21.21: bytes=56 Sequence=1 ttl=255 time=2 ms
Reply from 21.21.21.21: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 21.21.21.21: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 21.21.21.21: bytes=56 Sequence=4 ttl=255 time=2 ms
Reply from 21.21.21.21: bytes=56 Sequence=5 ttl=255 time=2 ms
--- 21.21.21.21 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/2 ms

Step 4: Create a Remote CCC connection

Configuration description

According to experiment requirements, plan sub-interface VLAN IDs and VPN IP network segments. The PEs and CEs
use sub-interfaces, for example, E0/0/1.2. The VLAN ID is 20, and the VPN IP network segment is 172.168.2.0/24. The
IP address of CE2's sub-interface is 172.168.2.2/24, and the IP address of CE3's sub-interface is 172.168.2.3/24.

Operation View Command


Configure an LSR ID. [Quidway] mpls lsr-id x.x.x.x

Enable MPLS globally. [Quidway] mpls

Enable MPLS on an [Quidway-Ethernet0/0/0] mpls


interface.
Create a static LSP. [Quidway-mpls] static-lsp ingress|egress
[name]-l2vpn-nexthop out-label

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
2
NE Series Routers MPLS L2VPN Practice Guide

Operation View Command


Run MPLS L2VPN. [Quidway] mpls l2vpn

Create a remote CCC [Quidway] ccc name interface-transmit-lsp [name]


connection. receive-lsp [name]

Configure PEA
[PEA]mpls lsr-id 1.1.1.1
[PEA]mpls
[PEA-mpls]quit
[PEA]interface Ethernet 0/0/2
[PEA-Ethernet0/0/2]mpls
[PEA-Ethernet0/0/2]quit
[PEA]interface Ethernet0/0/0.2
[PEA-Ethernet0/0/0.2]vlan-type dot1q 20
[PEA-Ethernet0/0/0.2]quit
[PEA]mpls l2vpn

\\Run MPLS L2VPN.


[PEA-l2vpn]quit
[PEA]ccc CE2-CE3 interface Ethernet0/0/0.2 in-label 300 out-label 400 nexthop 10.1.1.2

\\Create a remote CCC connection.

When you create a static LSP, the local incoming and outgoing labels must correspond to the remote outgoing and
incoming labels, respectively.

Configure PEB
[PEB]mpls lsr-id 2.2.2.2
[PEB]mpls
[PEB-mpls]quit
[PEB]interface Ethernet 0/0/2
[PEB-Ethernet0/0/2]mpls
[PEB-Ethernet0/0/2]quit
[PEB]interface Ethernet 0/0/1.2
[PEB-Ethernet0/0/1.2]vlan-type dot1q 20
[PEB-Ethernet0/0/1.2]quit
[PEB]interface ethernet 0/0/1
[PEB-Ethernet0/0/1]undo shutdown
[PEB]mpls l2vpn
[PEB-l2vpn]quit
[PEB]ccc CE3-CE2 interface Ethernet0/0/1.2 in-label 400 out-label 300 nexthop 10.1.1.1

Configure CE2
[CE2]interface Ethernet 0/0/0.2

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
3
NE Series Routers MPLS L2VPN Practice Guide

[CE2-Ethernet0/0/0.2]vlan-type dot1q 20
[CE2-Ethernet0/0/0.2]ip address 172.168.2.2 24
[CE2-Ethernet0/0/0.2]quit

Configure CE3
[CE3]interface Ethernet 0/0/1.2
[CE3-Ethernet0/0/1.2]vlan-type dot1q 20
[CE3-Ethernet0/0/1.2]ip address 172.168.2.3 24
[CE3-Ethernet0/0/1.2]quit
[CE3]interface Ethernet 0/0/1
[CE3-Ethernet0/0/1]undo shutdown

Verify the configuration


1. Run the display vll ccc command to view CCC connection information. The following uses
PEA as an example.
<PEA>display vll ccc
total ccc vc : 2
local ccc vc : 1, 1 up
remote ccc vc : 1, 1 up
name: CE1-CE2, type: local, state: up,
intf1: Ethernet0/0/1.1 (up), access-port: false
intf2: Ethernet0/0/0.1 (up), access-port: false
VC last up time : 2012/07/12 10:34:56
VC total up time: 0 days, 0 hours, 51 minutes, 43 seconds
name: CE2-CE3, type: remote, state: up,
intf: Ethernet0/0/0.2 (up), in-label: 300 , out-label: 400 , nexthop: 10.1.1.2
VC last up time : 2012/07/12 10:41:43
VC total up time: 0 days, 0 hours, 44 minutes, 56 seconds
The command output shows that PEA has one local CCC connection and one remote CCC
connection and their status is Up.
2. Run the ping command to check link connectivity. For example, run the ping command on
CE2 to ping CE3's sub-interface IP address.
[CE2]ping 172.168.2.3
PING 172.168.2.3: 56 data bytes, press CTRL_C to break
Reply from 172.168.2.3: bytes=56 Sequence=1 ttl=255 time=110 ms
Reply from 172.168.2.3: bytes=56 Sequence=2 ttl=255 time=70 ms
Reply from 172.168.2.3: bytes=56 Sequence=3 ttl=255 time=70 ms
Reply from 172.168.2.3: bytes=56 Sequence=4 ttl=255 time=70 ms
Reply from 172.168.2.3: bytes=56 Sequence=5 ttl=255 time=60 ms
--- 172.168.2.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 60/76/110 ms

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
4
NE Series Routers MPLS L2VPN Practice Guide

Step 5: Configure a Martini VLL connection

Configuration description

According to experiment requirements, plan sub-interface VLAN IDs and VPN IP network segments. The PEs and CEs
use sub-interfaces, for example, E0/0/1.3. The VLAN ID is 30, and the VPN IP network segment is 172.168.3.0/24. The
IP address of CE2's sub-interface is 172.168.3.2/24, and the IP address of CE3's sub-interface is 172.168.3.3/24. To
ensure that the simulated network IP addresses of CE2 and CE3 are reachable, configure static routes on the CEs.

Operation View Command


Configure an LSR ID. [Quidway] mpls lsr-id x.x.x.x

Enable MPLS globally. [Quidway] mpls

Enable MPLS on an [Quidway-Ethernet0/0/0] mpls


interface.
Enable MPLS LDP globally. [Quidway] mpls ldp

Enable MPLS LDP on an [Quidway-Ethernet0/0/0] mpls ldp


interface.
Create a remote LDP [Quidway] mpls ldp remote-peer ABC
session.
Configure a remote LDP [Quidway-mpls-remoteABC] remote-ip ip-address
session.
Run MPLS L2VPN. [Quidway] mpls l2vpn

Create a Martini VLL [RTB-Ethernet0/0.3] mpls l2vc ip-address label


connection.

Configure PEA
[PEA]mpls lsr-id 1.1.1.1
[PEA]mpls
[PEA-mpls]quit
[PEA]interface Ethernet 0/0/2
[PEA-Ethernet0/0/2]mpls
[PEA-Ethernet0/0/2]quit

\\The preceding configurations have been complete in step 4.


[PEA]mpls ldp
[PEA-mpls-ldp]quit
[PEA]interface Ethernet 0/0/2
[PEA-Ethernet0/0/2]mpls ldp
[PEA-Ethernet0/0/2]quit
[PEA]mpls ldp remote-peer ABC

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
5
NE Series Routers MPLS L2VPN Practice Guide

\\Create a remote MPLS LDP peer and enter the remote MPLS LDP peer view.
[PEA-mpls-ldp-remote-abc]remote-ip 2.2.2.2
[PEA-mpls-ldp-remote-abc]quit

\\Configure an IP address for the remote MPLS LDP peer.


[PEA]mpls l2vpn
[PEA-l2vpn]mpls l2vc default martini
[PEA-l2vpn]quit
[PEA]interface Ethernet 0/0/0.3
[PEA-Ethernet0/0/0.3]vlan-type dot1q 30
[PEA-Ethernet0/0/0.3]mpls l2vc 2.2.2.2 100

\\Create a Martini VLL connection.

Configure PEB
[PEB]mpls lsr-id 2.2.2.2
[PEB]mpls
[PEB-mpls]quit
[PEB]interface Ethernet 0/0/2
[PEB-Ethernet0/0/2]mpls
[PEB-Ethernet0/0/2]quit

\\The preceding configurations have been complete in step 4.


[PEB]mpls ldp
[PEB-mpls-ldp]quit
[PEB]interface Ethernet 0/0/2
[PEB-Ethernet0/0/2]mpls ldp
[PEB-Ethernet0/0/2]quit
[PEB]mpls ldp remote-peer ABC
[PEB-mpls-ldp-remote-abc]remote-ip 1.1.1.1
[PEB-mpls-ldp-remote-abc]quit
[PEB]mpls l2vpn
[PEB-l2vpn]mpls l2vc default martini
[PEB-l2vpn]quit
[PEB]interface Ethernet 0/0/1.3
[PEB-Ethernet0/0/1.3]vlan-type dot1q 30
[PEB-Ethernet0/0/1.3]mpls l2vc 1.1.1.1 100

Configure CE2
[CE2]interface ethernet0/0/0.3
[CE2-Ethernet0/0/0.3]vlan-type dot1q 30
[CE2-Ethernet0/0/0.3]ip address 172.168.3.2 24
[CE2]ip route-static 31.31.31.31 32 172.168.3.3

Configure CE3
[CE3]interface Ethernet 0/0/1.3
[CE3-Ethernet0/0/0.3]vlan-type dot1q 30
[CE3-Ethernet0/0/0.3]ip address 172.168.3.3 24
[CE3]ip route-static 21.21.21.21 32 172.168.3.2

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
6
NE Series Routers MPLS L2VPN Practice Guide

Verify the configuration


1. Run the display mpls l2vc brief command on PEA and PEB to view L2VPN connection
information. The following uses PEA as an example.
<PEA>display mpls l2vc brief
Total LDP VC : 1 1 up 0 down
*Client Interface : Ethernet0/0/0.3
Administrator PW : no
AC status : up
VC State : up
Label state : 0
Token state : 0
VC ID : 100
VC Type : VLAN
session state : up
Destination : 2.2.2.2
link state : up
The command output shows that one L2 VC has been established.
2. Run the ping command on CE2 to ping CE3's simulated network segment address
31.31.31.31.
[CE2]ping 31.31.31.31
PING 31.31.31.31: 56 data bytes, press CTRL_C to break
Reply from 31.31.31.31: bytes=56 Sequence=1 ttl=255 time=90 ms
Reply from 31.31.31.31: bytes=56 Sequence=2 ttl=255 time=50 ms
Reply from 31.31.31.31: bytes=56 Sequence=3 ttl=255 time=60 ms
Reply from 31.31.31.31: bytes=56 Sequence=4 ttl=255 time=80 ms
Reply from 31.31.31.31: bytes=56 Sequence=5 ttl=255 time=80 ms
--- 31.31.31.31 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/72/90 ms
The command output shows that the ping succeeds.

Step 6: Configure an SVC connection

Configuration description

According to experiment requirements, plan sub-interface VLAN IDs and VPN IP network segments. The PEs and CEs
use sub-interfaces, for example, E0/0/1.4. The VLAN ID is 40, and the VPN IP network segment is 172.168.4.0/24. The
IP address of CE2's sub-interface is 172.168.4.2/24, and the IP address of CE3's sub-interface is 172.168.4.3/24.

Operation View Command


Configure an LSR ID. [Quidway] mpls lsr-id x.x.x.x

Enable MPLS [Quidway] mpls


globally.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
7
NE Series Routers MPLS L2VPN Practice Guide

Enable MPLS on an [Quidway-Ethernet0/0/0] mpls


interface.
Enable MPLS LDP [Quidway] mpls ldp
globally.
Enable MPLS LDP [Quidway-Ethernet0/0/0] mpls ldp
on an interface.
Create a static VC [Quidway-Ethernet0/0/0.4] mpls static-l2vc destination ip-address
connection. transmit-vpn-label label receive-vpn-label
label

Configure PEA
[PEA]mpls lsr-id 1.1.1.1
[PEA]mpls
[PEA-mpls]quit
[PEA]interface Ethernet 0/0/2
[PEA-Ethernet0/0/2]mpls
[PEA-Ethernet0/0/2]quit
[PEA]mpls ldp
[PEA-mpls-ldp]quit
[PEA]interface Ethernet 0/0/2
[PEA-Ethernet0/0/2]mpls ldp
[PEA-Ethernet0/0/2]quit

\\The preceding configurations have been complete in step 5.


[PEA]interface Ethernet 0/0/0.4
[PEA-Ethernet0/0/0.4]vlan-type dot1q 40
[PEA-Ethernet0/0/0.4]mpls static-l2vc destination 2.2.2.2 transmit-vpn-label 500
receive-vpn-label 600

\\Create a static VC connection.

Configure PEB
[PEB]mpls lsr-id 2.2.2.2
[PEB]mpls
[PEB-mpls]quit
[PEB]interface Ethernet 0/0/2
[PEB-Ethernet0/0/2]mpls
[PEB-Ethernet0/0/2]quit
[PEB]mpls ldp
[PEB-mpls-ldp]quit
[PEB]interface Ethernet 0/0/2
[PEB-Ethernet0/0/2]mpls ldp
[PEB-Ethernet0/0/2]quit

\\The preceding configurations have been complete in step 5.


[PEB]interface Ethernet 0/0/1.4
[PEB-Ethernet0/0/1.4]vlan-type dot1q 40

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
8
NE Series Routers MPLS L2VPN Practice Guide

[PEB-Ethernet0/0/1.4]mpls static-l2vc destination 1.1.1.1 transmit-vpn-label 600


receive-vpn-label 500

\\Ensure that the transmit and receive labels on PEA correspond to the receive and transmit labels
on PEB, respectively.

Configure CE2
[CE2]interface Ethernet 0/0/0.4
[CE2-Ethernet0/0/0.4]vlan-type dot1q 40
[CE2-Ethernet0/0/0.4]ip address 172.168.4.2 24

Configure CE3
[CE3]interface Ethernet 0/0/1.4
[CE3-Ethernet0/0/1.4]vlan-type dot1q 40
[CE3-Ethernet0/0/1.4]ip address 172.168.4.3 24

Verify the configuration


1. Run the display mpls static-l2vc brief command on PEA and PEB to view static L2VPN
connection information. The following uses PEA as an example.
[PEA]display mpls static-l2vc brief
Total svc connections: 1, 1 up, 0 down
*Client Interface : Ethernet0/0/0.4 is up
AC Status : up
VC State : up
VC ID : 0
VC Type : VLAN
Destination : 2.2.2.2

The command output shows that one static L2 VC has been established.
2. Run the ping command to check link connectivity. For example, run the ping command on
CE2 to ping CE3's sub-interface IP address.
[CE2]ping 172.168.4.3
PING 172.168.4.3: 56 data bytes, press CTRL_C to break
Reply from 172.168.4.3: bytes=56 Sequence=1 ttl=255 time=110 ms
Reply from 172.168.4.3: bytes=56 Sequence=2 ttl=255 time=60 ms
Reply from 172.168.4.3: bytes=56 Sequence=3 ttl=255 time=90 ms
Reply from 172.168.4.3: bytes=56 Sequence=4 ttl=255 time=50 ms
Reply from 172.168.4.3: bytes=56 Sequence=5 ttl=255 time=90 ms
--- 172.168.4.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/80/110 ms

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
1
9
NE Series Routers MPLS L2VPN Practice Guide

FAQ
1. Which of the following commands can I use to view brief information about all LDP Layer 2
VCs? ( )

− display l2vc brief all


− display l2vc brief
− display mpls l2vc brief
2. Why do not Martini and SVC support local connections?

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..
2
0
NE Series Routers MPLS L2VPN Practice Guide

Answers
1. C
2. The inner label used in Martini mode is a VC label. To enable two CEs to communicate,
configure the same VC ID for the two CEs. However, the VC ID on a PE is unique. Therefore,
local connections are not supported. SVC is a static Martini connection.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd..

Вам также может понравиться