www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / ROUTE / Module 7 / Advanced BGP – Border Gateway Protocol Authentication

Advanced BGP – Border Gateway Protocol Authentication

In the final section in this chapter, we are going to learn about securing the messages that are exchanged between BGP peers. As we already known, BGP uses TCP as the underlying protocol. Attacks on BGP are typically implemented by attacking the underlying TCP protocol.

To mitigate against these attacks, BGP supports Message Digest 5 (MD5) authentication which is used to secure or verify the security of the TCP segments between two BGP peers. When the BGP TCP MD5 shared password is configured between two peers, the Cisco IOS software checks the MD5 digest of every segment sent on the TCP connection. If MD5 authentication is invoked and a segment fails authentication, then an error message will be displayed in the console. The error message that will be printed on the console will be similar to the following:

*Mar  2 22:15:37.606: %TCP-6-BADAUTH: Invalid MD5 digest from 2.2.2.2(57322) to 1.1.1.1(179)
*Mar  2 22:15:45.607: %TCP-6-BADAUTH: Invalid MD5 digest from 2.2.2.2(57322) to 1.1.1.1(179)

The 18-byte TCP MD5 signature is based on packet data as well as the shared password that is configured between the two BGP speakers. In Cisco IOS software, the shared password is configured using the neighbor [address] password [password] router configuration command. This command must be issued on both of the BGP peers. If only one of the BGP speakers is configured with the shared password, the following error is printed on the console:

*Mar  2 22:19:35.977: %TCP-6-BADAUTH: No MD5 digest from 2.2.2.2(179) to 1.1.1.1(28906)
*Mar  2 22:19:40.456: %TCP-6-BADAUTH: No MD5 digest from 2.2.2.2(54666) to 1.1.1.1(179)

The following section illustrates how to configure a shared password to be used for the TCP MD5 signature on two BGP peers. The configuration on the first BGP speaker is as follows:

R1(config)#router bgp 65001
R1(config-router)#neighbor 2.2.2.2 password *H2N-CCNP#1
R1(config-router)#exit

A mirrored configuration on the peer is implemented as follows:

R2(config)#router bgp 65002
R2(config-router)#neighbor 1.1.1.1 password *H2N-CCNP#1
R2(config-router)#exit

As of the time of the writing of this guide, other than verifying the router configuration, there is no explicit show command that will indicate that the password has been configured. Following is the output of the current configuration on router R1:

R1#show running-config | section bgp
router bgp 65001
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 65002
neighbor 2.2.2.2 update-source Loopback0
 neighbor 2.2.2.2 password *H2N-CCNP#1
no auto-summary

When configuring the shared password, the following should be taken into consideration:

  • The password is a case-sensitive string that may be up to 25 characters in length
  • The string can contain any alphanumeric characters, including spaces
  • A password cannot be configured with a leading number, followed by a space

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.