Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BGP MP_REACH / MP_UNREACH Field Reference

Direct answer

MP_REACH_NLRI and MP_UNREACH_NLRI are BGP attributes that carry routes and withdrawals for address families other than plain IPv4 unicast, such as IPv6 or VPNv4, identified by AFI/SAFI and including their own next hop.

When to use this

Use it when IPv6, VPNv4 or EVPN routes are missing over BGP and you need to check address-family negotiation and MP_REACH/MP_UNREACH.

First 30 seconds

1. MP_REACH_NLRI (type 14) carries AFI, SAFI, next hop and NLRI for non-IPv4 unicast families.

2. MP_UNREACH_NLRI (type 15) withdraws them.

3. Address families must be negotiated in OPEN.

4. Next hop format depends on family.

5. Used for IPv6, VPNv4, EVPN.

Operational verification

OPEN capability → MP_REACH (AFI/SAFI, next hop, NLRI) → table per family

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard
Key commandshow bgp ipv6 unicast summary
Scope / prerequisiteUse it when IPv6, VPNv4 or EVPN routes are missing over BGP and you need to check address-family negotiation and MP_REA…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Packet capture verification and known-good sequence Verify boundary
show bgp ipv6 unicast summary
show ip bgp neighbors 192.0.2.2 | section capabilities
show bgp ipv6 unicast 2001:db8:20::/48
show ipv6 route 2001:db8:ffff::1

The per-family summary lists the neighbours for which that family is active, with prefix counts. The capabilities section shows each address family as advertised and received. The prefix detail shows the next hop that came in the attribute, and the route lookup tests whether it is reachable.

Known-good: the neighbour appears in the family's summary with a prefix count, the family is advertised and received, and received prefixes have a reachable next hop.

Step 2 Failure signatures and packet-level troubleshooting Narrow the fault
  • The neighbour is Established but not in the IPv6 summary. The family is not activated for it on this router.
  • Activated here, still no routes. The other side has not activated it; the capability shows as advertised only.
  • Prefixes are received but not used. The next hop in the attribute is not reachable — typical for IPv6 routes over an IPv4 session.
  • The next hop is an IPv4-mapped address such as ::FFFF:192.0.2.2. The sender had no IPv6 next hop to use; set one with a route map.
  • IPv4 routes stopped after no bgp default ipv4-unicast. IPv4 must then be activated per neighbour as well.
  • Activating a family reset the session. Capabilities are exchanged only in the OPEN, so the session restarts.
Step 3 When the problem is really fixed Narrow the fault
  • The family is shown as advertised and received for the neighbour.
  • The neighbour has a prefix count in that family's summary.
  • Received prefixes have a reachable next hop and are installed.
  • A ping within that address family succeeds.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key checks
  • show bgp ipv6 unicast summary — MP-BGP AFI/SAFI
  • show bgp vpnv4 unicast all — VPN NLRI
  • show bgp ipv4 unicast neighbors <peer> — capabilities (multiprotocol)
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

BGP was built for IPv4. To carry anything else — IPv6, VPN routes, multicast — it uses two extra attributes: MP_REACH_NLRI announces prefixes of another address family together with their next hop, and MP_UNREACH_NLRI withdraws them.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

This is why IPv6 routes can be exchanged over a BGP session between IPv4 addresses, and also why an Established session says nothing about IPv6: each address family has to be enabled separately, and its next hop travels separately too.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

MP_REACH_NLRI and MP_UNREACH_NLRI

Everything BGP carries other than IPv4 unicast travels in two attributes defined by RFC 4760. MP_REACH_NLRI (type 14) announces routes. Its fields are AFI (2 bytes), SAFI (1 byte), next-hop length, the next-hop address, a reserved byte, and the NLRI. MP_UNREACH_NLRI (type 15) withdraws routes, with AFI, SAFI and the withdrawn NLRI. Both are optional non-transitive. An UPDATE carrying only MP_UNREACH_NLRI doesn't need any other attributes. Support is negotiated per address family with capability code 1, whose value is AFI, a reserved byte and SAFI.

Common AFI/SAFI pairs

AFISAFIAddress familyTypical use
1 (IPv4)1IPv4 unicastInternet, enterprise
2 (IPv6)1IPv6 unicastInternet, enterprise
1 / 22IPv4 / IPv6 multicastRPF for multicast
1128VPNv4MPLS L3VPN
2128VPNv6MPLS L3VPN
25 (L2VPN)70EVPNVXLAN and MPLS EVPN
1 / 2133FlowspecDDoS filtering rules

