Sei sulla pagina 1di 19

NE Series Routers BGP MPLS VPN Practice

Guide
NE Series Routers - BGP MPLS VPN Practice Guide

Contents
Typical Usage Scenarios of BGP MPLS VPN................................................................... 1
Experiment Description..................................................................................................... 2
Environment Introduction .................................................................................................................. 2
Objectives ......................................................................................................................................... 2
References ....................................................................................................................................... 2
Topology ........................................................................................................................................... 2
Tasks ................................................................................................................................................ 3
Data Plan.......................................................................................................................................... 3
Configuration Preparation ................................................................................................................. 3
Configuration Flowchart .................................................................................................................... 3

Configuration Procedure and Verification ....................................................................... 4


Step 1: Configure Router Interface IP Addresses ............................................................................... 4
Configuration Description ............................................................................................................ 4
Configure CE1............................................................................................................................. 4
Configure PEA ............................................................................................................................ 4
Configure PEB ............................................................................................................................ 4
Configure CE2............................................................................................................................. 5
Verify the configuration ................................................................................................................ 5
Step 2: Enable OSPF in the MPLS domain........................................................................................ 6
Configuration Description ............................................................................................................ 6
Configure PEA ............................................................................................................................ 6
Configure PEB ............................................................................................................................ 6
Verify the Configuration ............................................................................................................... 6
Step 3: Enable MPLS LDP on PEA and PEB ..................................................................................... 7
Configuration Description ............................................................................................................ 7
Configure PEA ............................................................................................................................ 8
Configure PEB ............................................................................................................................ 8
Verify the Configuration ............................................................................................................... 8
Step 4: Create a VPN Instance ......................................................................................................... 9
Configuration Description ............................................................................................................ 9
Configure PEA............................................................................................................................. 9
Configure PEB ...........................................................................................................................10
Verify the Configuration ..............................................................................................................10
Step 5: Establish a BGP Peer Relationship between PE and CE ...................................................... 11
Configuration Description ........................................................................................................... 11
Configure PEA ........................................................................................................................... 11
Configure CE1............................................................................................................................ 11
Configure PEB ........................................................................................................................... 11

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide

Configure CE2............................................................................................................................ 11
Verify the Configuration ..............................................................................................................12
Step 6: Configure MP-BGP on PEA and PEB ...................................................................................12
Configuration Description ...........................................................................................................12
Configure PEA ...........................................................................................................................12
Configure PEB ...........................................................................................................................12
Verify the Configuration ..............................................................................................................13
Step 7: Import Routes ......................................................................................................................13
Configuration Description ...........................................................................................................13
Configure CE1............................................................................................................................13
Configure CE2............................................................................................................................13
Verify the Configuration ..............................................................................................................13

FAQ ................................................................................................................................... 15
Answers ............................................................................................................................ 16

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 1

NE Series Routers BGP MPLS VPN


Configuration Guide
Typical Usage Scenarios of BGP MPLS VPN
MPLS VPN can connect VPN sites to form a unified network. MPLS VPN can also control
interworking between VPNs. Customer Edges (CEs) are edge devices on a Customer Network.
Provider Edges (PEs) are edge devices on a Service Provider (SP) network and are located at
Backbone Network. P devices are backbone devices on an SP network and are not directly
connected to CEs. VPN data is forwarded using MPLS labels.

Based on the application of BGP MPLS VPN on live networks, this chapter describes how to configure BGP MPLS VPN
on NE Series routers.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 2

Experiment Description

Environment Introduction
This guide describes the implementation and application of MPLS L3VPN. This guide also
describes how to configure MPLS L3VPN. Router Visio 1.6.7 is used to build an experiment
environment.

Objectives
Configure BGP MPLS VPN.
Troubleshoot BGP MPLS VPN faults.

References
NE40E&NE80E Command Reference 04

Topology

In the topology, CE1 and CE2 on VPNA are connected using BGP MPLS VPN. The CEs'
Loopback 0 addresses are used to simulate network segment routes. The backbone network is
located in AS 100. OSPF runs in the MPLS domain. CE1 and CE2 are located in AS 64520 and AS
64530, respectively. Directly connected interfaces are used to establish EBGP peer relationships
between CE1 and PEA and between CE2 and PEB. For details about planned IP addresses, see
the topology.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 3

