Authenticating BGP Peers
Problem
You want to authenticate your BGP peer relationships to help prevent tampering with your routing tables.
Solution
The BGP protocol includes an MD5-based authentication system for authenticating peers:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#router bgpRouter1(config-router)#65500neighbor192.168.55.5remote-asRouter1(config-router)#65501neighbor192.168.55.5passwordRouter1(config-router)#password-1234exitRouter1(config)#endRouter1#
The same password must be configured on both routers:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#router bgpRouter2(config-router)#65501neighbor192.168.55.6remote-asRouter2(config-router)#65500neighbor192.168.55.6passwordRouter2(config-router)#password-1234exitRouter2(config)#endRouter2#
Discussion
MD5 authentication is a standard part of BGP Version 4 that was introduced in RFC 2385. The IETF went further in RFC 3013 (which is also called BCP 46) to recommend that “BGP authentication should be used with routing peers” in the public Internet. This language “should be used” indicates a strong recommendation, but not a requirement.
BGP is different than the routing protocols that we discussed in Chapters 6, 7, and 8 because you must explicitly configure the peer relationships between routers. These peers then use point-to-point TCP connections to exchange information. So it is much more difficult ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access