Technical Tip: BGP peering issues with third party routers
Description
This article addresses an issue where BGP peering may not be able to establish even though connectivity (PING, TCP) is OK.
Scope
FortiOS v5.2 and above.
Solution
Collect a sniffer trace on the FortiGate using:
The TCP 3-way handshake (Syn/Syn-Ack/Ack) will be seen but quickly followed by FIN, RST.
v501 out ack 1861781390
v501 in psh 1861781390 ack 4224897840
v501 out ack 1861781456
v501 out psh 4224897840 ack 1861781456
v501 out fin 4224897861 ack 1861781456
v501 in ack 4224897862
v501 in psh 1861781456 ack 4224897862
v501 out rst 4224897862
Collect the output of:
diagnose ip router bgp all enable
diagnose ip router bgp level info
diagnose ip router bgp set-filter neighbor x.x.x.x <- IP address of the peer being troubleshoot.
diagnose debug enable
If the output shows messages as below:
Outgoing [DECODE] Open Cap: unrecognized capability code 66 len 0"
id=20301 logdesc="Routing log" msg="BGP: [GRST] Timer Announce Defer: Check"
Outgoing [DECODE] Open Cap: Cap Code 67, Cap Len 3"
Outgoing [DECODE] Open DYN: Cap-length error 3"
Outgoing [ENCODE] Msg-Hdr: Type 3"
id=20301 logdesc="Routing log" msg="BGP: %BGP-3-NOTIFICATION
Since FortiGate's 'bpg capability-dynamic' is disabled by default, one solution is to disable BGP dynamic capability on the CISCO unit:
- Open Cap: unrecognized capability code 70 len 0 <----- Enhanced Route Refresh Capability.
- Open Cap: unrecognized capability code 6 len 0 <----- BGP Extended Message.
- Open Cap: unrecognized capability code 66 len 0 <----- Deprecated (2003-03-06).
- Open Cap: unrecognized capability code 73 len 21 <----- FQDN Capability.
- Open Cap: unrecognized capability code 71 len 7 <----- Long-Lived Graceful Restart (LLGR) Capability.
