Troubleshooting notes · BGP
BGP session down with MD5: the error is in the TCP log, not BGP
A BGP session with a password never comes up. Why an MD5 mismatch shows up as TCP BADAUTH messages instead of a BGP error, and the fix. Real output from Cisco IOS XE 17.18.
The symptom
A BGP session configured with neighbor … password stays down. There's no BGP notification and no BGP error message; instead the log fills with TCP messages:
%TCP-6-BADAUTH: Invalid MD5 digest from 10.0.12.1(52125) to 10.0.12.2(179) tableid - 0
Why it happens
BGP's MD5 authentication protects the TCP session (RFC 2385): every TCP segment carries a digest made from the password. If the passwords differ, the receiving router drops the segments at the TCP level, so the TCP session never forms and BGP never exchanges a single message. That's why the BGP log stays quiet: look for %TCP-6-BADAUTH instead.
A missing password on one side also stops the TCP session, for the same reason.
The fix
Set the same password on both sides. Passwords are case-sensitive:
R1(config)# router bgp 65001
R1(config-router)# neighbor 10.0.12.2 password Br4nch-BGP
Check it
show ip bgp summary should show the neighbour with a prefix count instead of Idle or Active, and the BADAUTH messages should stop.
Practise this fault
This fault is in ENARSI Lab 22 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.