AWS Direct Connect
User Guide

Adding or Deleting a BGP Peer

In some locations, a virtual interface can support up to two IPv4 BGP peering sessions and up to two IPv6 BGP peering sessions. In other locations, a virtual interface can support a single IPv4 BGP peering session and a single IPv6 BGP peering session. For information about the Regions that support logical redundancy, see AWS Direct Connect Locations.

You cannot specify your own peer IPv6 addresses for an IPv6 BGP peering session. Amazon automatically allocates you a /125 IPv6 CIDR.

Multiprotocol BGP is not supported. IPv4 and IPv6 operate in dual-stack mode for the virtual interface.

Adding a BGP Peer

Use the following procedure to add a BGP peer.

To add a BGP peer

  1. Open the AWS Direct Connect console at https://console.aws.amazon.com/directconnect/v2/home.

  2. In the navigation pane, choose Virtual Interfaces.

  3. Select the virtual interface and choose View details.

  4. Choose Add peering.

  5. (Private virtual interface) To add IPv4 BGP peers, do the following:

    • Choose IPv4.

    • To specify these IP addresses yourself, for Your router peer ip, enter the destination IPv4 CIDR address to which Amazon should send traffic. In the Amazon router peer ip field, enter the IPv4 CIDR address to use to send traffic to AWS.

    
							Add BGP peering for IPv4
  6. (Public virtual interface) To add IPv4 BGP peers, do the following:

    • For Your router peer ip, enter the IPv4 CIDR destination address where traffic should be sent.

    • For Amazon router peer IP, enter the IPv4 CIDR address to use to send traffic to AWS.

  7. (Private or public virtual interface) To add IPv6 BGP peers, choose IPv6. The peer IPv6 addresses are automatically assigned from Amazon's pool of IPv6 addresses; you cannot specify custom IPv6 addresses.

  8. In the BGP ASN field, type the Border Gateway Protocol (BGP) Autonomous System Number (ASN) of your gateway, for example, a number between 1 and 65534. For a public virtual interface, the ASN must be private or already whitelisted for the virtual interface.

  9. To provide your own BGP key, for BGP Authentication Key, enter your BGP MD5 key.

  10. Choose Add peering.

To create a BGP peer using the command line or API

Deleting a BGP Peer

If your virtual interface has both an IPv4 and IPv6 BGP peering session, you can delete one of the BGP peering sessions (but not both).

To delete a BGP peer

  1. Open the AWS Direct Connect console at https://console.aws.amazon.com/directconnect/v2/home.

  2. In the navigation pane, choose Virtual Interfaces.

  3. Select the virtual interface and choose View details.

  4. Under Peerings, select the peering that you want to delete and choose Delete.

  5. In the Remove peering from virtual interface dialog box, choose Delete.

To delete a BGP peer using the command line or API