Skip to main content
sahmed_FTNT
Staff & Editor
Staff & Editor
November 21, 2024

Troubleshooting Tip: BGP Error 'unrecognized capability code 5 len 6'

  • November 21, 2024
  • 0 replies
  • 1402 views
Description This article describes how to handle the BGP peering error 'unrecognized capability code 5 len 6' during troubleshooting with CISCO devices.
Scope All OS.
Solution

In BGP debug:

date=2024-xx-xx time=0x:xx:xx devname= FGTxxxx devid=F6Kxxxx slot=1 eventtime=17317xxxx tz="+0400" logid="0103020301" type="event" subtype="router" level="warning" vd="xxxx" logdesc="Routing log" msg="BGP: x.x.x.x-Outgoing [DECODE] Open Cap: unrecognized capability code 5 len 6

 

The debug output above can be collected with the following command:

 

diagnose ip router bgp all enable

diagnose debug enable

 

In BGP debugs Cisco:

 

OPEN has CAPABILITY code: 5, length 6

unrecognized capability code: 5

 

The debug output above can be collected with the following command:

 

debug bgp ipv4 unicast in

 

Note: The remote peer is Cisco running on IOS or IOS-XE.

 

 Workaround

  • Identify the unsupported capability that is being advertised, and reconfigure the peers for matching BGP capability.
    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT