Use it when a BGP session never reaches Established and OPEN parameters or capabilities may be wrong.
BGP OPEN & Capability Field Reference
1. OPEN carries version 4, My AS (or AS_TRANS with 4-byte capability), hold time, BGP identifier, optional capabilities.
2. Hold time = lower of both.
3. Capabilities: multiprotocol, route refresh, 4-byte AS, graceful restart, add-path.
4. Mismatch triggers NOTIFICATION code 2.
5. Router IDs must differ.
TCP 179 → OPEN exchanged → capabilities negotiated → KEEPALIVE → Established
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip bgp neighbors 192.0.2.2Verification & 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 ip bgp neighbors 192.0.2.2
show ip bgp neighbors 192.0.2.2 | include state|hold|router ID
show ip bgp neighbors 192.0.2.2 | section capabilities
The neighbour output shows the remote AS, the remote router ID, the negotiated hold time and keepalive interval, and under "Neighbor capabilities" each capability as advertised, received, or both. An address family listed as advertised only is not in use.
Known-good: the state is Established, and every address family the session should carry is shown as advertised and received.
Step 2 Failure signatures and packet-level troubleshooting Narrow the fault
- The session resets right after the TCP connection. The neighbour's AS is not the configured
remote-as; the log shows a NOTIFICATION "peer in wrong AS". - OPEN rejected for a bad BGP identifier. Both routers have the same router ID.
- Established, but no routes for one address family. The family is activated on one side only.
- The session comes up with a very short hold time. One side is configured with low timers; the lower value wins.
- Hold time rejected. One side requires a minimum the other does not meet.
clear ip bgp … soft inhas no effect. Route refresh was not received from the neighbour.
Step 3 When the problem is really fixed Narrow the fault
- The session is Established and stays up.
- Each required address family is listed as advertised and received.
- The negotiated hold time is the intended one.
- Prefixes are received in every family.
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.
show ip bgp neighbors <peer>— negotiated capabilities, hold time, router ID
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
The OPEN message is the first thing two BGP routers send each other once the TCP connection is up. Each side introduces itself — AS number, router ID, hold time — and lists the optional features it supports, called capabilities.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
A BGP session that gets a TCP connection but never reaches Established is failing here. And a session that is Established but carries no IPv6 or VPN routes is often explained here too: the address family was never agreed in the OPEN.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
OPEN parameters and capability negotiation
The OPEN message is where two BGP speakers agree on what the session can do. RFC 4271 gives OPEN fixed fields followed by optional parameters as type, length and value triplets. RFC 5492 defines optional parameter type 2, Capabilities, which holds capability code, length and value triples. A speaker that receives Unsupported Optional Parameter in response to capabilities should retry without them. A speaker that requires a capability the peer lacks sends OPEN Message Error subcode 7, Unsupported Capability, listing the missing capabilities.
OPEN fields (RFC 4271)
| Field | Size | Notes |
|---|---|---|
| Version | 1 byte | 4 |
| My Autonomous System | 2 bytes | AS_TRANS (23456) when the real AS is a 4-byte number |
| Hold Time | 2 bytes | 0, or 3 seconds or more |
| BGP Identifier | 4 bytes | Router ID; must differ between the peers |
| Optional Parameters Length | 1 byte | Total length of the parameters |
| Optional Parameters | Variable | Capabilities (type 2) |
Capabilities and when they matter
| Code | Capability | If missing on one side |
|---|---|---|
| 1 | Multiprotocol, one per AFI/SAFI | That address family isn't exchanged |
| 2 | Route refresh | Soft inbound changes need stored copies or hard resets |
| 64 | Graceful restart | No helper or restarting behaviour |
| 65 | 4-byte AS | 4-byte ASes are carried as AS_TRANS with AS4_PATH |
| 69 | Add-path | Only one path per prefix is sent |
Recognising capability problems
| Symptom | Likely cause |
|---|---|
| Session up but no IPv6 routes | IPv6 unicast not activated on one side (no capability 1 for AFI 2) |
| NOTIFICATION 2/7 | A required capability isn't supported by the peer |
| NOTIFICATION 2/2 with 4-byte ASes | One side doesn't support 4-byte AS, or remote-as is wrong |
R1# show bgp ipv6 unicast summary | include 2001:db8:0:1::2
R1# show bgp ipv4 unicast neighbors 2001:db8:0:1::2 | include Address family|capabilit
Address family IPv4 Unicast: advertised
Address family IPv6 Unicast: advertised and received
R1(config)# router bgp 65010
R1(config-router)# address-family ipv6 unicast
R1(config-router-af)# neighbor 2001:db8:0:1::2 activate
host$ tshark -r bgp.pcap -Y "bgp.type == 1" -O bgp | grep -E "My AS|Hold time|BGP identifier|Capability:|AFI|SAFI"
"Advertised" without "received" for a family means the peer didn't offer it. Routes for that family won't be exchanged, even though the session is Established.
Documented example, not captured output.
Wire format, fields and state ownership
| Field | Size | Meaning |
|---|---|---|
| Version | 1 byte | Always 4 |
| My Autonomous System | 2 bytes | The sender's AS number; 23456 when the real number does not fit in two bytes |
| Hold Time | 2 bytes | Seconds the sender proposes to wait for a keepalive before dropping the session |
| BGP Identifier | 4 bytes | The sender's router ID |
| Optional parameters | variable | The capabilities |
Each router checks the neighbour's OPEN. The AS number must be the one configured as remote-as. The BGP identifier must differ from the router's own. The hold time used is the lower of the two proposals; keepalives are sent at a third of it.
Capabilities are announced, not negotiated: each side lists what it supports, and a feature is used when both list it.
| Code | Capability |
|---|---|
| 1 | Multiprotocol — one entry per address family, such as IPv4 unicast or IPv6 unicast |
| 2 | Route refresh — the neighbour may ask for all routes to be sent again |
| 64 | Graceful restart |
| 65 | Four-byte AS numbers; carries the real AS number |
| 69 | Additional paths |
An address family is active on a session only if both routers announced it. On Cisco IOS that requires neighbor <ip> activate under the address family on both sides.
If the OPEN is acceptable the router answers with a keepalive; otherwise it sends a NOTIFICATION naming the reason and closes the connection.
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 OPEN & Capability Field Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4271.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
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 OPEN & Capability 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 OPEN & Capability 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 | Version, My AS, Hold Time, BGP Identifier, Optional Parameters Length, Optional Parameter type/length and nested Capability code/length/value match intended protocol state | wrong expected ASN, invalid or duplicate identity assumptions, unacceptable timer/OPEN parameter, malformed capability TLV, missing multiprotocol capability for an intended address family, four-octet ASN interpretation mismatch, or a session that reaches OpenConfirm but repeatedly resets before stable Established | 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.
BGP OPEN Capabilities
OPEN and capability quick lookup.
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.