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.
BGP MP_REACH / MP_UNREACH Field Reference
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.
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show bgp ipv6 unicast summaryVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
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
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
| AFI | SAFI | Address family | Typical use |
|---|---|---|---|
| 1 (IPv4) | 1 | IPv4 unicast | Internet, enterprise |
| 2 (IPv6) | 1 | IPv6 unicast | Internet, enterprise |
| 1 / 2 | 2 | IPv4 / IPv6 multicast | RPF for multicast |
| 1 | 128 | VPNv4 | MPLS L3VPN |
| 2 | 128 | VPNv6 | MPLS L3VPN |
| 25 (L2VPN) | 70 | EVPN | VXLAN and MPLS EVPN |
| 1 / 2 | 133 | Flowspec | DDoS filtering rules |
RFC 4760 names SAFI 1 (unicast) and 2 (multicast). The other values come from the IANA registries.
Next hop by address family
| Family | Next-hop length | Contents |
|---|---|---|
| IPv6 unicast | 16 or 32 | Global address, optionally plus link-local |
| VPNv4 | 12 | 8-byte zero route distinguisher + IPv4 address |
| EVPN | 4 or 16 | The 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.
Wire format, fields and state ownership
Both attributes are optional non-transitive (type codes 14 and 15).
| Field | Meaning |
|---|---|
| AFI | Address family: 1 IPv4, 2 IPv6 |
| SAFI | Sub-family: 1 unicast, 2 multicast, 4 labelled, 128 VPN |
| Next hop length and next hop | The next hop, in the format of that family |
| NLRI | The 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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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 boundary | Known-good for BGP MP_REACH / MP_UNREACH Field Reference | Suspicious signature | Next proof |
|---|---|---|---|
| Message identity | Correct peer/direction/type and coherent lengths | Wrong sender, type, length or packet phase | Packet sequence + peer state |
| Field semantics | attribute 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 state | family 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 path | Decode exact fields on both sides |
| State consequence | Packet produces expected protocol/route transition | Wire looks healthy but local state disagrees | FSM/LSDB/BGP table → RIB/FIB |
| Closure | Original workload succeeds for the explained reason | Session/adjacency recovered only transiently | Repeat capture + regression/failover test |
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.