6PE Next-Hop Resolution
This chapter provides information about 6PE next hop resolution.
Topics in this chapter include:
Applicability
This chapter was initially written based on SR OS Release 14.0.R7, but the MD-CLI in the current edition corresponds to SR OS Release 23.7.R1.
In Releases earlier than 14.0.R1, only label distribution protocol label switched paths (LDP LSPs) could be used to resolve IPv6 provider edge (6PE) next hops. Additional options for 6PE next hop resolution are supported in SR OS Release 14.0.R1, and later. In this chapter, examples are shown with 6PE next hop resolution to different kinds of MPLS tunnels, such as LDP, RSVP-TE, SR-ISIS, and BGP tunnels.
Overview
IPv6 provider edge (6PE) enables IPv6 communication between IPv6 domains over an IPv4 multi-protocol label switching (MPLS) cloud. IPv6 packets are forwarded in an MPLS tunnel from one dual-stack 6PE router to another, as shown in IPv6 provider edge (6PE).
The 6PE route next hop resolution is configured using the following command:
*[ex:/configure router "Base" bgp next-hop-resolution labeled-routes transport-tunnel family label-ipv6]
A:admin@PE-1# resolution ?
resolution <keyword>
<keyword> - (none|filter|any)
Default - filter
Resolution mode for binding BGP routes to tunnel types
With 6PE next hop resolution set to any, the tunnels are selected based on availability and tunnel table manager (TTM) preference. The order of preference of TTM tunnels is: RSVP, SR-TE, LDP, SR-OSPF, SR-ISIS, and UDP.
For LDP to be used, it is sufficient to enable LDP on the interfaces in the MPLS network.
For RSVP-TE to be used, an RSVP-TE LSP to the 6PE next-hop destination must be available or configured. For segment routing to be used, an SR-signaled path to the 6PE next hop destination must be available or configured. For BGP labeled routes to be used, the 6PE next hop must have been learned via a BGP peering carrying labeled unicast routes and placed in the active route table.
With 6PE next hop resolution set to filter (default), a subset of protocols is required, and LDP is automatically included in the protocol list in the resolution filter. The following info command shows an empty list of protocols when no resolution filter has been defined; the info detail command shows that LDP is (implicitly) included.
*[ex:/configure router "Base" bgp next-hop-resolution labeled-routes transport-tunnel family label-ipv6 resolution-filter]
A:admin@PE-1# info
*[ex:/configure router "Base" bgp next-hop-resolution labeled-routes transport-tunnel family label-ipv6 resolution-filter]
A:admin@PE-1# info detail
bgp false
ldp true
rsvp false
sr-isis false
sr-ospf false
sr-te false
udp false
sr-policy false
rib-api false
mpls-fwd-policy false
sr-ospf3 false
If the 6PE next hop can be resolved to an LDP tunnel, this tunnel is preferred to a BGP tunnel.
It is possible to explicitly exclude LDP from the list, as follows:
*[ex:/configure router "Base" bgp next-hop-resolution labeled-routes transport-tunnel family label-ipv6 resolution-filter]
A:admin@PE-1# ldp false
*[ex:/configure router "Base" bgp next-hop-resolution labeled-routes transport-tunnel family label-ipv6 resolution-filter]
A:admin@PE-1# info
bgp true
ldp false
Configuration
Example topology shows the example topology with two dual-stack 6PE routers (PE-1 and PE-4), a core router (P-2), and a route reflector (RR-3). IPv4 is used in the core network; IPv6 is used between the CEs and the PEs.
The initial configuration on the nodes is as follows:
Cards, MDAs, ports
Router interfaces
IS-IS as IGP in the core IPv4 network (alternatively, OSPF can be used)
LDP enabled on the interfaces between the PEs and P-2, but not toward RR-3
MPLS and RSVP enabled on the interfaces between the PEs and P-2, but not toward RR-3
BGP configuration
BGP is configured for the label-IPv6 address family on PE-1, PE-4, and RR-3, but not on P-2. The BGP configuration on both PEs defines how the 6PE next hops will be resolved: the resolution filter contains three options (LDP, RSVP, and SR-ISIS). The BGP configuration is identical on PE-1 and PE-4.
# on PE-1, PE-4:
configure {
router "Base" {
autonomous-system 64496
bgp {
split-horizon true
next-hop-resolution {
labeled-routes {
transport-tunnel {
family label-ipv6 {
resolution-filter {
# ldp true # default
rsvp true
sr-isis true
}
# resolution filter #default
}
}
}
}
group "IBGP" {
peer-as 64496
export {
policy ["export-6pe"]
}
}
neighbor "192.0.2.3" {
group "IBGP"
family {
label-ipv6 true
}
}
The export policy "export-6pe" exports the IPv6 prefixes that are local to the PE, for example, on PE-1: 2001:db8::1:11:1:0/120, and is defined as follows:
# on PE-1, PE-4:
configure {
policy-options {
policy-statement "export-6pe" {
entry 10 {
from {
protocol {
name [direct]
}
}
action {
action-type accept
}
}
default-action {
action-type reject
}
}
The BGP configuration on RR-3 does not include any export policy or any next-hop resolution settings, as follows:
# on RR-3:
configure {
router "Base"
autonomous-system 64496
bgp {
split-horizon true
group "IBGP" {
peer-as 64496
cluster {
cluster-id 192.0.2.3
}
}
neighbor "192.0.2.1" {
group "IBGP"
family {
label-ipv6 true
}
}
neighbor "192.0.2.4" {
group "IBGP"
family {
label-ipv6 true
}
}
IES configuration
On PE-1, an IES is configured with IPv6 addresses on the interface toward CE-11, as follows:
# on PE-1:
configure {
service {
ies "IES-1" {
admin-state enable
description "6PE"
service-id 1
customer "1"
interface "int-PE-1-CE-11" {
sap 1/1/c3/1:1 {
}
ipv6 {
address 2001:db8::1:11:1:1 {
prefix-length 120
}
}
}
}
The configuration on PE-4 is similar; the IPv6 address on interface "int-PE-4-CE-41" is different: 2001:db8::1:11:4:1/120.
A BGP labeled IPv6 tunnel, which is active in the IPv6 routing table, is established between the PEs, as follows:
[/]
A:admin@PE-1# show router route-table ipv6
===============================================================================
IPv6 Route Table (Router: Base)
===============================================================================
Dest Prefix[Flags] Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
2001:db8::1:11:1:0/120 Local Local 00h04m06s 0
int-PE-1-CE-11 0
2001:db8::1:11:4:0/120 Remote BGP_LABEL 00h03m56s 170
192.0.2.4 (tunneled) 20
-------------------------------------------------------------------------------
No. of Routes: 2
Flags: n = Number of times nexthop is repeated
B = BGP backup route available
L = LFA nexthop available
S = Sticky ECMP requested
===============================================================================
CE-11 can send IPv6 packets with source address 2001:db8::1:11:1:11 to destination address 2001:db8::1:11:4:41 on CE-41, as follows:
[/]
A:admin@PE-1# ping 2001:db8::1:11:4:41 router-instance "CE-11" source-address 2001:db8::1:11:1:11
PING 2001:db8::1:11:4:41 56 data bytes
64 bytes from 2001:db8::1:11:4:41 icmp_seq=1 hlim=62 time=8.79ms.
64 bytes from 2001:db8::1:11:4:41 icmp_seq=2 hlim=62 time=3.69ms.
64 bytes from 2001:db8::1:11:4:41 icmp_seq=3 hlim=62 time=3.47ms.
64 bytes from 2001:db8::1:11:4:41 icmp_seq=4 hlim=62 time=3.65ms.
64 bytes from 2001:db8::1:11:4:41 icmp_seq=5 hlim=62 time=2.60ms.
---- 2001:db8::1:11:4:41 PING Statistics ----
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min = 2.60ms, avg = 4.44ms, max = 8.79ms, stddev = 2.21ms
6PE next hop resolved to an LDP tunnel
On PE-1, the route for prefix 2001:db8::1:11:4:0/120 uses a tunnel to 6PE next hop 192.0.2.4, as follows:
[/]
A:admin@PE-1# show router route-table 2001:db8::1:11:4:0/120
===============================================================================
IPv6 Route Table (Router: Base)
===============================================================================
Dest Prefix[Flags] Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
2001:db8::1:11:4:0/120 Remote BGP_LABEL 00h04m17s 170
192.0.2.4 (tunneled) 20
-------------------------------------------------------------------------------
No. of Routes: 1
Flags: n = Number of times nexthop is repeated
B = BGP backup route available
L = LFA nexthop available
S = Sticky ECMP requested
===============================================================================
LDP is enabled on the interfaces between the PEs and P-2, which is sufficient for 6PE next hop resolution to an LDP tunnel. RSVP-TE tunnels have a higher priority, but no MPLS LSPs have been configured yet on the PEs. The tunnel table on PE-1 shows that the only tunnel to 6PE next hop 192.0.2.4 is an LDP tunnel, as follows:
[/]
A:admin@PE-1# show router tunnel-table
===============================================================================
IPv4 Tunnel Table (Router: Base)
===============================================================================
Destination Owner Encap TunnelId Pref Nexthop Metric
Color
-------------------------------------------------------------------------------
192.0.2.2/32 ldp MPLS 65537 9 192.168.12.2 10
192.0.2.4/32 ldp MPLS 65538 9 192.168.12.2 20
-------------------------------------------------------------------------------
Flags: B = BGP or MPLS backup hop available
L = Loop-Free Alternate (LFA) hop available
E = Inactive best-external BGP route
k = RIB-API or Forwarding Policy backup hop
===============================================================================
Alternatively, the following show command can be used: the only tunnel on slot 1 (card 1) to 6PE next hop 192.0.2.4 is an LDP tunnel:
[/]
A:admin@PE-1# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 LDP -
524286
192.168.12.2 1/1/c1/1:1000
-------------------------------------------------------------------------------
Total Entries : 1
-------------------------------------------------------------------------------
===============================================================================
The extended route information for IPv6 prefix 2001:db8::1:11:4:0/120 shows that the 6PE next hop 192.0.2.4 is resolved to an LDP tunnel:
[/]
A:admin@PE-1# show router route-table 2001:db8::1:11:4:0/120 extensive
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix : 2001:db8::1:11:4:0/120
Protocol : BGP_LABEL
Age : 00h05m42s
Preference : 170
Indirect Next-Hop : 192.0.2.4
Label : 2
QoS : Priority=n/c, FC=n/c
Source-Class : 0
Dest-Class : 0
ECMP-Weight : N/A
Resolving Next-Hop : 192.0.2.4 (LDP tunnel)
Metric : 20
ECMP-Weight : N/A
-------------------------------------------------------------------------------
No. of Destinations: 1
===============================================================================
6PE next hop resolved to an LDP tunnel shows that the 6PE next hop is resolved to an LDP tunnel. No other tunnels are available in the IPv4 core network.
6PE next hop resolved to an RSVP-TE tunnel
MPLS and RSVP are enabled on the interfaces between the PEs and P-2. On both PEs, an RSVP-TE LSP is configured toward the peer PE; for example, on PE-1:
# on PE-1:
configure {
router Base
mpls {
path "empty" {
admin-state enable
}
lsp "LSP-PE-1-PE-4" {
admin-state enable
type p2p-rsvp
to 192.0.2.4
primary "empty" {
}
}
The configuration is similar on PE-4. No additional configuration is required on P-2.
The following output shows that two tunnels are available to 6PE next hop 192.0.2.4/32: an LDP tunnel and an RSVP-TE tunnel:
[/]
A:admin@PE-1# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 LDP -
524286
192.168.12.2 1/1/c1/1:1000
192.0.2.4/32 RSVP 1
524284
192.168.12.2 1/1/c1/1:1000
-------------------------------------------------------------------------------
Total Entries : 2
-------------------------------------------------------------------------------
===============================================================================
For 6PE next hop resolution, RSVP-TE tunnels are preferred to any other tunnel type in the tunnel table, so the BGP next hop 192.0.2.4 will be resolved to an RSVP-TE tunnel, as follows:
[/]
A:admin@PE-1# show router route-table 2001:db8::1:11:4:0/120 extensive
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix : 2001:db8::1:11:4:0/120
Protocol : BGP_LABEL
Age : 00h00m43s
Preference : 170
Indirect Next-Hop : 192.0.2.4
Label : 2
QoS : Priority=n/c, FC=n/c
Source-Class : 0
Dest-Class : 0
ECMP-Weight : N/A
Resolving Next-Hop : 192.0.2.4 (RSVP tunnel:1)
Metric : 20
ECMP-Weight : N/A
-------------------------------------------------------------------------------
No. of Destinations: 1
===============================================================================
6PE next hop resolved to an RSVP-TE tunnel shows that the 6PE next hop 192.0.2.4 is resolved to an RSVP-TE tunnel, even though an LDP tunnel is available too.
6PE next hop resolved to an SR-ISIS tunnel
Segment routing is enabled for IS-IS on PE-1, P-2, and PE-4. The configuration is similar on each of these nodes; the only difference is the IPv4 node SID index on the system interface. The SR-ISIS configuration on PE-1 is as follows:
# on PE-1:
configure {
router "Base" {
mpls-labels {
sr-labels {
start 20000
end 20099
}
}
isis 0 {
advertise-router-capability area
segment-routing {
admin-state enable
prefix-sid-range {
start-label 20000
max-index 99
}
}
interface "system" {
ipv4-node-sid {
index 1
}
}
}
For more information about SR-ISIS, see the "Segment Routing with IS-IS Control Plane" in 7750 SR and 7950 XRS Segment Routing and PCE Advanced Configuration Guide for MD CLI chapter.
The following output shows that three tunnels are available toward 6PE next hop 192.0.2.4/32:
[/]
A:admin@PE-1# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 LDP -
524286
192.168.12.2 1/1/c1/1:1000
192.0.2.4/32 RSVP 1
524284
192.168.12.2 1/1/c1/1:1000
192.0.2.4/32 SR-ISIS-0 524291
20004
192.168.12.2 1/1/c1/1:1000
-------------------------------------------------------------------------------
Total Entries : 3
-------------------------------------------------------------------------------
===============================================================================
RSVP-TE tunnels are preferred; therefore, the 6PE next hop 192.0.2.4 is resolved to the RSVP-TE tunnel, as follows:
[/]
A:admin@PE-1# show router route-table 2001:db8::1:11:4:0/120 extensive
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix : 2001:db8::1:11:4:0/120
Protocol : BGP_LABEL
Age : 00h02m12s
Preference : 170
Indirect Next-Hop : 192.0.2.4
Label : 2
QoS : Priority=n/c, FC=n/c
Source-Class : 0
Dest-Class : 0
ECMP-Weight : N/A
Resolving Next-Hop : 192.0.2.4 (RSVP tunnel:1)
Metric : 20
ECMP-Weight : N/A
-------------------------------------------------------------------------------
No. of Destinations: 1
===============================================================================
To verify that LDP tunnels are preferred over SR-ISIS tunnels, the RSVP-TE LSPs are disabled, as follows:
# on PE-1:
configure {
router "Base"
mpls {
lsp "LSP-PE-1-PE-4" {
admin-state disable
}
The following output shows that two tunnels are available toward 6PE next hop 192.0.2.4/32: an LDP tunnel and an SR-ISIS tunnel.
[/]
A:admin@PE-1# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 LDP -
524286
192.168.12.2 1/1/c1/1:1000
192.0.2.4/32 SR-ISIS-0 524291
20004
192.168.12.2 1/1/c1/1:1000
-------------------------------------------------------------------------------
Total Entries : 2
-------------------------------------------------------------------------------
===============================================================================
For 6PE next-hop resolution, the LDP tunnel is preferred over the SR-ISIS tunnel, as follows:
[/]
A:admin@PE-1# show router route-table 2001:db8::1:11:4:0/120 extensive
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix : 2001:db8::1:11:4:0/120
Protocol : BGP_LABEL
Age : 00h00m31s
Preference : 170
Indirect Next-Hop : 192.0.2.4
Label : 2
QoS : Priority=n/c, FC=n/c
Source-Class : 0
Dest-Class : 0
ECMP-Weight : N/A
Resolving Next-Hop : 192.0.2.4 (LDP tunnel)
Metric : 20
ECMP-Weight : N/A
-------------------------------------------------------------------------------
No. of Destinations: 1
===============================================================================
When LDP is disabled on interface "int-PE-1-P-2" on PE-1, the only remaining tunnel is an SR-ISIS tunnel, as follows:
# on PE-1:
configure {
router "Base" {
ldp {
interface-parameters {
interface "int-PE-1-P-2" {
admin-state disable
}
}
[/]
A:admin@PE-1# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 SR-ISIS-0 524291
20004
192.168.12.2 1/1/c1/1:1000
-------------------------------------------------------------------------------
Total Entries : 1
-------------------------------------------------------------------------------
===============================================================================
The 6PE next hop 192.0.2.4 is resolved to an SR-ISIS tunnel, as follows:
[/]
A:admin@PE-1# show router route-table 2001:db8::1:11:4:0/120 extensive
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix : 2001:db8::1:11:4:0/120
Protocol : BGP_LABEL
Age : 00h00m55s
Preference : 170
Indirect Next-Hop : 192.0.2.4
Label : 2
QoS : Priority=n/c, FC=n/c
Source-Class : 0
Dest-Class : 0
ECMP-Weight : N/A
Resolving Next-Hop : 192.0.2.4 (SR-ISIS tunnel:524291)
Metric : 20
ECMP-Weight : N/A
-------------------------------------------------------------------------------
No. of Destinations: 1
===============================================================================
6PE next hop resolved to an SR-ISIS tunnel shows that the 6PE next hop 192.0.2.4 is resolved to an SR-ISIS tunnel after the RSVP-TE LSPs are disabled and LDP is disabled on the interfaces between the PEs and P-2. No other tunnels are available.
6PE next-hop resolution to a BGP IPv4 tunnel
The preceding example cannot be extended with BGP labeled IPv4 tunnels. The reason is that for BGP to work, some underlying MPLS signaling protocol is required, such as RSVP-TE or LDP. Because BGP tunnels have a very low preference, they will not be used when an LDP or RSVP-TE tunnel is available to the 6PE next hop.
This section shows a seamless MPLS example where 6PE next hops are resolved to BGP labeled IPv4 routes, because no LDP tunnel is available to the 6PE next hop in a different IGP topology (in this example, LDP is configured, not RSVP-TE). For a description of this seamless MPLS implementation, see the "Seamless MPLS: Isolated IGP/LDP Domains and Labeled BGP" chapter in the 7450 ESS, 7750 SR, and 7950 XRS MPLS Advanced Configuration Guide for MD CLI.
Example topology for seamless MPLS shows the example topology for seamless MPLS with two aggregation networks and one core network.
Different IS-IS instances are configured: IS-IS instance 0 is configured in the core, whereas IS-IS instance 1 is configured in the aggregation networks. On the area border routers (ABRs) ABR-2 and ABR-3, two instances of IS-IS are configured: IS-IS instance 0 for the core and IS-IS instance 1 for the aggregation network. PE-1 and PE-4 will only learn routes to destinations within their respective aggregation networks; ABRs learn routes within one aggregation network and the core network. LDP is configured on all interfaces, but PE-1 will not have an LDP binding for prefix 192.0.2.4/32, as shown in the following output. Therefore, 6PE next hop 192.0.2.4 cannot be resolved to an LDP tunnel.
[/]
A:admin@PE-1# show router ldp bindings active prefixes ipv4
===============================================================================
LDP Bindings (IPv4 LSR ID 192.0.2.1)
(IPv6 LSR ID ::)
===============================================================================
Label Status:
U - Label In Use, N - Label Not In Use, W - Label Withdrawn
WP - Label Withdraw Pending, BU - Alternate For Fast Re-Route
e - Label ELC
FEC Flags:
LF - Lower FEC, UF - Upper FEC, M - Community Mismatch,
BA - ASBR Backup FEC
(S) - Static (M) - Multi-homed Secondary Support
(B) - BGP Next Hop (BU) - Alternate Next-hop for Fast Re-Route
(I) - SR-ISIS Next Hop (O) - SR-OSPF Next Hop
(C) - FEC resolved with class-based-forwarding
===============================================================================
LDP IPv4 Prefix Bindings (Active)
===============================================================================
Prefix Op
IngLbl EgrLbl
EgrNextHop EgrIf/LspId
-------------------------------------------------------------------------------
192.0.2.1/32 Pop
524287 --
-- --
192.0.2.2/32 Push
-- 524287
192.168.12.2 1/1/c1/1:1000
-------------------------------------------------------------------------------
No. of IPv4 Prefix Active Bindings: 2
===============================================================================
Configured protocols for seamless MPLS shows the configured protocols for this example: IS-IS instances, LDP, BGP labeled IPv4 with the ABRs as route reflector with next-hop-self (NHS) option, and BGP labeled IPv6 peering between PE-1 and PE-4.
The following initial configuration on ABR-2 includes two IS-IS instances in different areas. IS-IS instance 0 with area ID 49.0002 is configured in the core network; IS-IS instance 1 with area ID 49.0001 is configured in the aggregation network between PE-1 and ABR-2. LDP is configured on each router interface.
# on ABR-2:
configure {
router "Base" {
interface "int-ABR-2-ABR-3" {
port 1/1/c3/1:1000
ipv4 {
primary {
address 192.168.23.1
prefix-length 30
}
}
}
interface "int-ABR-2-PE-1" {
port 1/1/c2/1:1000
ipv4 {
primary {
address 192.168.12.2
prefix-length 30
}
}
}
interface "system" {
ipv4 {
primary {
address 192.0.2.2
prefix-length 32
}
}
}
isis 0 {
admin-state enable
level-capability 2
area-address [49.0002]
interface "int-ABR-2-ABR-3" {
interface-type point-to-point
}
interface "system" {
}
}
isis 1 {
admin-state enable
level-capability 2
area-address [49.0001]
interface "int-ABR-2-PE-1" {
interface-type point-to-point
}
interface "system" {
}
}
ldp {
interface-parameters {
interface "int-ABR-2-ABR-3" {
ipv4 {
}
}
interface "int-ABR-2-PE-1" {
ipv4 {
}
}
}
}
The configuration is similar on the other nodes. Only the ABRs have two IS-IS instances configured; the PEs only have one IS-IS instance.
BGP needs to be configured for the label-IPv4 and label-IPv6 address families:
The label-IPv4 address family is used with the ABRs as RR in the aggregation network. Each ABR is configured with the next-hop-self option. BGP label-IPv4 peering is between the ABRs without RR.
The label-IPv6 address family is used between PE-1 and PE-4. The BGP session can only be established after the BGP labeled IPv4 routes have been exchanged between PE-1 and PE-4.
BGP is configured on PE-1 as follows:
# on PE-1:
configure {
router "Base" {
autonomous-system 64496
bgp {
split-horizon true
next-hop-resolution {
labeled-routes {
transport-tunnel {
family label-ipv6 {
resolution-filter {
bgp true
# ldp true # LDP is by default included
}
}
}
}
}
group "IBGPv4" {
peer-as 64496
export {
policy ["export-sys"]
}
}
group "IBGPv6" {
peer-as 64496
export {
policy ["export-6pe"]
}
}
neighbor "192.0.2.2" {
group "IBGPv4"
family {
label-ipv4 true
}
}
neighbor "192.0.2.4" {
group "IBGPv6"
family {
label-ipv6 true
}
}
}
The configuration is similar on PE-4, but the neighbor IP addresses are different.
The resolution filter will include LDP as well as BGP, because it is added automatically. However, no LDP tunnel will be available from PE-1 to PE-4, or vice versa; therefore, BGP labeled IPv4 will be used.
The "export-sys" policy exports the IPv4 system address of the PE and is defined as follows:
# on PE-1, PE-4:
configure {
policy-options {
prefix-list "system" {
prefix 192.0.2.0/24 type longer {
}
}
policy-statement "export-sys" {
entry 10 {
from {
prefix-list ["system"]
protocol {
name [direct]
}
}
action {
action-type accept
}
}
default-action {
action-type reject
}
}
The "export-6pe" policy exports the local labeled IPv6 routes and is the same in the preceding examples:
# on PE-1, PE-4:
configure {
policy-options {
policy-statement "export-6pe" {
entry 10 {
from {
protocol {
name [direct]
}
}
action {
action-type accept
}
}
default-action {
action-type reject
}
}
The BGP configuration on ABR-2 has two different groups for BGP labeled IPv4 peering: one toward the aggregation network—with the ABR as RR—and one toward the core, as follows:
# on ABR-2:
configure {
router "Base" {
autonomous-system 64496
bgp {
advertise-inactive true
split-horizon true
group "IBGPv4-agg" {
next-hop-self true
peer-as 64496
cluster {
cluster-id 192.0.2.2
}
}
group "IBGPv4-core" {
next-hop-self true
peer-as 64496
}
neighbor "192.0.2.1" {
group "IBGPv4-agg"
family {
label-ipv4 true
}
}
neighbor "192.0.2.3" {
group "IBGPv4-core"
family {
label-ipv4 true
}
}
}
The configuration is similar on ABR-3, but the neighbor IP addresses and the cluster ID are different.
The ABRs are configured with the next-hop-self option for both groups. The 6PE next hop 192.0.2.4 will have next hop ABR-2 on PE-1, which can be resolved to an LDP tunnel. On ABR-2, 6PE next hop 192.0.2.4 will have ABR-3 as next hop, which can be resolved to an LDP tunnel. On ABR-3, the 6PE next hop 192.0.2.4 can be resolved to an LDP tunnel (no active BGP route to 192.0.2.4/32 on ABR-3 because the route via IS-IS is preferred).
The advertise-inactive option is required for ABR-2 to export a BGP route for prefix 192.0.2.1/32, which is not active on ABR-2, because an IS-IS route is available for this prefix and IS-IS routes are preferred over BGP routes.
The IES configuration is the same as in the preceding example.
When the labeled IPv4 routes are exchanged between PE-1 and PE-4, the BGP labeled session using IPv6 peering can be established between PE-1 and PE-4, as follows:
[/]
A:admin@PE-1# show router bgp summary all
===============================================================================
BGP Summary
===============================================================================
Legend : D - Dynamic Neighbor
===============================================================================
Neighbor
Description
ServiceId AS PktRcvd InQ Up/Down State|Rcv/Act/Sent (Addr Family)
PktSent OutQ
-------------------------------------------------------------------------------
192.0.2.2
Def. Inst 64496 12 0 00h03m34s 1/1/1 (Lbl-IPv4)
12 0
192.0.2.4
Def. Inst 64496 8 0 00h01m47s 1/1/1 (Lbl-IPv6)
8 0
-------------------------------------------------------------------------------
For IPv6 prefix 2001:db8::1:11:4:0/120 on PE-1, 6PE next hop 192.0.2.4 is resolved to a BGP tunnel, as follows:
[/]
A:admin@PE-1# show router route-table 2001:db8::1:11:4:0/120 extensive
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix : 2001:db8::1:11:4:0/120
Protocol : BGP_LABEL
Age : 00h01m40s
Preference : 170
Indirect Next-Hop : 192.0.2.4
Label : 2
QoS : Priority=n/c, FC=n/c
Source-Class : 0
Dest-Class : 0
ECMP-Weight : N/A
Resolving Next-Hop : 192.0.2.4 (BGP tunnel)
Metric : 1000
ECMP-Weight : N/A
-------------------------------------------------------------------------------
No. of Destinations: 1
===============================================================================
The BGP labeled IPv4 route to 192.0.2.4 has different next hops in different nodes, because both ABRs set the next-hop-self option. On PE-1, the BGP labeled IPv4 route for prefix 192.0.2.4 has next hop 192.0.2.2 and uses an LDP tunnel to reach ABR-2 within the aggregation network, as follows:
[/]
A:admin@PE-1# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 BGP -
524282
192.0.2.2 LDP
-------------------------------------------------------------------------------
Total Entries : 1
-------------------------------------------------------------------------------
===============================================================================
On ABR-2, the BGP labeled route to 192.0.2.4/32 has next hop 192.0.2.3 and uses an LDP tunnel in the core network to reach ABR-3, as follows:
[/]
A:admin@ABR-2# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 BGP -
524282
192.0.2.3 LDP
-------------------------------------------------------------------------------
Total Entries : 1
-------------------------------------------------------------------------------
===============================================================================
On ABR-3, no BGP labeled IPv4 route is active for prefix 192.0.2.4 because IS-IS routes are preferred to BGP routes. An LDP tunnel is used toward PE-4 in the aggregation network, as follows:
[/]
A:admin@ABR-3# show router fp-tunnel-table 1 192.0.2.4/32
===============================================================================
IPv4 Tunnel Table Display
Legend:
label stack is ordered from bottom-most to top-most
B - FRR Backup
===============================================================================
Destination Protocol Tunnel-ID
Lbl/SID
NextHop Intf/Tunnel
Lbl/SID (backup)
NextHop (backup)
-------------------------------------------------------------------------------
192.0.2.4/32 LDP -
524287
192.168.34.2 1/1/c1/1:1000
-------------------------------------------------------------------------------
Total Entries : 1
-------------------------------------------------------------------------------
===============================================================================
BGP labeled IPv4 tunnel for 192.0.2.4/32 using LDP tunnels shows the BGP and LDP tunnels used for 6PE next hop 192.0.2.4/32.
Conclusion
The 6PE next hops can be resolved to different types of MPLS tunnels, each with a different preference.