RFC 4760 names SAFI 1 (unicast) and 2 (multicast). The other values come from the IANA registries.

Next hop by address family

FamilyNext-hop lengthContents
IPv6 unicast16 or 32Global address, optionally plus link-local
VPNv4128-byte zero route distinguisher + IPv4 address
EVPN4 or 16The VTEP or PE address
R1(config)# router bgp 65010
R1(config-router)# neighbor 2001:db8:0:1::2 remote-as 64500
R1(config-router)# address-family ipv6 unicast
R1(config-router-af)# neighbor 2001:db8:0:1::2 activate
R1# show bgp ipv6 unicast summary
R1# show bgp ipv6 unicast 2001:db8:500::/48 | include from|Origin|2001
host$ tshark -r bgp.pcap -Y "bgp.update.path_attribute.type_code == 14" -T fields -e bgp.mp_reach_nlri_afi -e bgp.mp_reach_nlri_safi -e bgp.mp_reach_nlri_nexthop_len | sort | uniq -c
    214 2  1  32
     12 1  128 12

Next-hop length 32 for IPv6 unicast means the peer sent both a global and a link-local next hop, which is normal on directly connected eBGP sessions.

End-of-RIB for other families

For address families other than IPv4 unicast, the End-of-RIB marker is an UPDATE with an empty MP_UNREACH_NLRI for that AFI/SAFI. Graceful restart waits for it before removing stale routes.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Wire format, fields and state ownership

Both attributes are optional non-transitive (type codes 14 and 15).

MP_REACH_NLRI

FieldMeaning
AFIAddress family: 1 IPv4, 2 IPv6
SAFISub-family: 1 unicast, 2 multicast, 4 labelled, 128 VPN
Next hop length and next hopThe next hop, in the format of that family
NLRIThe prefixes announced

MP_UNREACH_NLRI holds only AFI, SAFI and the prefixes withdrawn.

Two things differ from ordinary IPv4 routes. The next hop is inside this attribute, not in the NEXT_HOP attribute. For IPv6 it is 16 bytes, or 32 when a link-local address is included with the global one. And an UPDATE carrying only IPv6 routes has empty IPv4 fields.

A family is exchanged only if both routers announced the same AFI/SAFI pair in their OPEN messages. On Cisco IOS that means, on both sides:

router bgp 65001
 address-family ipv6 unicast
  neighbor 192.0.2.2 activate

When IPv6 routes are sent over a session between IPv4 addresses, the router has no natural IPv6 next hop to put in the attribute, and the receiver may get a next hop it cannot reach. A route map setting the IPv6 next hop — or running the IPv6 family over a session between IPv6 addresses — avoids that.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 4271

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → BGP MP_REACH / MP_UNREACH Field Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4271.html · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
mp_reach_nlriafi safimp bgp fields
Embedded reference data

Quick lookup tables

BGP MP_REACH / MP_UNREACH Field Reference packet-level operational reference

Direction-aware field interpretation, suspicious signatures and the next protocol/forwarding proof boundary.

Wire boundaryKnown-good for BGP MP_REACH / MP_UNREACH Field ReferenceSuspicious signatureNext proof
Message identityCorrect peer/direction/type and coherent lengthsWrong sender, type, length or packet phasePacket sequence + peer state
Field semanticsattribute flags/type/length, AFI, SAFI, MP_REACH next-hop length/value and NLRI, plus MP_UNREACH withdrawn NLRI for the same family match intended protocol statefamily capability was never negotiated, UPDATE carries a different AFI/SAFI, expected prefix is explicitly MP_UNREACH withdrawn, next-hop length/value is unusable or unreachable, import policy rejects the family route, or the route reaches the BGP table but cannot become a valid installed forwarding pathDecode exact fields on both sides
State consequencePacket produces expected protocol/route transitionWire looks healthy but local state disagreesFSM/LSDB/BGP table → RIB/FIB
ClosureOriginal workload succeeds for the explained reasonSession/adjacency recovered only transientlyRepeat capture + regression/failover test
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

MP-BGP Fields

AFI/SAFI/next hop/NLRI.

30-second lookup

  • Open Packet Field Explorer for field-level metadata.
  • Use Packet Decoders for bit/flag values where relevant.
  • Use Paste Output / Structured Parser for CLI evidence.
  • Use Packet Filters to prove the wire boundary.

Evidence rule

A decoded field proves what is present in that packet/output at that moment. Continue through the verification chain before concluding end-to-end behavior.

Confirmation

Confirm action

Continue?