9_odl010016 mpls l2 vpn laboratory exercise guide issue1.2
TRANSCRIPT
ODJ000016
MPLS L2 VPN Laboratory Exercise Guide
ISSUE 1.2
i
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Contents
Contents
About This Course......................................................................................................................... 1Test Instructions........................................................................................................................ 1Version Introduction..................................................................................................................1Test Objectives......................................................................................................................... 1Test Tasks................................................................................................................................ 1Relevant Materials....................................................................................................................1
Chapter 1 Configuration Guide to CCC Local Connection.........................................................21.1 Networking and Service Description...................................................................................21.2 Command Line List.............................................................................................................21.3 Configuration Flow..............................................................................................................31.4 Configuration Procedure.....................................................................................................31.5 Result Verification...............................................................................................................41.6 FAQ..................................................................................................................................... 41.7 Configuration Reference.....................................................................................................4
1.7.1 Configure the Port.....................................................................................................41.7.2 Service configuration................................................................................................5
Chapter 2 Configuration Guide to CCC Remote Connection......................................................62.1 Networking and Service Description...................................................................................62.2 Command Line List.............................................................................................................62.3 Configuration Flow..............................................................................................................72.4 Configuration Procedure.....................................................................................................82.5 Result Verification...............................................................................................................92.6 FAQ..................................................................................................................................... 92.7 Configuration Reference...................................................................................................10
2.7.1 Configure the Port...................................................................................................102.7.2 Service configuration..............................................................................................10
Chapter 3 Martini Configuration Guide.......................................................................................123.1 Networking and Service Description.................................................................................123.2 Command Line List...........................................................................................................123.3 Configuration Flow............................................................................................................133.4 Configuration Procedure...................................................................................................133.5 Result Verification.............................................................................................................143.6 FAQ................................................................................................................................... 153.7 Additional Task..................................................................................................................153.8 Configuration Reference...................................................................................................15
3.8.1 Configure the Port...................................................................................................153.8.2 Service configuration..............................................................................................16
Chapter 4 Kompella Configuration Guide..................................................................................184.1 Networking and Service Description.................................................................................184.2 Command Line List...........................................................................................................184.3 Configuration Flow............................................................................................................194.4 Configuration Procedure...................................................................................................204.5 Result Verification.............................................................................................................214.6 FAQ................................................................................................................................... 224.7 Configuration Reference...................................................................................................22
4.7.1 Configure the Port...................................................................................................224.7.2 Service configuration..............................................................................................23
Confidential Information of Huawei. No Spreading without Permission i
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 About This Course
About This Course
Test Instructions
This Test Guide provides the information of configuration methods and configuration processes for the basic services of MPLS L2 VPN protocol. It covers the currently prevalent technologies of MPLS L2 VPN. It is designed to help you understand the configuration methods and configuration procedure for the basic services of MPLS L2 VPN.
Version Introduction
This Guide is applicable to VRP versions 3.30 and 5.10.
Test Objectives
To understand the basic principles of MPLS L2 VPN To grasp the configuration process for MPLS L2 VPN. To get familiar with the configuration commands for MPLS L2 VPN
Test Tasks
Configure the local VPN for CCC Configure the remote VPN for CCC Configure the VLAN-based Martini Configure the Ethernet-based Kompella
Relevant Materials
Operation Manual Operation Manual
Confidential Information of Huawei. No Spreading without Permission 1
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Chapter 1 Configuration Guide to CCC Local Connection
1.1 Networking and Service Description
Figure 1-1
RTA, RTC and RTD are connected among them through Serial interfaces, and PPP is encapsulated at the link layer. A CCC local connection is established between RTC and RTD.
It unnecessary to configure IP addresses for RTA’s interfaces connected to RTC and RTD.
1.2 Command Line List
Table 1-1
Operation Version Command
Configure LSR ID VRP 3.30 mpls lsr-id X.X.X.XVRP 5.10 mpls lsr-id X.X.X.X
Enable MPLS and enter the MPLS view
VRP 3.30 mplsVRP 5.10 mpls
Enable MPLS L2VPN VRP 3.30 mpls l2vpn
Confidential Information of Huawei. No Spreading without Permission2
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Operation Version Command
VRP 5.10 mpls l2vpn
Create a CCC local connection
VRP 3.30ccc ccc-connection-name interface interface-type inteface-number out-interface interface-type inteface-number
VRP 5.10ccc ccc-connection-name interface interface-type inteface-number out-interface interface-type inteface-number
1.3 Configuration Flow
EMBED Visio.Drawing.6
Specify anLSR ID
Run the MPLS
Run the MPLS
L2VPN
Create a CCC localconnection
Figure 1-2
1.4 Configuration Procedure
1) Specify an LSR ID
From the system view, specify the MPLS LSR ID.
2) Run the MPLS
From the system view, run the MPLS.
3) Run the MPLS L2VPN
From the system view, run the MPLS L2VPN.
4) Create a CCC local connection
Create a CCC local connection, whose interfaces are the ports connected to RTC and RTD respectively.
Confidential Information of Huawei. No Spreading without Permission 3
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
1.5 Result Verification
1) Execute the display ccc command. You can find that a CCC local connection has been established.
[RTA]display ccctotal connections : 1local connections : 1, 1 upremote connections : 0, 0 up
name: CEA-CEB, type: local, state: up,intf1: Serial2/0 (up), intf2: Serial3/0:0 (up)
Note:
Local connection is a connection established between two local CEs. Switching can be completed directly on the PE, and no static LSP needs to be configured.
2) Detect the connectivity between RTC and RTD through the Ping command.[RTD] ping 172.1.1.2 PING 172.1.1.2: 56 data bytes, press CTRL_C to break Reply from 172.1.1.2: bytes=56 Sequence=1 ttl=255 time=31 ms Reply from 172.1.1.2: bytes=56 Sequence=2 ttl=255 time=29 ms Reply from 172.1.1.2: bytes=56 Sequence=3 ttl=255 time=29 ms Reply from 172.1.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 172.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--172.10.10.2 ping statistics-- 5 packet(s) transmitted 5 packet(s) received 0.00% packet lossround-trip min/avg/max = 29/29/3 ms
1.6 FAQ
Q: What’s the full name of CCC? Can a CCC connection bear multi-service? Why?
A: CCC is abbreviated from Circuit Cross Connect, and MPLS L2VPN is implemented through static configuration. Unlike the MPLS L2VPN which uses two layers of label, CCC uses one layer of label to transmit user data. Therefore, CCC uses the LSP exclusively.
1.7 Configuration Reference
1.7.1 Configure the Port
1. Configure RTA<RTA>system-view [RTA]int loopback 0[RTA-LoopBack0]ip address 1.1.1.1 255.255.255.255[RTA]int serial 3/0[RTA-Serial 3/0]undo shutdown[RTA]int serial 2/0[RTA-Serial2/0]undo shutdwon
2. Configure RTC<RTC>system-view
Confidential Information of Huawei. No Spreading without Permission4
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
[RTC]interface serial 3/0[RTC-Serial 3/0]ip address 172.1.1.2 255.255.255.252
3. Configure RTD<RTD> system-view [RTD] interface serial 2/0[RTD-Serial2/0] ip add 172.1.1.1 255.255.255.252
1.7.2 Service configuration
1. Configure RTA
1) Specify an LSR ID[RTA] mpls lsr-id 1.1.1.1
2) Run the MPLS[RTA] mpls
3) Run the MPLS L2VPN[RTA] mpls l2vpn
4) Create a CCC local connection[RTA] ccc RTC-RTD interface Serial2/0 out-interface Serial3/0
Confidential Information of Huawei. No Spreading without Permission 5
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Chapter 2 Configuration Guide to CCC Remote Connection
2.1 Networking and Service Description
Figure 1-3
RTB and RTC are connected through Serial interfaces, and PPP is encapsulated at the link layer. RTA and RTB are connected through Ethernet interfaces, and so are RTC and RTD. RTA and RTD have a CCC remote connection established between them.
RTB’s interface connected to RTA does not need to have an IP address configured.
2.2 Command Line List
Table 1-1
Operation Version Command
Configure LSR ID VRP 3.30 mpls lsr-id X.X.X.XVRP 5.10 mpls lsr-id X.X.X.X
Enable MPLS and enter the MPLS view
VRP 3.30 mplsVRP 5.10 mpls
Enable MPLS L2VPN VRP 3.30 mpls l2vpnVRP 5.10 mpls l2vpn
Confidential Information of Huawei. No Spreading without Permission6
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Operation Version Command
Set the LSR to be an ingress node for the specified LSP
VRP 3.30static-lsp ingress lsp-name l2vpn { nexthop next-hop-addr | outgoing-interface interface-type interface-num } out-label out-label
VRP 5.10
Set the LSR to be an intermediate node for the specified LSP
VRP 3.30
static-lsp transit lsp-name l2vpn incoming-interface interface-type interface-num in-label in-label { nexthop next-hop-addr | outgoing-interface interface-type interface-num } out-label out-label
VRP 5.10
static-lsp transit lsp-name incoming-interface interface-type interface-number in-label in-label { nexthop next-hop-addr | outgoing-interface interface-type interface-number } out-label out-label
Set the LSR to be an egress node for the specified LSP VRP 3.30
static-lsp egress lsp-name l2vpn incoming-interface interface-type interface-num in-label in-label
VRP 5.10
Create a CCC remote connection
VRP 3.30ccc ccc-connection-name interface interface-type interface-num transmit-lsp transmit-lsp-name receive-lsp receive-lsp-name
VRP 5.10
ccc ccc-connection-name interface interface-type inteface-number in-label in-label-value out-label out-label-value { nexthop ip-address | out-interface interface-type inteface-number }
In VRP5.10, each CCC remote connection does not need to have two static LSPs, but only need to have an inbound label and an outbound label configured. The inbound label is used exclusively by the CCC connection. This has the same effect as a configured static LSP.
Note:
If the egress interface is an Ethernet interface, you must specify the next-hop IP address.
2.3 Configuration Flow
Confidential Information of Huawei. No Spreading without Permission 7
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
EMBED Visio.Drawing.6
Specify anLSR ID
Run the MPLS
Run the MPLS
L2VPN
Create a CCC
remote connection
Create a staticLSP
Figure 1-4
2.4 Configuration Procedure
1) Specify an LSR ID
From the system view, specify the MPLS LSR ID.
2) Run the MPLS
Run the MPLS from the system view and run the MPLS at the corresponding port.
3) Create a static LSP
Create two static LSPs from the MPLS view. Each LSP is responsible for unidirectional data transmission. To be specific, one LSP transmits data from RTB to RTD, and the other LSP transmits data from RTD to RTB.
4) Run the MPLS L2VPN
From the system view, run the MPLS L2VPN.
5) Create a CCC remote connection
Create a CCC local connection, whose interfaces are the ports connected to RTC and RTD respectively.
Confidential Information of Huawei. No Spreading without Permission8
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
2.5 Result Verification
Instructions for the author: Give the methods and procedures for verifying the result. Perform the verification in diversified ways on a step-by-step basis. In this way, the students can understand the working principles of services more completely while verifying the result.
1) Execute the display ccc command. You may find that a CCC remote connection has been established.
[RTB]display ccc total connections : 1local connections : 0, 0 upremote connections : 1, 1 up
name: RTC-RTD, type: remote, state: up,intf: Ethernet0/0 (up), tran-lsp: RTA-RTB (up), rcv-lsp: RTB-RTA (up))
[RTC]display ccc total connections : 1local connections : 0, 0 upremote connections : 1, 1 up
name: RTC-RTD, type: remote, state: up,intf: Ethernet0/0 (up), tran-lsp: RTB-RTA (up), rcv-lsp: RTA-RTB (up)
Note:
If you view the CCC connection information on RTB and RTC, you will see an established CCC remote connection in UP status.
2) On the other hand, you may view the status information of the LSP and static LSP through the display mpls lsp and display mpls static-lsp commands.
[RTB] display mpls lsp
----------------------------------------------------------------------- LSP Information: Static Lsp-----------------------------------------------------------------------
TOTAL: 2 Record(s) Found.
NO FEC NEXTHOP I/O-LABEL OUT-INTERFACE 1 0.0.0.0/0 192.2.2.1 -----/100 S2/0 2 -------/-- ------- 200/----- -------
[RTC] display mpls lsp
----------------------------------------------------------------------- LSP Information: Static Lsp-----------------------------------------------------------------------
TOTAL: 2 Record(s) Found.
NO FEC NEXTHOP I/O-LABEL OUT-INTERFACE 1 0.0.0.0/0 192.2.2.2 -----/200 S2/0 2 -------/-- ------- 100/----- -------
2.6 FAQ
Q: What’s the full name of CCC? Can a CCC connection bear multi-service? Why?
A: CCC is abbreviated from Circuit Cross Connect, and MPLS L2VPN is implemented through static configuration. Unlike the MPLS L2VPN which uses two layers of label,
Confidential Information of Huawei. No Spreading without Permission 9
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
CCC uses one layer of label to transmit user data. Therefore, CCC uses the LSP exclusively.
2.7 Configuration Reference
2.7.1 Configure the Port
1. Configure RTA<RTA> system-view [RTA] interface ethernet 0/0[RTA-Ethernet0/0] ip address 10.1.1.1 255.255.255.252
2. Configure RTB<RTB> system-view [RTB] interface loopback 0[RTB-LoopBack0] ip address 2.2.2.2 255.255.255.255[RTB] interface serial 2/0[RTB-Serial2/0] ip address 192.2.2.2 255.255.255.252
3. Configure RTC<RTC> system-view[RTC] interface loopback 0[RTC-LoopBack0] ip address 3.3.3.3 255.255.255.255[RTC] int serial 2/0[RTC-Serial2/0] ip address 192.2.2.1 255.255.255.252
4. Configure RTD<RTD> system-view [RTD] interface ethernet 0/0[RTD-Ethernet0/0] ip address 10.1.1.2 255.255.255.252
2.7.2 Service configuration
1. Configure RTB
1) Specify an LSR ID[RTB] mpls lsr-id 2.2.2.2
2) Run the MPLS[RTB] mpls[RTB-Serial2/0] mpls
3) Configure Static RP[RTB-mpls] static-lsp ingress RTA-RTB l2vpn nexthop 192.2.2.1 out-label 100[RTB-mpls] static-lsp egress RTB-RTA l2vpn incoming-interface Serial2/0 in-label 200
4) Run the MPLS L2VPN[RTB] mpls l2vpn
5) Create a CCC remote connection[RTB] ccc RTC-RTD interface Ethernet0/0 transmit-lsp RTA-RTB receive-lsp RTB-RTA
Confidential Information of Huawei. No Spreading without Permission10
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Note:
In VRP 5.10, the following information will be displayed:[RTB] ccc RTC-RTD interface ethernet 0/0 in-label 200 out-label 100 next-hop 192.2.2.1
2. Configure RTC
1) Specify an LSR ID[RTC] mpls lsr-id 3.3.3.3
2) Run the MPLS[RTC] mpls[RTC-Serial2/0] mpls
3) Configure Static RP[RTC-mpls] static-lsp ingress RTB-RTA l2vpn nexthop 192.2.2.2 out-label 200[RTC-mpls] static-lsp egress RTA-RTB l2vpn incoming-interface Serial2/0 in-label 100
Note:
This command is unavailable in VRP 5.10.
1) Run the MPLS L2VPN[RTC] mpls l2vpn
2) Create a CCC remote connection[RTC] ccc RTC-RTD interface Ethernet0/0 transmit-lsp RTB-RTA receive-lsp RTA-RTB
Note:
VRP 5.10:
[RTC] ccc RTC-RTD interface ethernet 0/0 in-label 100 out-label 200 next-hop 192.2.2.2
Confidential Information of Huawei. No Spreading without Permission 11
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Chapter 3 Martini Configuration Guide
3.1 Networking and Service Description
Figure 1-5
RTA accesses RTB in the VLAN mode, and RTD accesses RTC in the VLAN mode.
A Martini MPLS L2VPN is established between RTA and RTD.
3.2 Command Line List
Table 1-1
Operation Version Command
Configure LSR ID VRP 3.30 mpls lsr-id X.X.X.XVRP 5.10 mpls lsr-id X.X.X.X
Enable MPLS and enter the MPLS view
VRP 3.30 mplsVRP 5.10 mpls
Enable the MPLS capability for an interface
VRP 3.30 mplsVRP 5.10 mpls
Enable LDP and enter LDP view VRP 3.30 mpls ldpVRP 5.10 mpls ldp
Activate the LDP function for an interface
VRP 3.30 mpls ldp enableVRP 5.10 mpls ldp enable
Enable MPLS L2VPN VRP 3.30 mpls l2vpnVRP 5.10 mpls l2vpnVRP 3.30 mpls ldp remote-peer index
Confidential Information of Huawei. No Spreading without Permission12
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Operation Version Command
Enter the MPLS-LDP remote peer view VRP 5.10 mpls ldp remote-peer index
Create a Martini MPLS L2VPN connection
VRP 3.30 mpls l2vc destination vc-idVRP 5.10 mpls l2vc destination vc-id
Configure address for the remote peer
VRP 3.30 remote-ip ip-addressVRP 5.10 remote-ip ip-address
3.3 Configuration Flow
EMBED Visio.Drawing.6
Specify anLSR ID
Run the MPLS
Run the MPLS L2VPN
Create an LSP remote
session
Run the MPLS LDP
Create a Martini MPLS
L2VPN connection
Figure 1-6
3.4 Configuration Procedure
1) Specify an LSR ID
From the system view, specify the MPLS LSR ID.
2) Run the MPLS
Run the MPLS from the system view and run the MPLS at the corresponding port.
Confidential Information of Huawei. No Spreading without Permission 13
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
3) Run the MPLS LDP
Run the MPLS LDP from the system view and activate the MPLS LDP at the corresponding port.
4) Create an LDP remote session
First, in the MPLS-LDP view, execute the remote-peer index command to enter the MPLS-LDP-Remote view.
Then, in the MPLS-LDP-Remote view, execute the remote-ip ip-address command to specify a remote peer entity.
Caution:
The precondition for establishing an LDP session is that a TCP connection must be established between the LSR-IDs of both parties. If both the routers take their Loopback addresses as LSR-IDs, each router needs the information of the route to the Loopback address of the other router.
5) Run the MPLS L2VPN
From the system view, run the MPLS L2VPN.
6) Create a Martini MPLS L2VPN connection
Create an L2VPN connection at the access interface.
3.5 Result Verification
1) Execute the display mpls l2vc command to view the L2VPN connection information on RTB and RTC. You may find that an L2 VC is established.
[RTB] display mpls l2vc Total l2vc : 1 l2vc : 1 up l2vc : 0 down
Interface Ethernet0/0.10, Encapsulation: vlan, Service: VLLVC-ID Destination State Lcl-Label/Rmt-Label Tunnel/Index 100 3.3.3.3 up 1024/1024 LSP/0
[RTC] display mpls l2vc Total l2vc : 1 l2vc : 1 up l2vc : 0 down
Interface Ethernet0/0.10, Encapsulation: vlan, Service: VLLVC-ID Destination State Lcl-Label/Rmt-Label Tunnel/Index 100 2.2.2.2 up 1024/1025 LSP/0
2) From RTA, ping the interface address 10.1.1.2 of RTD. You can ping it successfully.
[RTA] 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=57 ms Reply from 10.1.1.2 : bytes=56 Sequence=2 ttl=255 time=35 ms Reply from 10.1.1.2 : bytes=56 Sequence=3 ttl=255 time=35 ms Reply from 10.1.1.2 : bytes=56 Sequence=4 ttl=255 time=35 ms Reply from 10.1.1.2 : bytes=56 Sequence=5 ttl=255 time=34 ms
--10.1.1.2 ping statistics-- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss
Confidential Information of Huawei. No Spreading without Permission14
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
round-trip min/avg/max = 34/39/3 ms
3.6 FAQ
Q: What are the main contents of a Virtual Circuit (VC) that is established between two CEs in the Martini mode?
A: Martini uses VC-TYPE and VC-ID to identify a VC.
VC-TYPE: To indicate that the VC type is ATM, VLAN, PPP or others. VC-ID: VC-ID is unique in the whole PE for all VCs of the same VC-TYPE.
A PE that connects two CEs switches VC labels through LDP and binds CEs through VC-ID.
When an LSP is successfully established to connect two PEs, a VC is established after the two PEs complete label switching and binding. In this case, CEs at both ends may transmit layer-2 data over this VC.
In order to switch VC labels between PEs, the Martini draft expands the LDP by adding an FEC type: VC FEC.
In addition, it is possible that two PEs that switch VC labels are not connected directly, so the LDP must establish a remote session using remote peer and transmit VC FEC and VC label over the session.
3.7 Additional Task
Change the Martini access mode to PPP, and make RTA and RTD to be pinged successfully.
3.8 Configuration Reference
3.8.1 Configure the Port
1. Configure RTA<RTA> system-view [RTA] interface ethernet 0/0.10[RTA-Ethernet0/0.10] vlan-type dot1q vid 10[RTA-Ethernet0/0.10] ip address 10.1.1.1 255.255.255.252
2. Configure RTB<RTB> system-view [RTB] interface loopback 0[RTB-LoopBack0] ip address 2.2.2.2 255.255.255.255[RTB] interface ethernet 0/0.10[RTB-Ethernet0/0.10] vlan-type dot1q vid 10[RTB] interface serial 2/0[RTB-Serial2/0] ip address 192.2.2.2 255.255.255.252
3. Configure RTC<RTC> system-view[RTC] interface loopback 0[RTC-LoopBack0] ip address 3.3.3.3 255.255.255.255[RTC] interface ethernet 0/0.10[RTC-Ethernet0/0.10] vlan-type dot1q vid 10[RTC] interface serial 2/0[RTC-Serial2/0] ip add 192.2.2.1 255.255.255.252
Confidential Information of Huawei. No Spreading without Permission 15
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
4. Configure RTD<RTD> system-view [RTD] interface ethernet 0/0.10[RTD-Ethernet0/0.10] vlan-type dot1q vid 10[RTD-Ethernet0/0.10] ip address 10.1.1.2 255.255.255.252
3.8.2 Service configuration
1. Configure RTB
1) Specify an LSR ID[RTB] mpls lsr-id 2.2.2.2
2) Run the MPLS[RTB] mpls
3) Run the MPLS on the port[RTB-Serial2/0] mpls
4) Run the LDP[RTB] mpls ldp
5) Run the LDP on the port[RTB-Serial2/0] mpls ldp enable
6) Configure an LSP remote session[RTB] mpls ldp remote-peer 0 [RTB-mpls-remote0] remote-ip 3.3.3.3
7) Run the MPLS L2VPN[RTB] mpls l2vpn
8) Create a Martini MPLS L2VPN connection[RTB-Ethernet0/0.10] mpls l2vc 3.3.3.3 100
9) Enable OSPF[RTB] router id 2.2.2.2[RTB] ospf[RTB-ospf-1] area 0[RTB-ospf-1-area-0.0.0.0] network 192.2.2.0 0.0.0.3[RTB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
2. Configure RTC
1) Specify an LSR ID[RTC] mpls lsr-id 3.3.3.3
2) Run the MPLS[RTC] mpls
3) Run the MPLS on the port[RTC-Serial2/0] mpls
Confidential Information of Huawei. No Spreading without Permission16
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
4) Run the LDP[RTC] mpls ldp
5) Run the LDP on the port[RTC-Serial2/0] mpls ldp enable
6) Configure an LSP remote session[RTC] mpls ldp remote-peer 0 [RTC-mpls-remote0] remote-ip 2.2.2.2
7) Run the MPLS L2VPN[RTC] mpls l2vpn
8) Create a Martini MPLS L2VPN connection[RTC-Ethernet0/0.10] mpls l2vc 2.2.2.2 100
9) Enable OSPF[RTC] router id 3.3.3.3[RTC] ospf[RTC-ospf-1] area 0[RTC-ospf-1-area-0.0.0.0] network 192.2.2.0 0.0.0.3[RTC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
Confidential Information of Huawei. No Spreading without Permission 17
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Chapter 4 Kompella Configuration Guide
4.1 Networking and Service Description
Figure 1-7
RTA and RTB are connected through Ethernet interfaces, so are RTD and RTC. A Kompella MPLS L2VPN is established between RTA and RTD.
RTB’s interface for connecting RTA does not need to have an IP address configured. RTC’s interface for connecting RTD does not need to have an IP address configured.
4.2 Command Line List
Table 1-1
Operation Version Command
Enable BGP and enter the BGP view
VRP 3.30 bgp as-numberVRP 5.10 bgp as-number
Create a peer group VRP 3.30 group group-name [ internal | external ] VRP 5.10 group group-name [ internal | external ]
Specify an AS number for the EBGP peer group
VRP 3.30 peer group-name as-number as-numberVRP 5.10 peer group-name as-number as-number
Specify an AS number for the IBGP peer group
VRP 3.30 peer group-name as-numberVRP 5.10 peer group-name as-number
Confidential Information of Huawei. No Spreading without Permission18
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Operation Version Command
Enter MBGP vpn-instance address family view
VRP 3.30 l2vpn-familyVRP 5.10 l2vpn-family
Enable the specified peer group VRP 3.30 peer group-name enableVRP 5.10 peer group-name enable
Create a VPN instance and specify the encapsulation mode
VRP 3.30 mpls l2vpn vpn-name encapsulation { atm-aal5 | ethernet | fr | hdlc | ppp | vlan }
VRP 5.10 mpls l2vpn vpn-name encapsulation { atm-aal5 | ethernet | fr | hdlc | ppp | vlan }
Configure RD for MPLS L2VPN VRP 3.30 route-distinguisher route-distinguisherVRP 5.10 route-distinguisher route-distinguisher
Configure VPN-target for MPLS L2VPN
VRP 3.30 vpn-target vpn-target-ext-community [ import-extcommunity | export-extcommunity | both ]
VRP 5.10 vpn-target vpn-target-ext-community [ import-extcommunity | export-extcommunity | both ]
Create a CE/modify the CE range VRP 3.30 ce name id id [ range range ] VRP 5.10 ce name id id [ range range ]
Creating connectionVRP 3.30 connection interface-type interface-num [ ce-offset
offset ]
VRP 5.10 connection interface-type interface-num [ ce-offset offset ]
4.3 Configuration Flow
Confidential Information of Huawei. No Spreading without Permission 19
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
EMBED Visio.Drawing.6
Specify an LSR ID
Run the MPLS
Run the BGP and establish
an IBGP neighbor
Run the MPLS LDP
Enable theIBG neighbor
under L2VPN-Family
Run the MPLS
L2VPN
Create an L2VPN
instance
Configure RD and RT
Create a Kompella MPLS
L2VPN connection
Figure 1-8
4.4 Configuration Procedure
1) Specify an LSR ID
From the system view, specify the MPLS LSR ID.
2) Run the MPLS
Confidential Information of Huawei. No Spreading without Permission20
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
Run the MPLS from the system view and run the MPLS at the corresponding port.
3) Run the MPLS LDP
Run the MPLS LDP from the system view and activate the MPLS LDP at the corresponding port.
Caution:
The precondition for establishing an LDP session is that a TCP connection must be established between the LSR-IDs of both parties. If both the routers take their Loopback addresses as LSR-IDs, each router needs the information of the route to the Loopback address of the other router.
4) Run the BGP routing protocol and establish the IBGP neighborhood
From the system view, run the BGP to enter the BGP view and establish the IBGP neighborhood.
5) Activate the IBGP neighbor under L2VPN-Family
Enter the L2VPN-Family address familiar from the BGP view and activate the IBGP neighbor.
6) Run the MPLS L2VPN
From the system view, run the MPLS L2VPN.
7) Create an L2VPN instance
From the system view, create an MPLS L2VPN instance.
8) Configure the RD and RT attributes
Configure the RD and RT attributes from the MPLS L2VPN instance view.
9) Create a Kompella MPLS L2VPN connection
Create a Kompella MPLS L2VPN connection from the MPLS L2VPN instance view.
Caution:
While modifying a CE range, you can only make the CE range larger, but not smaller. For example, you can change a CE range from 10 to 20, but cannot change it to 5. To make a CE range smaller, you can only first delete the CE and then re-create it.
4.5 Result Verification
1) View the L2VPN connection information on RTB and RTC. You may find that an L2VPN connection is established.
[RTB] display mpls l2vpn connection total connections: 1,connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown
VPN-Instance Name: vpna, total connections: 1,connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown
CE Name RTA, id: 0, Rid type status peer-id route-distinguisher intf 1 rmt up 3.3.3.3 100:2 Ethernet0/0
[RTC] display mpls l2vpn connection
Confidential Information of Huawei. No Spreading without Permission 21
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
total connections: 1,connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown
VPN-Instance Name: vpna, total connections: 1,connections: 1 up, 0 down, 0 local, 1 remote, 0 unknown
CE Name RTD, id: 1, Rid type status peer-id route-distinguisher intf 0 rmt up 2.2.2.2 100:1 Ethernet0/0
2) From RTA, ping the interface address 10.1.1.2 of RTD. You can ping it successfully.
[RTA] 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=57 ms Reply from 10.1.1.2 : bytes=56 Sequence=2 ttl=255 time=35 ms Reply from 10.1.1.2 : bytes=56 Sequence=3 ttl=255 time=35 ms Reply from 10.1.1.2 : bytes=56 Sequence=4 ttl=255 time=35 ms Reply from 10.1.1.2 : bytes=56 Sequence=5 ttl=255 time=34 ms
--10.1.1.2 ping statistics-- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 34/39/3 ms
4.6 FAQ
Q: Why is Kompella applied extensively in practice?
A: Because the Kompella MPLS L2VPN also uses VPN Target to manage VPN routes. As a result, this networking mode is much flexible.
Q: Why should you assign a reasonable CE-ID range in configuring Kompella.
A: Because the CE range can only be made larger, but not smaller. To make a CE range smaller, you should first delete the CE and then re-create it.
4.7 Configuration Reference
4.7.1 Configure the Port
1. Configure RTA<RTA> system-view [RTA] interface ethernet 0/0[RTA-Ethernet0/0] ip address 10.1.1.1 255.255.255.252
2. Configure RTB<RTB> system-view [RTB] interface loopback 0[RTB-LoopBack0] ip address 2.2.2.2 255.255.255.255[RTB] interface serial 2/0[RTB-Serial2/0] ip address 192.2.2.2 255.255.255.252
3. Configure RTC<RTC> system-view[RTC] interface loopback 0[RTC-LoopBack0] ip address 3.3.3.3 255.255.255.255[RTC] interface serial 2/0
Confidential Information of Huawei. No Spreading without Permission22
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
[RTC-Serial2/0] ip address 192.2.2.1 255.255.255.252
4. Configure RTD<RTD> system-view [RTD] interface ethernet 0/0[RTD-Ethernet0/0] ip address 10.1.1.2 255.255.255.252
4.7.2 Service configuration
1. Configure RTB
1) Run ospf[RTB] router id 2.2.2.2[RTB] ospf[RTB-ospf-1] area 0[RTB-ospf-1-area-0.0.0.0] network 192.2.2.0 0.0.0.3[RTB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
2) Specify an LSR ID[RTB] mpls lsr-id 2.2.2.2
3) Run the MPLS[RTB] mpls
4) Run the MPLS on the port[RTB-Serial2/0] mpls
5) Run the LDP[RTB] mpls ldp
6) Run the LDP on the port[RTB-Serial2/0] mpls ldp enable
7) Run the BGP and establish the IBGP neighborhood[RTB] bgp 100[RTB-bgp] group ibgp[RTB-bgp] peer 3.3.3.3 group ibgp[RTB-bgp] peer 3.3.3.3 connection-interface loopback 0
8) Activate the IBGP neighbor under L2VPN-Family[RTB-bgp-af-l2vpn] peer ibgp enable
9) Run the MPLS L2VPN[RTB] mpls l2vpn
10) Create an L2VPN instance[RTB] mpls l2vpn vpna encapsulation ethernet
11) Configure RD and RT[RTB-mpls-l2vpn-vpna] route-distinguisher 100:1[RTB-mpls-l2vpn-vpna] vpn-target 100:1
12) Create a Kompella MPLS L2VPN connection[RTB-mpls-l2vpn-vpna] ce RTA id 0
Confidential Information of Huawei. No Spreading without Permission 23
ODJ000016 MPLS L2 VPN Laboratory Exercise Guide ISSUE 1.2 Chapter 4 Kompella Configuration Guide
[RTB-mpls-l2vpn-ce-vpna-RTA] connection ce-offset 1 interface Ethernet 0/0
2. Configure RTC
1) Run ospf[RTC] router id 3.3.3.3[RTC] ospf[RTC-ospf-1] area 0[RTC-ospf-1-area-0.0.0.0] network 192.2.2.0 0.0.0.3[RTC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
2) Specify an LSR ID[RTC] mpls lsr-id 3.3.3.3
3) Run the MPLS[RTC] mpls
4) Run the MPLS on the port[RTC-Serial2/0] mpls
5) Run the LDP[RTC] mpls ldp
6) Run the LDP on the port[RTC-Serial2/0] mpls ldp enable
7) Run the BGP and establish the IBGP neighborhood[RTC] bgp 100[RTC-bgp] group ibgp[RTC-bgp] peer 2.2.2.2 group ibgp[RTC-bgp] peer 2.2.2.2 connection-interface loopback 0
8) Activate the IBGP neighbor under L2VPN-Family[RTC-bgp-af-l2vpn] peer ibgp enable
9) Run the MPLS L2VPN[RTC] mpls l2vpn
10) Create an L2VPN instance[RTC] mpls l2vpn vpna encapsulation ethernet
11) Configure RD and RT[RTC-mpls-l2vpn-vpna] route-distinguisher 100:2[RTC-mpls-l2vpn-vpna] vpn-target 100:1
12) Create a Kompella MPLS L2VPN connection[RTC-mpls-l2vpn-vpna] ce RTD id 1[RTC-mpls-l2vpn-ce-vpna-RTD] connection ce-offset 0 interface Ethernet 0/0
Confidential Information of Huawei. No Spreading without Permission24