Tasks
Task Description
1 Run OSPF to implement interworking between the devices in the MPLS domain.
2 Create a VPN according to the sub-interface plan in the topology, configure BGP MPLS
VPN, and ensure that the simulated network IP addresses of CE1 and CE2 are
reachable.

Data Plan
PEA: RD 100:1; RT (import/export) 200:1
PEB: RD 300:1; RT (import/export) 200:1

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

Configuration Flowchart

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 4

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 Ethernet 0/0/0
[CE1-Ethernet0/0/0]ip address 21.1.1.1 30
[CE1-Ethernet0/0/0]undo shutdown
[CE1-Ethernet0/0/0]quit
[CE1]interface LoopBack 1
[CE1-LoopBack1]ip address 11.11.11.11 32

Configure PEA
<Quidway>system-view
[Quidway]sysname PEA
[PEA]interface Ethernet 0/0/0
[PEA-Ethernet0/0/0]ip address 21.1.1.2 30
[PEA-Ethernet0/0/0]undo shutdown
[PEA-Ethernet0/0/0]quit
[PEA]interface Ethernet 0/0/2
[PEA-Ethernet0/0/2]ip address 13.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

Configure PEB
<Quidway>system-view
[Quidway]sysname PEB
[PEB]interface Ethernet 0/0/2
[PEB-Ethernet0/0/2]ip address 13.1.1.2 30
[PEB-Ethernet0/0/2]undo shutdown
[PEB-Ethernet0/0/2]quit
[PEB]interface Ethernet 0/0/0
[PEB-Ethernet0/0/0]ip address 32.1.1.2 30

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 5

[PEB-Ethernet0/0/0]undo shutdown
[PEB-Ethernet0/0/0]quit
[PEB]interface LoopBack 0
[PEB-LoopBack0]ip address 3.3.3.3 32

Configure CE2
<Quidway>system-view
[Quidway]sysname CE2
[CE2]interface Ethernet 0/0/0
[CE2-Ethernet0/0/0]ip address 32.1.1.1 30
[CE2-Ethernet0/0/0]undo shutdown
[CE2-Ethernet0/0/0]quit
[CE2]interface LoopBack 1
[CE2-LoopBack1]ip address 21.21.21.21 32

Verify the configuration


1. Run the display ip interface brief command to view brief information about interfaces. The
following uses CE1 as an example.
<CE1>display ip interface brief
*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 3
The number of interfaces that are DOWN in Physical is 0
The number of interfaces that are UP in Protocol is 3
The number of interfaces that are DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
Ethernet0/0/0 21.1.1.1/30 up up
LoopBack1 11.11.11.11/32 up up(s)
NULL0 unassigned 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 13.1.1.2
PING 13.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 13.1.1.2: bytes=56 Sequence=1 ttl=255 time=440 ms
Reply from 13.1.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 13.1.1.2: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 13.1.1.2: bytes=56 Sequence=4 ttl=255 time=60 ms
Reply from 13.1.1.2: bytes=56 Sequence=5 ttl=255 time=70 ms
--- 13.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/126/440 ms

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 6

