Académique Documents
Professionnel Documents
Culture Documents
This chapter describes how to configure seamless Multiprotocol Label Switching (MPLS).
Seamless MPLS can be used to deploy a complete Label Switched Path (LSP) between the
access, aggregation, and core layers to implement end-to-end service interworking.
7.1 Overview
7.2 Principles
7.3 Applications
7.4 Configuration Notes
7.5 Configuring Intra-AS Seamless MPLS
7.6 Configuring Inter-AS Seamless MPLS
7.7 Configuring Dynamic BFD to Monitor a BGP Tunnel
BFD for BGP tunnel rapidly detects faults in E2E BGP tunnels.
7.8 Maintaining Seamless MPLS
The seamless MPLS maintenance involves checking the connectivity and reachability of
seamless MPLS networks.
7.9 Configuration Examples
7.10 References
7.1 Overview
Definition
Seamless Multiprotocol Label Switching (MPLS) is a bearer technology that extends MPLS
to access networks. Seamless MPLS establishes an end-to-end label switched path (E2E LSP)
across the access, aggregation, and core layers. All services can be encapsulated using MPLS
at the access layer and transmitted along the E2E LSP across the three layers.
Purpose
Seamless MPLS was developed out of a need for greater flexibility in scenarios where
traditional MPLS overcomplicates network management. Traditional MPLS can converge
multiple networks on an Ethernet-based infrastructure, which fully exerts the advantages of a
single-forwarding model and reduces network construction costs. MPLS has been widely used
on aggregation and core networks.
Using the Internet Protocol (IP) to forward packets at the access layer, will result in low
forwarding efficiency. Because complicated VLAN configurations are required to associate
with devices at the aggregation and core layers, using IP to forward packets at the access layer
results in poor service scalability. To solve the preceding issue, seamless MPLS was
developed to extend MPLS to the access layer when used with MPLS-capable devices with
higher performance.
Seamless MPLS is not an entirely new technology. It uses mature BGP, IGP, and MPLS
technologies to establish an E2E LSP across the access, aggregation, and core layers,
implementing MPLS-based service forwarding on the entire network.
Benefits
Seamless MPLS provides the following advantages:
l Helps ease communication between the access, aggregation, and core layers on an MPLS
network.
l Simplifies network provisioning, operations, and maintenance because the technology
encapsulates all services and transmits these services along an E2E LSP.
l Has high deployment flexibility and scalability. On a seamless MPLS network, an LSP
between any two nodes can be established to roll out services.
7.2 Principles
Seamless MPLS deploys a Border Gateway Protocol (BGP) LSP across the access,
aggregation, and core layers to implement end-to-end service transmission through a tunnel.
An LSP can be established between any two nodes on a seamless MPLS network to transmit
service packets upstream and downstream. This network architecture ensures high service
scalability, while only needing to deploy signaling protocols at service access points.
Seamless MPLS supports the following three networking solutions:
l Intra-AS Seamless MPLS: The access, aggregation, and core layers are within a single
AS. Intra-AS seamless MPLS applies to mobile bearer networks.
l Inter-AS Seamless MPLS: The access and aggregation layers are within a single AS,
and the core layer is in another AS. Inter-AS seamless MPLS transmits enterprise
services.
Figure 7-1 Deploying routing protocols for the intra-AS seamless MPLS
networking
Single AS
NodeB/
eNodeB Aggregation
Access Core
MME/
SGW
CSG2 AGG2 Core ABR2 MASG2
NodeB/
eNodeB
Deploy tunnels.
In Figure 7-2, tunnel deployment is as follows:
n A public network tunnel is established using LDP in each IGP area.
n For example, the path CSG1 -> AGG1 -> core ABR1 -> MASG1 is used. An
IBGP peer relationship is established between each pair of the following
devices:
CSG and AGG
AGG and core ABR
Core ABR and MASG
These devices are enabled to advertise labeled routes and assign labels to BGP
routes that match a specified routing policy. After the devices exchange
labeled BGP routes, an E2E BGP LSP between the CSG and MASG is
established.
Figure 7-2 Deploying tunnels for the intra-AS seamless MPLS networking
Single AS
NodeB/
eNodeB Aggregation
Access Core
MME/
SGW
CSG2 AGG2 Core ABR2 MASG2
NodeB/
eNodeB
MPLS LDP MPLS LDP MPLS LDP
l Forwarding plane
Figure 7-3 illustrates the forwarding plane of the intra-AS seamless MPLS networking.
Seamless MPLS primarily transmits VPN packets. The following example demonstrates
how VPN packets, including labels and data, are transmitted from a CSG to an MASG
along the path CSG1 -> AGG1 -> core ABR1 -> MASG1. The process is as follows:
a. The CSG adds a BGP label and an MPLS tunnel label in sequence to each VPN
packet and forwards the packets to the AGG.
b. The AGG removes the access-layer MPLS tunnel labels from the packets and swaps
the existing BGP labels for new labels. The AGG adds an aggregation-layer MPLS
tunnel label to each packet. The AGG then forwards packets to the core ABR. If the
penultimate hop popping (PHP) function is enabled on the AGG, the CSG has
removed the MPLS tunnel labels from the packets, and therefore, the AGG receives
packets without MPLS tunnel labels.
c. The core ABR removes aggregation-layer MPLS tunnel labels from the VPN
packets and swaps the existing BGP labels for new labels. The AGG adds a core-
layer MPLS tunnel label to each packet. It then forwards the packets to the MASG.
d. The MASG removes MPLS tunnel labels and BGP labels from the VPN packets. If
the PHP function is enabled on the MASG, the core ABR has removed the core-
layer MPLS tunnel labels from the packets; therefore, the MASG receives packets
without MPLS tunnel labels. The VPN packet transmission along the intra-AS
seamless MPLS tunnel is complete.
Figure 7-3 Forwarding plane for the intra-AS seamless MPLS networking
NodeB/
eNodeB Aggregation
Access Core
MME/
SGW
CSG2 AGG2 Core ABR2 MASG2
NodeB/
eNodeB
VPN
n If the AGG ASBR and core ASBR are indirectly connected, an IGP neighbor
relationship between them must be established to implement inter-area
connectivity.
Figure 7-4 Deploying routing protocols for the inter-AS seamless MPLS
networking
AS x AS y
NodeB/
eNodeB Access Aggregation Core
MME/
SGW
CSG2 AGG2 AGG ASBR2 Core ASBR2 MASG2
NodeB/
eNodeB
Deploy tunnels.
In Figure 7-5, tunnel deployment is as follows:
n A public network tunnel is established using LDP in each IGP area.
n The CSG, AGG, AGG ASBR, and core ASBR are enabled to advertise labeled
routes and assign labels to BGP routes that match a specified routing policy.
After the devices exchange labeled BGP routes, a BGP LSP between the CSG
and core ASBR is established.
n Either of the following tunnel deployment methods in the core area can be
used:
A BGP LSP between the core ASBR and MASG is established. This BGP
LSP and the BGP LSP between the CSG and core ASBR are combined
into an E2E BGP LSP. The route to the MASG's loopback address is
installed into the BGP routing table and advertised to the core ASBR
using the IBGP peer relationship. The core ASBR assigns a label to the
route and advertises the labeled route to the AGG ASBR.
No BGP LSP between the core ASBR and MASG is established. The
core ASBR runs an IGP to learn the route destined for the MASG's
loopback address and installs the route to the routing table. The core
ASBR assigns a BGP label to the route and associates the route with an
intra-AS tunnel. The BGP LSP between the CSG and core ASBR and the
MPLS tunnel in the core area are combined into an E2E tunnel.
Figure 7-5 Deploying tunnels for the inter-AS seamless MPLS networking
AS x AS y
NodeB/
eNodeB Access Aggregation Core
MME/
SGW
CSG2 AGG2 AGG ASBR2 Core ASBR2 MASG2
NodeB/
eNodeB
MPLS LDP MPLS LDP MPLS LDP
l Forwarding plane
Figure 7-6 illustrates the forwarding plane of the inter-AS seamless MPLS networking
with a core-layer BGP LSP established. Seamless MPLS primarily transmits VPN
packets. The following example demonstrates how VPN packets, including labels and
data, are transmitted from a CSG to an MASG along the path CSG1 -> AGG1 -> AGG
ASBR1 -> core ASBR1 -> MASG1.
a. The CSG adds a BGP label and an MPLS tunnel label in sequence to each VPN
packet and forwards the packets to the AGG.
b. The AGG removes the access-layer MPLS tunnel labels from the packets and swaps
the existing BGP labels for new labels. The AGG adds an aggregation-layer MPLS
tunnel label to each packet. The AGG then forwards the packets to the AGG ASBR.
If the PHP function is enabled on the AGG, the CSG has removed the MPLS tunnel
labels from the packets; therefore, the AGG receives packets without MPLS tunnel
labels.
c. The AGG ASBR then removes the MPLS tunnel labels from the packets and swaps
the existing BGP label for a new label in each packet. It then forwards the packets
to the core ASBR. If the PHP function is enabled on the AGG ASBR, the AGG has
removed the MPLS tunnel labels from the packets, and therefore, the AGG ASBR
receives packets without MPLS tunnel labels.
d. After the core ASBR receives the packets, it swaps a BGP label for a new label and
adds a core-layer MPLS tunnel label to each packet. It then forwards the packets to
the MASG.
e. The MASG removes MPLS tunnel labels, BGP labels, and VPN labels from the
packets. If the PHP function is enabled on the MASG, the core ASBR has removed
the MPLS tunnel labels from the packets; therefore, the MASG receives packets
without MPLS tunnel labels. The VPN packet transmission along the inter-AS
seamless MPLS tunnel is complete.
Figure 7-6 Forwarding plane for the inter-AS seamless MPLS networking with a BGP
LSP established in the core area
NodeB/
eNodeB Access Aggregation Core
MME/
SGW
CSG2 AGG2 AGG ASBR2 Core ASBR2 MASG2
NodeB/
eNodeB
VPN
Figure 7-7 illustrates the forwarding plane for the inter-AS seamless MPLS networking
without a BGP LSP established in the core area. The process of transmitting packets on
this network is similar to that on the network with a BGP LSP established. The
difference is that without a BGP LSP in the core area, the core ASBR only removes BGP
labels from packets, while adding MPLS tunnel labels to these packets.
Figure 7-7 Forwarding plane for the inter-AS seamless MPLS networking without a
BGP LSP established in the core area
NodeB/
eNodeB Access Aggregation Core
MME/
SGW
CSG2 AGG2 AGG ASBR2 Core ASBR2 MASG2
NodeB/
eNodeB
VPN
7.3 Applications
7.3.1 Application of Seamless MPLS in VPN
Because MPLS technologies see widespread use, many service providers use MPLS-based
L3VPN/L2VPN solutions to construct a multi-service bearer network. To allow service
providers to quickly provision services over the bearer network and reduce their service
deployment costs to improve market competitiveness, seamless MPLS establishes an end-to-
end LSP across the access, aggregation, and core layers, implementing MPLS-based service
forwarding on the entire network.
Figure 7-8 shows a long term evolution (LTE) network. The access, aggregation, and core
layers of this network belong to two ASs. Different VPN instances are configured for
different services on the CSG and MASG to connect them to NodeB (WCDMA 3G site)/
eNodeB (LTE site) and Mobility Management Entity (MME)/Service Gateway (SGW)
respectively.
To transmit VPN services on the network, the inter-AS seamless MPLS solution establishes
an LSP between the CSG and MASG to implement interworking between NodeB/eNodeB
and MME/SGW. If the low performance CSG cannot meet the network requirements,
configuring HVPN between the CSG and AGG helps to reduce the load of the CSG. As a
result, there is no need to replace the CSG with a higher performance device, lowering the
networking cost.
AS x AS y
NodeB/e
NodeB Access Aggregation Core
MME/
SGW
CSG2 AGG2 AGG ASBR2 Core ASBR2 MASG2
NodeB/ LSP
eNodeB
License Support
Seamless MPLS is a basic feature of a switch and is not under license control.
Version Support
NOTE
To know details about software mappings, see Version Mapping Search for Huawei Campus
Switches.
l Configure IGP protocols to implement connectivity at the access, aggregation, and core
layers and enable MPLS LDP to implement the MPLS forwarding on a public network.
l Configure IBGP peer relationships between each CSG and AGG, between each AGG
and Core ABR, and between each Core ABR and MASG.
In the intra-AS seamless MPLS networking, the access, aggregation, and core layers are
within a single AS. A BGP LSP is established across the three layers within the AS to
implement E2E service connectivity.
Configuration Process
To configure intra-AS seamless MPLS, perform the following operations in sequence.
Context
To enable the CSG and MASG to learn loopback routes to each other on an intra-AS seamless
MPLS network, configure an AGG and a core ABR as reflectors, specify a CSG and the core
ABR as the AGG's clients, and specify the AGG and an MASG as the core ABR's clients. The
loopback routes can be used to set up an MP-IBGP peer relationship between the CSG and
MASG.
Procedure
Step 1 Run:
system-view
Step 2 Run:
bgp { as-number-plain | as-number-dot }
Step 3 Run:
ipv4-family unicast
Step 4 Run:
peer { ipv4-address | group-name } reflect-client
Step 5 Run:
peer { ipv4-address | group-name } next-hop-local
BGP is configured to use its own IP address as the next hops of routes when advertising these
routes to its clients.
By default, when BGP advertises routes to an EBGP peer, it uses its own IP address as the
next hops. When BGP advertises routes to an IBGP peer, it does not change the next hop
attribute.
To enable the AGG or core ABR to advertise routes with the next hop address set to a local
address, run the peer next-hop-local command on the AGG or core ABR.
----End
Context
On a seamless MPLS network, before an E2E BGP LSP is established, BGP peers must be
enabled to exchange labeled IPv4 routes with each other.
Procedure
Step 1 Run:
system-view
Step 2 Run:
bgp { as-number-plain | as-number-dot }
Step 3 Run:
peer { ipv4-address | group-name } label-route-capability [ check-tunnel-
reachable ]
The ability to exchange labeled IPv4 routes with a BGP peer is enabled.
The check-tunnel-reachable parameter helps prevent a data forwarding failure when the
CSG and MASG successfully set up an MP-EBGP peer relationship but a section along the
LSP between them fails to be established.
----End
Context
Before a BGP LSP is established, a routing policy must be configured to control label
distribution. The egress of the BGP LSP to be established needs to distribute an MPLS label
to the route advertised to an upstream node. If a transit node receives a labeled IPv4 route
from downstream, the downstream node must re-distribute an MPLS label to the transit node
and advertises the label upstream.
Procedure
l Perform the following steps on each CSG and MASG:
a. Run:
system-view
NOTE
NOTE
----End
Context
On an intra-AS seamless MPLS network that has protection switching enabled, if a link or
node fails, traffic switches to a backup path, which implements uninterrupted traffic
transmission.
NOTE
If both LDP FRR and BGP Auto FRR functions are configured, only BGP Auto FRR takes effect.
Procedure
Step 1 Run:
system-view
Labeled BGP IPv4 unicast routes can participate in route selection only when their next hops
are iterated to tunnels.
Step 6 (Optional) Run:
ingress-lsp protect-mode bgp-frr
NOTE
Perform this step on each CSG and MASG to enable the protection switching function for the whole
BGP LSP.
----End
Procedure
l Run the display ip routing-table command on the CSG and MASG to check the route to
each other.
l Run the display mpls lsp command to check LSP information.
----End
Configuration Process
To configure inter-AS seamless MPLS, perform the following operations in sequence.
Context
On an inter-AS seamless MPLS network, configuring an AGG as a reflector and specifying a
CSG and an AGG ASBR as the AGG's clients enable the AGG to transmit loopback routes
from the CSG to the AGG ASBR. The AGG then transmits the routes to the core layer
through an EBGP peer. The loopback routes can be used to set up an MP-EBGP peer
relationship between the CSG and MASG.
Procedure
Step 1 Run:
system-view
Step 2 Run:
bgp { as-number-plain | as-number-dot }
Step 3 Run:
ipv4-family unicast
Step 4 Run:
peer { ipv4-address | group-name } reflect-client
An RR is configured, and the CSG and core ASBR are specified as clients.
Step 5 Run:
peer { ipv4-address | group-name } next-hop-local
The device is configured to use its own IP address as the next-hop address of routes when
advertising these routes.
By default, when BGP advertises routes to an EBGP peer, it uses its own IP address as the
next hops. When BGP advertises routes to an IBGP peer, it does not change the next hop
attribute.
To enable the AGG to advertise routes with the next hop address set to a local address, run the
peer next-hop-local command on the AGG.
----End
Procedure
l Perform the following steps on each CSG, AGG, and MASG:
a. Run:
system-view
The capability of exchanging labeled IPv4 routes with devices in the local AS is
enabled.
By default, the capability of exchanging labeled IPv4 routes is disabled.
The check-tunnel-reachable parameter helps prevent a data forwarding failure
when the CSG and MASG successfully set up an MP-EBGP peer relationship but a
section along the LSP between them fails to be established.
n If the check-tunnel-reachable parameter is specified:
When a tunnel between a local and remote device is unreachable, the local
device advertises an IPv4 unicast route to its peer. When the tunnel is
reachable, the local device advertises a labeled IPv4 route.
n If the check-tunnel-reachable parameter is not specified:
The local device advertises a labeled IPv4 route, regardless of whether a tunnel
between the local and remote devices is reachable.
l Perform the following steps on each AGG ASBR and core ASBR:
a. Run:
system-view
MPLS is enabled.
e. Run:
quit
The capability of exchanging labeled IPv4 routes between BGP peers, including the
peer ASBR and the devices in the local AS, is enabled.
By default, the capability of exchanging labeled IPv4 routes is disabled.
n If the label-route-capability is specified, a local device advertises an IPv4
unicast route to its peer if a tunnel between the local and remote devices is
unreachable and advertises a labeled IPv4 route if the tunnel is reachable. This
parameter helps prevent a data forwarding failure when an MP-EBGP peer
relationship between the CSG and MASG is established but an LSP over the
peer relationship fails to be established.
n If the label-route-capability parameter is not specified, the local device
advertises a labeled IPv4 route, regardless of whether a tunnel between the
local and remote devices is unreachable.
h. (Optional) Run:
supernet label-route advertise disable
iii. Run:
lsp-trigger bgp-label-route [ ip-prefix ip-prefix-name ]
An LDP LSP is established for the labeled BGP routes of the public network
that is filtered by the IP prefix list.
By default, LDP does not allocate labels to labeled BGP routes on the public
network.
----End
Context
Before a BGP LSP is established, a routing policy must be configured to control label
distribution. The egress of the BGP LSP to be established needs to distribute an MPLS label
to the route advertised to an upstream node. If a transit node on the BGP LSP receives a
labeled IPv4 route from its downstream node, the transit node must re-distribute an MPLS
label to the labeled IPv4 route before advertising the route to an upstream node.
Procedure
l Perform the following steps on each CSG and MASG:
a. Run:
system-view
NOTE
The function to create ingress LSPs for labeled BGP routes based on routing
policies is configured.
By default, ingress LSPs are created based on all received BGP labeled routes.
On a MAN where the hybrid access mode is used, a large number of labeled BGP
routes are used to establish end-to-end LSPs. On certain intermediate nodes where
VPN services do not need to be supported, excessive ingress LSPs are created,
which waste network resources. In this case, you can run the ingress-lsp trigger
command to create ingress LSPs based on a routing policy to save network
resources.
i. (Optional) Run:
peer { group-name | ipv4-address } mpls-local-ifnet disable
The ability to establish an MPLS local IFNET tunnel between a CSG and MASG is
disabled.
In the inter-AS seamless MPLS network transmitting L3VPN services, a CSG and
MASG establish an MP-EBGP peer relationship. Therefore, an MPLS local IFNET
tunnel between the CSG and MASG is established over the MP-EBGP peer
relationship. The MPLS local IFNET tunnel fails to transmit traffic because the
CSG and MASG are indirectly connected.
If a fault occurs on the BGP LSP between the CSG and MASG, traffic is iterated to
the MPLS local IFNET tunnel, not an FRR bypass tunnel. As the MPLS local
IFNET tunnel cannot forward traffic, traffic is interrupted. To prevent the traffic
interruption, run the peer mpls-local-ifnet disable command to disable the
establishment of an MPLS local IFNET tunnel between the CSG and MASG.
l Perform the following steps on each AGG, AGG ASBR, and core ASBR:
a. Run:
system-view
d. Run:
apply mpls-label
NOTE
----End
Context
On an inter-AS seamless MPLS network that has protection switching enabled, if a link or
node fails, traffic switches to a backup path, which implements uninterrupted traffic
transmission.
NOTE
If both LDP FRR and BGP Auto FRR functions are configured, only BGP Auto FRR takes effect.
Procedure
Step 1 Run:
system-view
Step 4 Run:
auto-frr
Step 5 Run:
bestroute nexthop-resolved tunnel
Labeled BGP IPv4 unicast routes can participate in route selection only when their next hops
are iterated to tunnels.
NOTE
Perform this step on each CSG and MASG to enable the protection switching function for the whole
BGP LSP.
----End
Prerequisites
Inter-AS seamless MPLS has been configured.
Procedure
l Run the display ip routing-table command on the CSG and MASG to check the route to
each other.
l Run the display mpls lsp command to check LSP information.
----End
Context
On an IP/MPLS network transmitting VPN services, PEs establish a multi-segment MPLS
tunnel between each other. Therefore VPN services are sent to multiple PEs. In this case,
VPN service provision on PEs becomes complex, and the VPN service scalability decreases.
As PEs establish BGP peer relationships, a routing policy can be used to assign MPLS labels
for BGP routes so that an E2E BGP tunnel can be established. The BGP tunnel consists of a
primary BGP LSP and a backup BGP LSP. VPN services can travel along the E2E BGP
tunnel, which simplifies service provision and improves VPN service scalability.
To rapidly detect faults in an E2E BGP tunnel, BFD for BGP tunnel is used. BFD for BGP
tunnel establish a dynamic BFD session, also called a BGP BFD session, which is bound to
both the primary and backup BGP LSPs. If both BGP LSPs fail, the BGP BFD session detects
the faults and triggers VPN FRR switching.
Pre-configuration Tasks
Before configuring dynamic BFD to monitor a BGP tunnel, configure basic MPLS functions.
Configuration Process
Configure dynamic BFD to monitor a BGP tunnel according to the following sequence.
Context
Before a dynamic BGP BFD session is established, the capability to dynamically establish
BGP BFD sessions must be enabled on each MPLS devices.
Procedure
l Perform the following steps on the ingress of an E2E BGP tunnel:
a. Run:
system-view
The ability to dynamically establish BGP BFD sessions is enabled on the ingress.
The mpls bgp bfd enable command does not create a BFD session. A BGP BFD
session can only be dynamically established only after a policy for dynamically
establish BGP BFD session is configured.
l Perform the following steps on the egress of an E2E BGP tunnel:
a. Run:
system-view
c. Run:
mpls-passive
The mpls-passive command does not create a BGP BFD session. The egress has to
receive an LSP ping request carrying a BFD TLV before creating a BGP BFD
session with the ingress.
----End
Context
The policies for dynamically establishing BGP BFD sessions are as follows:
l Host address-based policy: used when all host addresses are available to trigger the
creation of BGP BFD sessions.
l IP address prefix list-based policy: used when only some host addresses can be used to
establish BFD sessions.
Procedure
Step 1 Run:
system-view
An IPv4 address prefix list is configured, and list entries are configured.
You can perform this step when you want to use an IP address prefix list to dynamically
establish BGP BFD sessions.
Step 3 Run:
mpls
Step 4 Run:
mpls bgp bfd-trigger-tunnel { host | ip-prefix ip-prefix-name }
After a policy is configured, the device starts to dynamically establish a BGP BFD session.
----End
Context
Perform the following steps on the ingress of an E2E BGP tunnel:
Procedure
Step 1 Run:
system-view
Step 2 Run:
bfd
Step 3 Run:
mpls ping interval interval
Step 4 Run:
quit
Step 5 Run:
mpls
Step 6 Run:
mpls bgp bfd { min-tx-interval interval | min-rx-interval interval | detect-
multiplier multiplier } *
By default, the minimum interval for sending BFD packets is 1000 ms, the minimum interval
for receiving BFD packets is 1000 ms, and the local detection multiplier is 3.
Effective BFD time parameters are calculated using the following formulas:
l Effective local interval at which BFD packets are sent = MAX { Locally configured
minimum interval at which BFD packets are sent, Remotely configured minimum
interval at which BFD packets are received }
l Effective local interval at which BFD packets are received = MAX { Remotely
configured minimum interval at which BFD packets are sent, Locally configured
minimum interval at which BFD packets are received }
l Local BFD detection period = Effective local interval at which BFD packets are received
x Remotely configured BFD detection multiplier
----End
Procedure
l Run the display mpls bfd session protocol bgp [ fec fec-address [ verbose ] ] command
to check information about a BFD session with the protocol type of BGP on the ingress
on an E2E BGP tunnel.
l Run the display mpls lsp protocol bgp verbose command to check the BFD session
status of BGP LSPs.
----End
Procedure
l Run the ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m interval | -r
reply-mode | -s packet-size | -t time-out | -v ] * bgp destination-address mask-length [ ip-
address ] command to check BGP LSP connectivity.
l Run the tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -t time-
out ] * bgp destination-address mask-length [ ip-address ] command to perform an LSP
tracert operation on a BGP LSP.
----End
MME/SGW, the customer wants to use MPLS at the access layer, so that a complete LSP can
be set up over the three layers. To provide an end-to-end service and simplify service
configuration and network management, intra-AS seamless MPLS can be configured on the
network.
NodeB MME/SGW
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure IGP protocols at the access, aggregation, and core layers to implement
network connectivity at each layer.
2. Configure MPLS and MPLS LDP on each device and establish an MPLS LSP.
3. Establish IBGP peer relationships at each layer and enable devices to exchange labeled
routes.
4. Configure each AGG and Core_ABR as RRs to help the CSG and MASG obtain the
route destined for each other's loopback interface.
5. Configure a routing policy to control label distribution for a BGP LSP to be established
on each device. The ingress node on the BGP LSP needs to distribute an MPLS label to
the route advertised to a downstream node. If a transit node on the BGP LSP receives a
labeled IPv4 route from its upstream node, the transit node must re-distribute an MPLS
label to the labeled IPv4 route before advertising the route to a downstream node.
6. Establish an MP-IBGP peer relationship between a CSG and MASG for VPNv4 route
information exchange.
7. Configure a VPN instance on each CSG and MASG.
Procedure
Step 1 On the devices, create a VLAN and a VLANIF interface, assign an IP address to the VLANIF
interface, and add a physical interface to the VLAN.
# Configure the CSG. The configurations of the AGG, Core_ABR, and MASG are similar to
that of the CSG, and are not mentioned here.
<HUAWEI> system-view
[HUAWEI] sysname CSG
[CSG] interface loopback 1
[CSG-LoopBack1] ip address 1.1.1.9 32
[CSG-LoopBack1] quit
[CSG] vlan batch 100 400
[CSG] interface vlanif 100
[CSG-Vlanif100] ip address 172.1.1.1 24
[CSG-Vlanif100] quit
[CSG] interface vlanif 400
[CSG-Vlanif400] ip address 10.1.1.1 24
[CSG-Vlanif400] quit
[CSG] interface gigabitethernet0/0/1
[CSG-GigabitEthernet0/0/1] port link-type trunk
[CSG-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[CSG-GigabitEthernet0/0/1] quit
[CSG] interface gigabitethernet0/0/2
[CSG-GigabitEthernet0/0/2] port link-type trunk
[CSG-GigabitEthernet0/0/2] port trunk allow-pass vlan 400
[CSG-GigabitEthernet0/0/2] quit
Step 2 Enable OSPF or IS-IS to advertise routes on network segments where each node locates and
routes represented by LSR IDs.
# Configure the CSG.
[CSG] ospf 1
[CSG-ospf-1] area 0
[CSG-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[CSG-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[CSG-ospf-1-area-0.0.0.0] quit
[CSG-ospf-1] quit
Step 4 Establish IBGP peer relationships at each layer and enable devices to exchange labeled routes.
# Configure the CSG.
[CSG] bgp 100
[CSG-bgp] peer 2.2.2.9 as-number 100
[CSG-bgp] peer 2.2.2.9 connect-interface LoopBack 1
[CSG-bgp] peer 2.2.2.9 label-route-capability
[CSG-bgp] network 1.1.1.9 32
[CSG-bgp] quit
Step 5 Configure the AGG and Core_ABR as RRs to enable the CSG and MASG to obtain loopback
routes from each other through route reflection.
# Configure the AGG.
[AGG] bgp 100
[AGG-bgp] peer 1.1.1.9 reflect-client
[AGG-bgp] peer 1.1.1.9 next-hop-local
[AGG-bgp] peer 3.3.3.9 reflect-client
[AGG-bgp] peer 3.3.3.9 next-hop-local
[AGG-bgp] quit
# Create a routing policy on the MASG and apply the routing policy to its peer.
[MASG] route-policy policy1 permit node 1
[MASG-route-policy] apply mpls-label
[MASG-route-policy] quit
[MASG] bgp 100
[MASG-bgp] peer 3.3.3.9 route-policy policy1 export
[MASG-bgp] quit
# Create a routing policy on the AGG and apply the routing policy to its peer.
[AGG] route-policy policy1 permit node 1
[AGG-route-policy] if-match mpls-label
[AGG-route-policy] apply mpls-label
[AGG-route-policy] quit
[AGG] bgp 100
[AGG-bgp] peer 1.1.1.9 route-policy policy1 export
[AGG-bgp] peer 3.3.3.9 route-policy policy1 export
[AGG-bgp] quit
# Create a routing policy on the Core_ABR and apply the routing policy to its peer.
[Core_ABR] route-policy policy1 permit node 1
[Core_ABR-route-policy] if-match mpls-label
[Core_ABR-route-policy] apply mpls-label
[Core_ABR-route-policy] quit
[Core_ABR] bgp 100
[Core_ABR-bgp] peer 2.2.2.9 route-policy policy1 export
[Core_ABR-bgp] peer 4.4.4.9 route-policy policy1 export
[Core_ABR-bgp] quit
Step 7 Establish an MP-IBGP peer relationship between a CSG and MASG for VPNv4 route
information exchange.
# Configure the CSG.
[CSG] bgp 100
[CSG-bgp] peer 4.4.4.9 as-number 100
Run the display mpls lsp command on the CSG or MASG to check the LSP configuration.
The display on the CSG is used as an example.
[CSG] display mpls lsp
-------------------------------------------------------------------------------
LSP Information: BGP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 1025/NULL -/-
----End
Configuration Files
l CSG configuration file
#
sysname CSG
#
vlan batch 100 400
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 100:1
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id 1.1.1.9
mpls
#
mpls ldp
#
interface Vlanif100
ip address 172.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface Vlanif400
ip binding vpn-instance vpn1
ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 400
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
bgp 100
peer 2.2.2.9 as-number 100
peer 2.2.2.9 connect-interface LoopBack1
peer 4.4.4.9 as-number 100
peer 4.4.4.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
network 1.1.1.9 255.255.255.255
peer 2.2.2.9 enable
peer 2.2.2.9 route-policy policy1 export
peer 2.2.2.9 label-route-capability
peer 4.4.4.9 enable
#
ipv4-family vpnv4
policy vpn-target
peer 4.4.4.9 enable
#
ipv4-family vpn-instance vpn1
import-route direct
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 172.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return
l AGG configuration file
#
sysname AGG
#
vlan batch 100 200
#
mpls lsr-id 2.2.2.9
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0010.00
#
interface Vlanif100
ip address 172.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface Vlanif200
ip address 172.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 200
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
bgp 100
peer 1.1.1.9 as-number 100
peer 1.1.1.9 connect-interface LoopBack1
peer 3.3.3.9 as-number 100
peer 3.3.3.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 1.1.1.9 enable
peer 1.1.1.9 route-policy policy1 export
peer 1.1.1.9 reflect-client
peer 1.1.1.9 next-hop-local
peer 1.1.1.9 label-route-capability
peer 3.3.3.9 enable
peer 3.3.3.9 route-policy policy1 export
peer 3.3.3.9 reflect-client
peer 3.3.3.9 next-hop-local
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 172.3.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
l MASG configurations file
#
sysname MASG
#
vlan batch 300 500
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 1:1
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id 4.4.4.9
mpls
#
mpls ldp
#
interface Vlanif300
ip address 172.3.1.2 255.255.255.0
mpls
mpls ldp
#
interface Vlanif500
ip binding vpn-instance vpn1
ip address 10.2.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 300
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 500
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
#
bgp 100
peer 1.1.1.9 as-number 100
peer 1.1.1.9 connect-interface LoopBack1
peer 3.3.3.9 as-number 100
peer 3.3.3.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
network 4.4.4.9 255.255.255.255
peer 1.1.1.9 enable
peer 3.3.3.9 enable
peer 3.3.3.9 route-policy policy1 export
peer 3.3.3.9 label-route-capability
#
ipv4-family vpnv4
policy vpn-target
peer 1.1.1.9 enable
#
ipv4-family vpn-instance vpn1
import-route direct
#
ospf 2
area 0.0.0.0
AS 100 AS 200
NodeB MME/SGW
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure IGP protocols at the access, aggregation, and core layers to implement
network connectivity at each layer.
2. Configure MPLS and MPLS LDP on each device and establish an MPLS LSP.
3. Establish IBGP peer relationships at each layer and enable devices to exchange labeled
routes.
4. Configure an EBGP peer relationship between each pair of an AGG_ASBR and
Core_ASBR and enable these devices to exchange labeled routes across ASs.
5. Configure each AGG as an RR to help the CSG and MASG obtain the route destined for
each other's loopback interface.
6. Configure a routing policy to control label distribution for a BGP LSP to be established
on each device. The ingress node on the BGP LSP needs to distribute an MPLS label to
the route advertised to a downstream node. If a transit node on the BGP LSP receives a
labeled IPv4 route from its upstream node, the transit node must re-distribute an MPLS
label to the labeled IPv4 route before advertising the route to a downstream node.
Procedure
Step 1 On the devices, create a VLAN and a VLANIF interface, assign an IP address to the VLANIF
interface, and add a physical interface to the VLAN.
# Configure the CSG. The configurations of the AGG, AGG_ASBR, Core_ASBR, and
MASG are similar to that of the CSG, and are not mentioned here.
<HUAWEI> system-view
[HUAWEI] sysname CSG
[CSG] interface loopback 1
[CSG-LoopBack1] ip address 1.1.1.9 32
[CSG-LoopBack1] quit
[CSG] vlan batch 100
[CSG] interface vlanif 100
[CSG-Vlanif100] ip address 172.1.1.1 24
[CSG-Vlanif100] quit
[CSG] interface gigabitethernet0/0/1
[CSG-GigabitEthernet0/0/1] port link-type trunk
[CSG-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[CSG-GigabitEthernet0/0/1] quit
Step 2 Enable OSPF or IS-IS to advertise routes on network segments where each node locates and
routes represented by LSR IDs.
# Configure the CSG.
[CSG] ospf 1
[CSG-ospf-1] area 0
[CSG-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[CSG-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[CSG-ospf-1-area-0.0.0.0] quit
[CSG-ospf-1] quit
[Core_ASBR-mpls-ldp] quit
[Core_ASBR] interface vlanif 400
[Core_ASBR-Vlanif400] mpls
[Core_ASBR-Vlanif400] mpls ldp
[Core_ASBR-Vlanif400] quit
Step 4 Establish IBGP peer relationships at each layer and enable devices to exchange labeled routes.
# Configure the CSG.
[CSG] bgp 100
[CSG-bgp] peer 2.2.2.9 as-number 100
[CSG-bgp] peer 2.2.2.9 connect-interface LoopBack 1
[CSG-bgp] peer 2.2.2.9 label-route-capability
[CSG-bgp] network 1.1.1.9 32
[CSG-bgp] quit
Step 5 Establish an EBGP peer relationship between the AGG_ASBR and Core_ASBR and enable
devices to exchange labeled routes.
# Configure the AGG_ASBR.
Step 6 Configure the AGG as the RR to enable the CSG and MASG to obtain loopback routes from
each other through route reflection.
# Configure the AGG.
[AGG] bgp 100
[AGG-bgp] peer 1.1.1.9 reflect-client
[AGG-bgp] peer 1.1.1.9 next-hop-local
[AGG-bgp] peer 3.3.3.9 reflect-client
[AGG-bgp] peer 3.3.3.9 next-hop-local
[AGG-bgp] quit
# Create a routing policy on the MASG and apply the routing policy to its peer.
[MASG] route-policy policy1 permit node 1
[MASG-route-policy] apply mpls-label
[MASG-route-policy] quit
[MASG] bgp 200
[MASG-bgp] peer 4.4.4.9 route-policy policy1 export
[MASG-bgp] quit
# Create a routing policy on the AGG and apply the routing policy to its peer.
[AGG] route-policy policy1 permit node 1
[AGG-route-policy] if-match mpls-label
[AGG-route-policy] apply mpls-label
[AGG-route-policy] quit
[AGG] bgp 100
[AGG-bgp] peer 1.1.1.9 route-policy policy1 export
[AGG-bgp] peer 3.3.3.9 route-policy policy1 export
[AGG-bgp] quit
# Create a routing policy on the AGG_ASBR and apply the routing policy to its peer.
[AGG_ASBR] route-policy policy1 permit node 1
[AGG_ASBR-route-policy] if-match mpls-label
[AGG_ASBR-route-policy] apply mpls-label
[AGG_ASBR-route-policy] quit
[AGG_ASBR] bgp 100
# Create a routing policy on the Core_ASBR and apply the routing policy to its peer.
[Core_ASBR] route-policy policy1 permit node 1
[Core_ASBR-route-policy] if-match mpls-label
[Core_ASBR-route-policy] apply mpls-label
[Core_ASBR-route-policy] quit
[Core_ASBR] bgp 200
[Core_ASBR-bgp] peer 5.5.5.9 route-policy policy1 export
[Core_ASBR-bgp] peer 172.3.1.1 route-policy policy1 export
[Core_ASBR-bgp] quit
Run the display mpls lsp command on the CSG or MASG to check the LSP configuration.
The display on the CSG is used as an example.
[CSG] display mpls lsp
-------------------------------------------------------------------------------
LSP Information: BGP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 4103/NULL -/-
5.5.5.9/32 NULL/4124 -/-
----End
Configuration Files
l CSG configuration file
#
sysname CSG
#
vlan batch 100
#
mpls lsr-id 1.1.1.9
mpls
#
mpls ldp
#
interface Vlanif100
ip address 172.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
bgp 100
peer 2.2.2.9 as-number 100
peer 2.2.2.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
network 1.1.1.9 255.255.255.255
peer 2.2.2.9 enable
peer 2.2.2.9 route-policy policy1 export
peer 2.2.2.9 label-route-capability
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 172.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return
l AGG configuration file
#
sysname AGG
#
vlan batch 100 200
#
mpls lsr-id 2.2.2.9
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0010.00
#
interface Vlanif100
ip address 172.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface Vlanif200
ip address 172.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/2
port link-type trunk
isis enable 1
#
bgp 100
peer 2.2.2.9 as-number 100
peer 2.2.2.9 connect-interface LoopBack1
peer 172.3.1.2 as-number 200
#
ipv4-family unicast
undo synchronization
peer 2.2.2.9 enable
peer 2.2.2.9 route-policy policy1 export
peer 2.2.2.9 label-route-capability
peer 172.3.1.2 enable
peer 172.3.1.2 route-policy policy1 export
peer 172.3.1.2 label-route-capability check-tunnel-reachable
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
l Core_ASBR configuration file
#
sysname Core_ASBR
#
vlan batch 300 400
#
mpls lsr-id 4.4.4.9
mpls
#
mpls ldp
#
interface Vlanif300
ip address 172.3.1.2 255.255.255.0
mpls
#
interface Vlanif400
ip address 172.4.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 300
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 400
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
#
bgp 200
peer 5.5.5.9 as-number 200
peer 5.5.5.9 connect-interface LoopBack1
peer 172.3.1.1 as-number 100
#
ipv4-family unicast
undo synchronization
peer 5.5.5.9 enable
peer 5.5.5.9 route-policy policy1 export
peer 5.5.5.9 label-route-capability
peer 172.3.1.1 enable
peer 172.3.1.1 route-policy policy1 export
peer 172.3.1.1 label-route-capability check-tunnel-reachable
#
ospf 2
area 0.0.0.0
network 4.4.4.9 0.0.0.0
NOTE
By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-
side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp
disable command in the system view to disable link type negotiation.
The lnp disable command has no impact on services before the device restarts. After the device restarts, the
device can only forward packets from the VLANs specified by the port default vlan command at Layer 2.
The port default vlan 1 command is configured by default, so only packets of VLAN 1 can be forwarded at
Layer 2.
GE0/0/2 GE0/0/2
VLANIF10 VLANIF20
192.168.1.1 Martini 192.168.1.2
CE1(NodeB) CE2(MME/SGW)
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure IGP protocols at the access, aggregation, and core layers to implement
network connectivity at each layer.
2. Enable MPLS and MPLS LDP on each device and establish an MPLS LSP.
3. Establish IBGP peer relationships at each layer and enable devices to exchange labeled
routes.
4. Configure the AGG and Core_ABR as RRs to enable the CSG and MASG to obtain
loopback routes from each other through route reflection.
5. Configure a routing policy on each device to control label distribution for a BGP LSP to
be established. The ingress node on the BGP LSP needs to distribute an MPLS label to
the route advertised to a downstream node. If a transit node on the BGP LSP receives a
labeled IPv4 route from its upstream node, the transit node must re-distribute an MPLS
label to the labeled IPv4 route before advertising the route to a downstream node.
6. Enable MPLS L2VPN on the CSG and MASG, and create a Martini connection between
them.
Procedure
Step 1 On the devices, create a VLAN and a VLANIF interface, assign an IP address to the VLANIF
interface, and add a physical interface to the VLAN.
# Configure the CSG. The configurations of CE1, CE2, the AGG, Core_ABR, and MASG are
similar to that of the CSG, and are not mentioned here.
<HUAWEI> system-view
[HUAWEI] sysname CSG
[CSG] interface loopback 1
[CSG-LoopBack1] ip address 1.1.1.9 32
[CSG-LoopBack1] quit
[CSG] vlan batch 10 100
[CSG] interface vlanif 100
[CSG-Vlanif100] ip address 172.1.1.1 24
[CSG-Vlanif100] quit
[CSG] interface gigabitethernet 0/0/1
[CSG-GigabitEthernet0/0/1] port link-type trunk
[CSG-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[CSG-GigabitEthernet0/0/1] quit
[CSG] interface gigabitethernet 0/0/2
[CSG-GigabitEthernet0/0/2] port link-type trunk
[CSG-GigabitEthernet0/0/2] port trunk allow-pass vlan 10
[CSG-GigabitEthernet0/0/2] quit
Step 2 Enable OSPF or IS-IS to advertise routes on network segments where each node locates and
routes represented by LSR IDs.
# Configure the CSG.
[CSG] ospf 1
[CSG-ospf-1] area 0
[CSG-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[CSG-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[CSG-ospf-1-area-0.0.0.0] quit
[CSG-ospf-1] quit
[MASG] ospf 2
[MASG-ospf-2] area 0
[MASG-ospf-2-area-0.0.0.0] network 4.4.4.9 0.0.0.0
[MASG-ospf-2-area-0.0.0.0] network 172.3.1.0 0.0.0.255
[MASG-ospf-2-area-0.0.0.0] quit
[MASG-ospf-2] quit
Step 4 Establish IBGP peer relationships at each layer and enable devices to exchange labeled routes.
# Configure the CSG.
[CSG] bgp 100
[CSG-bgp] peer 2.2.2.9 as-number 100
[CSG-bgp] peer 2.2.2.9 connect-interface LoopBack 1
[CSG-bgp] peer 2.2.2.9 label-route-capability
[CSG-bgp] network 1.1.1.9 32
[CSG-bgp] quit
Step 5 Configure the AGG and Core_ABR as RRs to enable the CSG and MASG to obtain loopback
routes from each other through route reflection.
# Configure the AGG.
# Create a routing policy on the AGG and apply the routing policy to its peer. The
configuration of the Core_ABR is similar to that of the AGG, and is not mentioned here.
[AGG] route-policy policy1 permit node 1
[AGG-route-policy] if-match mpls-label
[AGG-route-policy] apply mpls-label
[AGG-route-policy] quit
[AGG] bgp 100
[AGG-bgp] peer 1.1.1.9 route-policy policy1 export
[AGG-bgp] peer 3.3.3.9 route-policy policy1 export
[AGG-bgp] quit
After the configuration is complete, run the display ip routing-table command on the CSG or
MASG. You can view routes to the loopback address of each other.
The display on the CSG is used as an example.
[CSG] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7 Routes : 7
Run the display mpls lsp command on the CSG or MASG to check the LSP configuration.
The display on the CSG is used as an example.
[CSG] display mpls lsp
-------------------------------------------------------------------------------
LSP Information: BGP LSP
-------------------------------------------------------------------------------
Step 7 Enable MPLS L2VPN on the CSG and MASG, and create a Martini connection between
them.
# Enable MPLS L2VPN on the CSG and establish a remote LDP session. The configuration
of the MASG is similar to that of the CSG, and is not mentioned here.
[CSG] mpls l2vpn
[CSG-l2vpn] quit
[CSG] mpls ldp remote-peer 4.4.4.9
[CSG-mpls-ldp-remote-4.4.4.9] remote-ip 4.4.4.9
[CSG-mpls-ldp-remote-4.4.4.9] quit
# Establish a Martini connection from the CSG to the MASG. The configuration of the
MASG is similar to that of the CSG, and is not mentioned here.
[CSG] lnp disable
[CSG] interface vlanif 10
[CSG-Vlanif10] mpls l2vc 4.4.4.9 100
[CSG-Vlanif10] quit
----End
Configuration Files
l CE1 configuration file
#
sysname CE1
#
vlan batch 10
#
interface Vlanif10
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
#
return
#
vlan batch 20
#
interface Vlanif20
ip address 192.168.1.2 255.255.255.0
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 20
#
return
l CSG configuration file
#
sysname CSG
#
vlan batch 10 100
#
lnp disable
#
mpls lsr-id 1.1.1.9
mpls
#
mpls l2vpn
#
mpls ldp
#
#
mpls ldp remote-peer 4.4.4.9
remote-ip 4.4.4.9
#
interface Vlanif10
mpls l2vc 4.4.4.9 100
#
interface Vlanif 100
ip address 172.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
bgp 100
peer 2.2.2.9 as-number 100
peer 2.2.2.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
network 1.1.1.9 255.255.255.255
peer 2.2.2.9 enable
peer 2.2.2.9 route-policy policy1 export
peer 2.2.2.9 label-route-capability
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 172.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return
#
sysname Core_ABR
#
vlan batch 200 300
#
mpls lsr-id 3.3.3.9
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0020.00
#
interface Vlanif200
ip address 172.2.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface Vlanif300
ip address 172.3.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 200
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 300
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
bgp 100
peer 2.2.2.9 as-number 100
peer 2.2.2.9 connect-interface LoopBack1
peer 4.4.4.9 as-number 100
peer 4.4.4.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 2.2.2.9 enable
peer 2.2.2.9 route-policy policy1 export
peer 2.2.2.9 reflect-client
peer 2.2.2.9 next-hop-local
peer 2.2.2.9 label-route-capability
peer 4.4.4.9 enable
peer 4.4.4.9 route-policy policy1 export
peer 4.4.4.9 reflect-client
peer 4.4.4.9 next-hop-local
peer 4.4.4.9 label-route-capability
#
ospf 2
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 172.3.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
l MASG configurations file
#
sysname MASG
#
Networking Requirements
Seamless MPLS integrates the access, aggregation, and core layers on the same MPLS
network to transmit VPN services. Seamless MPLS establishes an E2E BGP tunnel to provide
E2E access services. To rapidly detect faults in BGP tunnels, BFD for BGP tunnel needs to be
configured.
In Figure 7-12, the access and aggregation layers belong to one AS, and the core layer
belongs to another AS. NodeBs need to communicate with an MME or SGW over a VPN. To
meet this requirement, inter-AS seamless MPLS can be configured between the CSG and
MASG. To monitor the connectivity of the BGP tunnel, BFD for BGP tunnel needs to be
configured.
NodeB MME/SGW
Configuration Roadmap
The configuration roadmap is as follows:
Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and mask to each interface, including each loopback interface, according
to Figure 7-12. For configuration details, see Configuration Files in this section.
Configure OSPF with process ID 1 at the access layer, IS-IS with process ID 1 at the
aggregation layer, and OSPF with process ID 2 at the core layer. Configure IGP protocols to
advertise the route to each network segment to which each interface is connected and to
advertise the host route to each loopback address which is used as an LSR ID. For
configuration details, see Configuration Files in this section.
Enable MPLS and MPLS LDP globally on each device and on interfaces in each AS. For
configuration details, see Configuration Files in this section.
Step 4 Establish IBGP peer relationships at each layer and enable devices to exchange labeled routes.
# Configure CSG.
[CSG] bgp 100
[CSG-bgp] peer 2.2.2.2 as-number 100
[CSG-bgp] peer 2.2.2.2 connect-interface LoopBack 0
[CSG-bgp] peer 2.2.2.2 label-route-capability
[CSG-bgp] network 1.1.1.1 32
[CSG-bgp] quit
Step 5 Establish an EBGP peer relationship between the AGG ASBR and core ASBR and enable
these devices to exchange labeled routes.
Step 6 Configure each AGG as an RR to help the CSG and MASG obtain the route destined for each
other's loopback interface.
# Configure the AGG.
[AGG] bgp 100
[AGG-bgp] peer 1.1.1.1 reflect-client
[AGG-bgp] peer 1.1.1.1 next-hop-local
[AGG-bgp] peer 3.3.3.3 reflect-client
[AGG-bgp] peer 3.3.3.3 next-hop-local
[AGG-bgp] quit
Step 7 Configure a routing policy on each device to establish a BGP LSP in a BGP tunnel.
# Configure a routing policy for advertising routes matching Route-Policy conditions to the
CSG's BGP peer.
[CSG] route-policy policy1 permit node 1
[CSG-route-policy] apply mpls-label
[CSG-route-policy] quit
[CSG] bgp 100
[CSG-bgp] peer 2.2.2.2 route-policy policy1 export
[CSG-bgp] quit
Repeat this step for the MASG. For configuration details, see Configuration Files in this
section.
# Configure a routing policy for advertising routes matching Route-Policy conditions to the
AGG's BGP peer.
[AGG] route-policy policy1 permit node 1
[AGG-route-policy] if-match mpls-label
[AGG-route-policy] apply mpls-label
[AGG-route-policy] quit
[AGG] bgp 100
[AGG-bgp] peer 1.1.1.1 route-policy policy1 export
[AGG-bgp] peer 3.3.3.3 route-policy policy1 export
[AGG-bgp] quit
Repeat this step for the AGG ASBR and core ASBR. For configuration details, see
Configuration Files in this section.
Step 8 Configure BFD for BGP tunnel.
# On the CSG, enable the MPLS capability to dynamically establish BGP BFD sessions based
on host addresses.
[CSG] bfd
[CSG-bfd] quit
[CSG] mpls
[CSG-mpls] mpls bgp bfd enable
[CSG-mpls] mpls bgp bfd-trigger-tunnel host
[CSG-mpls] quit
# On the MASG, enable the MPLS capability of passively creating a BFD session.
[MASG] bfd
[MASG-bfd] mpls-passive
[MASG-bfd] quit
Run the display mpls lsp protocol bgp verbose command on the CSG to view detailed
information about all BGP LSPs. The command output shows that the BFD session is Up.
[CSG] display mpls lsp protocol bgp verbose
-------------------------------------------------------------------------------
LSP Information: BGP LSP
-------------------------------------------------------------------------------
No : 1
VrfIndex :
RD Value : 0:0
Fec : 1.1.1.1/32
Nexthop : 255.255.255.255
In-Label : 1025
Out-Label : NULL
In-Interface : ----------
Out-Interface : ----------
LspIndex : 7168
Token : 0x0
LsrType : Egress
Outgoing token : 0x0
Label Operation : POP
Mpls-Mtu : ------
TimeStamp : 802sec
FrrToken : 0x0
FrrOutgoingToken : 0x0
BGPKey : -------
BackupBGPKey : -------
FrrOutLabel : -------
Bfd-State : ---
Exp-Mode : ---
No : 2
VrfIndex :
RD Value : 0:0
Fec : 5.5.5.5/32
Nexthop : 2.2.2.2
In-Label : NULL
Out-Label : 1027
In-Interface : ----------
Out-Interface : ----------
LspIndex : 7169
Token : 0x48000007
LsrType : Ingress
Outgoing token : 0x48000005
Label Operation : PUSH
Mpls-Mtu : ------
TimeStamp : 425sec
FrrToken : 0x0
FrrOutgoingToken : 0x0
BGPKey : -------
BackupBGPKey : -------
FrrOutLabel : -------
Bfd-State : Up
Exp-Mode : ---
----End
Configuration Files
l CSG configuration file
#
sysname CSG
#
bfd
#
mpls lsr-id 1.1.1.1
mpls
mpls bgp bfd enable
mpls bgp bfd-trigger-Tunnel host
#
mpls ldp
#
interface GigabitEthernet0/0/1
undo portswitch
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
network 1.1.1.1 255.255.255.255
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return
#
interface GigabitEthernet0/0/1
undo portswitch
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/2
undo portswitch
ip address 10.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack0
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 1.1.1.1 enable
peer 1.1.1.1 route-policy policy1 export
peer 1.1.1.1 reflect-client
peer 1.1.1.1 next-hop-local
peer 1.1.1.1 label-route-capability
peer 3.3.3.3 enable
peer 3.3.3.3 route-policy policy1 export
peer 3.3.3.3 reflect-client
peer 3.3.3.3 next-hop-local
peer 3.3.3.3 label-route-capability
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
l AGG ASBR configuration file
#
sysname AGG ASBR
#
mpls lsr-id 3.3.3.3
mpls
#
mpls ldp
#
isis 1
network-entity 10.0001.0030.0300.3003.00
#
interface GigabitEthernet0/0/1
undo portswitch
ip address 10.2.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet0/0/2
undo portswitch
ip address 10.3.1.1 255.255.255.0
mpls
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0
peer 10.3.1.2 as-number 200
#
ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
peer 10.3.1.2 enable
peer 10.3.1.2 route-policy policy1 export
peer 10.3.1.2 label-route-capability check-tunnel-reachable
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
l Core ASBR configuration file
#
sysname Core ASBR
#
mpls lsr-id 4.4.4.4
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/1
undo portswitch
ip address 10.3.1.2 255.255.255.0
mpls
#
interface GigabitEthernet0/0/2
undo portswitch
ip address 10.4.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
bgp 200
peer 5.5.5.5 as-number 200
peer 5.5.5.5 connect-interface LoopBack0
peer 10.3.1.1 as-number 100
#
ipv4-family unicast
undo synchronization
peer 5.5.5.5 enable
peer 5.5.5.5 route-policy policy1 export
peer 5.5.5.5 label-route-capability
peer 10.3.1.1 enable
peer 10.3.1.1 route-policy policy1 export
peer 10.3.1.1 label-route-capability check-tunnel-reachable
#
ospf 2
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.4.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
7.10 References
The following table lists the references for this document.