Menu
AWS Direct Connect
User Guide

Adding or Removing a BGP Peer

A virtual interface can support a single IPv4 BGP peering session and a single IPv6 BGP peering session. You can add an IPv6 BGP peering session to a virtual interface that has an existing IPv4 BGP peering session. Alternately, you can add an IPv4 BGP peering session to a virtual interface that has an existing IPv6 BGP peering session.

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.

To add a BGP peer

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

  2. In the navigation pane, choose Virtual Interfaces and select the virtual interface.

  3. Choose Actions, Add Peering.

  4. (Private virtual interface) To add an IPv4 BGP peer, do the following:

    • To have AWS generate your router IP address and Amazon IP address, select Auto-generate peer IPs.

    • To specify these IP addresses yourself, clear the Auto-generate peer IPs check box. 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
  5. (Public virtual interface) To add an IPv4 BGP peer, 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.

  6. (Private or public virtual interface) To add an IPv6 BGP peer, the Auto-generate peer IPs is selected by default. The peer IPv6 addresses are automatically assigned from Amazon's pool of IPv6 addresses; you cannot specify custom IPv6 addresses.

    
						Add BGP peering for IPv6
  7. In the BGP ASN field, enter 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.

  8. Select the Auto-generate BGP key check box to have AWS to generate one for you.

    To provide your own BGP key, clear the Auto-generate BGP key check box. For BGP Authentication Key, enter your BGP MD5 key.

  9. Choose Continue.

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/.

  2. In the navigation pane, choose Virtual Interfaces and select the virtual interface.

  3. Choose Actions, Delete Peering.

  4. To delete the IPv4 BGP peer, choose IPv4. To delete the IPv6 BGP peer, choose IPv6.

  5. Choose Delete.

To create a BGP peer using the command line or API

To delete a BGP peer using the command line or API