The command output shows that the communication between PEA and PEB is normal. Use
this method to check direct link connectivity between routers.

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.0] 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 13.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 3.3.3.3
[PEB]ospf 1
[PEB-ospf-1]area 0
[PEB-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.3
[PEB-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0

Verify the Configuration


1. Run the display ospf 1 peer brief command to view the peer status of OSPF process 1. The
following uses PEA as an example.
[PEA]display ospf 1 peer brief
OSPF Process 1 with Router ID 1.1.1.1
Peer Statistic Information
-----------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Ethernet0/0/2 3.3.3.3 Full
-----------------------------------------------------------------

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 7

The command output shows that State is Full. That is, OSPF neighbor relationship of PEA is
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.
[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 13.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 3.3.3.3
PING 3.3.3.3: 56 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=255 time=50 ms
Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=255 time=60 ms
Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=255 time=60 ms
Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=255 time=60 ms
--- 3.3.3.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/52/60 ms

Step 3: Enable MPLS LDP on PEA and PEB

Configuration Description
Operation View Command
Configure an LSR ID. [Quidway] mpls lsr-id x.x.x.x

Enable MPLS globally. [Quidway] mpls

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

Enable MPLS LDP globally. [Quidway] mpls ldp

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

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 8

Configure PEA
[PEA]mpls lsr-id 1.1.1.1

\\Set the LSR ID to 1.1.1.1.


[PEA]mpls
[PEA-mpls]quit

\\Enable MPLS globally.


[PEA]interface e0/0/2
[PEA-Ethernet0/0/2]mpls
[PEA-Ethernet0/0/2]quit

\\Enable MPLS on an interface.


[PEA]mpls ldp
[PEA-mpls-ldp]quit

\\Enable MPLS LDP globally.


[PEA]interface e0/0/2
[PEA-Ethernet0/0/2]mpls ldp
[PEA-Ethernet0/0/2]quit

\\Enable MPLS LDP on an interface.

Configure PEB
[PEB]mpls lsr-id 3.3.3.3
[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

Verify the Configuration


1. Run the display mpls ldp peer command to view the status of MPLS LDP peers. The
following uses PEA as an example.
[PEA]display mpls ldp peer
LDP Peer Information in Public network
A '*' before a peer means the peer is being deleted.
----------------------------------------------------------------
PeerID TransportAddress DiscoverySource
3.3.3.3:0 3.3.3.3 Ethernet0/0/2
----------------------------------------------------------------
TOTAL: 1 Peer(s) Found.
The command output shows that PEA has an LDP peer with the ID 3.3.3.3.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 9

2. Run the display mpls ldp lsp command to view information about MPLS LDP LSPs. The
following uses PEA as an example.
[PEA]display mpls ldp lsp
LDP LSP Information
-----------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHopOut Interface
1.1.1.1/32 3/NULL 3.3.3.3 127.0.0.1 InLoop0
*1.1.1.1/32 Liberal/1024 DS/3.3.3.3
3.3.3.3/32 NULL/3 - 13.1.1.2 Eth0/0/2
3.3.3.3/32 1024/3 3.3.3.3 13.1.1.2 Eth0/0/2
-----------------------------------------------------------------
TOTAL: 3 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
A '*' before an UpstreamPeer means the session is in GR state
A '*' before a DS means the session is in GR state
A '*' before a NextHop means the LSP is FRR LSP
The command output shows that MPLS LDP has allocated labels to the peer 3.3.3.3 and the
LSPs are formed.

Step 4: Create a VPN Instance

Configuration Description

According to the experiment requirements, a VPN instance needs to be created. The name of the VPN instance is
VPNA. The RDs of PEA and PEB are 100:1 and 300:1, respectively. The RTs of both PEA and PEB are 200:1.

Operation View Command


Create a VPN instance. [Quidway] ip vpn-instance name

Set an RD. [Quidway -vpn-instance-huawei] route-distinguisher rd

Set an RT. [Quidway -vpn-instance-huawei] vpn-target rt

Bind an interface to the [Quidway-Ethernet0/0/0] ip binding vpn-instance name


VPN instance.

Configure PEA.
[PEA]ip vpn-instance VPNA

\\Create a VPN instance named VPNA.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 10

[PEA-vpn-instance-VPNA]route-distinguisher 100:1
[PEA-vpn-instance-VPNa-af-ipv4]quit

\\Set the RD to 100:1.


[PEA-vpn-instance-VPNA]vpn-target 200:1
[PEA-vpn-instance-VPNA]quit

\\Set the RT to 200:1.


[PEA]interface Ethernet0/0/0
[PEA-Ethernet0/0/0]ip binding vpn-instance VPNA

\\Bind an interface to the VPN instance VPNA.


[PEA-Ethernet0/0/0]ip address 21.1.1.2 30

After an interface is bound to a VPN instance, the IP address configured in the interface is deleted. Therefore, you must
reconfigure an IP address for the interface.

Configure PEB
[PEB]ip vpn-instance VPNA
[PEB-vpn-instance-VPNA]route-distinguisher 300:1
[PEB-vpn-instance-VPNA-af-ipv4]quit
[PEB-vpn-instance-VPNA]vpn-target 200:1
[PEB-vpn-instance-VPNA]quit
[PEB]interface Ethernet 0/0/0
[PEB-Ethernet0/0/0]ip binding vpn-instance VPNA
[PEB-Ethernet0/0/0]ip address 32.1.1.2 30

Verify the Configuration


Run the display ip vpn-instance verbose to view the VPN instance configuration. The
following uses PEA as an example.
[PEA]display ip vpn-instance verbose
Total VPN-Instances configured : 1
VPN-Instance Name and ID : VPNA, 1
Interfaces : Ethernet0/0/0
Address family ipv4
Create date : 2012/07/05 10:20:54 -08:00
Up time : 0 days, 00 hours, 10 minutes and 05 seconds
Route Distinguisher : 100:1
Export VPN Targets : 200:1
Import VPN Targets : 200:1
Label Policy : label per route
The diffserv-mode Information is : uniform
The ttl-mode Information is : pipe
Log Interval : 5
The command output shows that the VPN instance VPNA is configured on PEA, the bound
interface is Ethernet 0/0/0, the RD is 100:1, and both the import and export RTs are 200:1.
Use this method to view the VPN instance configuration on PEB.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 11

Step 5: Establish a BGP Peer Relationship between


PE and CE

Configuration Description
Operation View Command
Run BGP. [Quidway] bgp as-number

Enter the BGP-VPN [Quidway-bgp] ipv4-family vpn-instance name


instance IPv4 address
family view.
Configure a BGP peer. [Quidway -bgp-VPNA] peer ip-address as-number as-number

Configure PEA
[PEA]bgp 100
[PEA-bgp]peer 3.3.3.3 as-number 100
[PEA-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[PEA-bgp]ipv4-family vpn-instance VPNA

\\Enter the BGP-VPN instance IPv4 address family view.


[PEA-bgp-VPNA]peer 21.1.1.1 as-number 64520

Configure CE1
[CE1]bgp 64520
[CE1-bgp]peer 21.1.1.2 as-number 100

Configure PEB
[PEB]bgp 100
[PEB-bgp]peer 1.1.1.1 as-number 100
[PEB-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[PEB-bgp]ipv4-family vpn-instance VPNA
[PEB-bgp-VPNA]peer 32.1.1.1 as-number 64530

Configure CE2
[CE2]bgp 64530
[CE2-bgp]peer 32.1.1.2 as-number 100

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 12

Verify the Configuration


Run the display bgp vpnv4 vpn-instance VPNA peer command to view BGP VPNv4 peer
information of the VPN instance. The following uses PEA as an example.
<PEA>display bgp vpnv4 vpn-instance VPNA peer
BGP local router ID : 21.1.1.2
Local AS number : 100
VPN-Instance VPNA, Router ID 21.1.1.2:
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
21.1.1.1 4 64520 150 150 0 02:28:50 Established 0
The command output shows that the peer relationship between CE1 and PEA is normal. Use
this method to view peer information on PEB.

Step 6: Configure MP-BGP on PEA and PEB

Configuration Description

Traditional BGP can manage IPv4 routes but not the routes of VPNs with overlapping address space. That is, VPNv4
routes cannot be supported. To correctly process VPN routes, MP-BGP uses the address family to differentiate network
layer protocols. An address family can be a traditional IPv4 address family or a VPN-IPv4 address family.

Operation View Command


Enter the VPNv4 [Quidway-bgp] ipv4-family vpnv4
address family.
Enable VPNv4 route [Quidway-bgp-af-vpnv4] peer x.x.x.x enable
exchange.

Configure PEA
[PEA]bgp 100
[PEA-bgp]ipv4-family vpnv4

\\Enter the VPNv4 address family.


[PEA-bgp-af-vpnv4]peer 3.3.3.3 enable

\\Enable VPNv4 route exchange with the peer 3.3.3.3.

Configure PEB
[PEB]bgp 100
[PEB-bgp]ipv4-family vpnv4
[PEB-bgp-af-vpnv4]peer 1.1.1.1 enable

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 13

Verify the Configuration


Run the display bgp vpnv4 all peer command to view information about all BGP VPNv4
peers. The following uses PEB as an example.
[PEB]display bgp vpnv4 all peer
BGP local router ID : 3.3.3.3
Local AS number : 100
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
1.1.1.1 4 100 2 2 0 00:00:13 Established 0
Peer of IPv4-family for vpn instance :
VPN-Instance VPNA, Router ID 3.3.3.3:
32.1.1.1 4 64530 152 152 0 02:30:58 Established 0
The command output shows that the VPNv4 peer relationship has been established between
PEB and PEA and that the VPNv4 peer relationship of the VPNA instance is normal.

Step 7: Import Routes

Configuration Description
Operation View Command
Import a route. [Quidway-bgp] network ip-address netmask

Configure CE1
[CE1]bgp 64520
[CE1-bgp]network 11.11.11.11 255.255.255.255

Configure CE2
[CE2]bgp 64530
[CE2-bgp]network 21.21.21.21 255.255.255.255

Verify the Configuration


1. Run the display ip routing-table command to view the routing table information of CE1.
[CE1]display ip routing-table
Route Flags: R - relay, D - download to fib
----------------------------------------------------------------
Routing Tables: Public
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost Flags NextHop Interface
11.11.11.11/32 Direct 0 0 D 127.0.0.1 InLoopBack0
21.1.1.0/30 Direct 0 0 D 21.1.1.1 Ethernet0/0/0
21.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
21.21.21.21/32 EBGP 255 0 D 21.1.1.2 Ethernet0/0/0

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 14

127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0


127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
The command output shows that CE1 has received the routes of CE2's simulated network
segments from the EBGP peers.
2. Run the display ip routing-table vpn-instance command to view the routing table
information of the VPN instance. The following uses PEA as an example.
<PEA>display ip routing-table vpn-instance VPNA
Route Flags: R - relay, D - download to fib
----------------------------------------------------------------
Routing Tables: VPNA
Destinations : 4 Routes : 4
Destination/Mask Proto Pre Cost Flags NextHop Interface
11.11.11.11/32 EBGP 255 0 D 21.1.1.1 Ethernet0/0/0
21.1.1.0/30 Direct 0 0 D 21.1.1.2 Ethernet0/0/0
21.1.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
21.21.21.21/32 IBGP 255 0 RD 3.3.3.3 Ethernet0/0/2
The command output shows that the routing table includes the routes of the simulated
network segments of CE1 and CE2.
3. Run the ping command to check link connectivity. For example, run the ping command with
the source IP address specified on CE1 to ping CE2's loopback interface. The following uses
CE1 as an example.
[CE1]ping -a 11.11.11.11 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=253 time=110 ms
Reply from 21.21.21.21: bytes=56 Sequence=2 ttl=253 time=80 ms
Reply from 21.21.21.21: bytes=56 Sequence=3 ttl=253 time=80 ms
Reply from 21.21.21.21: bytes=56 Sequence=4 ttl=253 time=60 ms
Reply from 21.21.21.21: bytes=56 Sequence=5 ttl=253 time=80 ms
--- 21.21.21.21 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 60/82/110 ms

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 15

FAQ
1. Which of the following commands can be used to view the routing table information of the
VPN instance named huawei? ( )

− display ip routing-table
− display ip routing-table huawei
− display ip routing-table vpn-instance huawei
2. What are the precautions for MP-BGP configuration?
3. Can I set the same RD on PEA and PEB?

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...
NE Series Routers - BGP MPLS VPN Practice Guide 16

Answers
1. C
2. You need to establish a BGP IPv4 peer relationship and then run the following commands to
enable VPNv4 route exchange in the VPNv4 address family:

[Quidway -bgp]ipv4-family vpnv4


[Quidway -bgp-af-vpnv4]peer x.x.x.x enable
3. No: if CE1 and CE2 have overlapping routes, the routes are withdrawn.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd...

Potrebbero piacerti anche