# Configuring BGP Once the connection has been created and accepted, configure the routing between your Equinix Fabric Cloud Router or Network Edge device and your AWS VPC. ## Configure BGP Peering in AWS (Z-side)[​](#configure-bgp-peering-in-aws-z-side "Direct link to Configure BGP Peering in AWS (Z-side)") To configure the Z-side, following parameters are required: * A new VLAN tag. * A public or private BGP ASN - If you are using a public ASN, you must own it. If you are using a private ASN, it must be in the 65000 range. * The network prefixes to advertise - Any advertised prefix must include only your ASN in the BGP AS-PATH. * The virtual private gateway for connection. For more information about creating a virtual private gateway, see adding a hardware virtual private gateway to your VPC in the [Amazon VPC User Guide](https://docs.aws.amazon.com/vpn/latest/s2svpn/SetUpVPNConnections.html). Next, you need to [connect your new AWS Direct Connect to a Virtual Interface (VIF)](https://docs.aws.amazon.com/directconnect/latest/UserGuide/create-transit-vif-dx.html) on the virtual private gateway. Under *Define Your New Private Virtual Interface*, do the following: 1. In the *Interface Name* field, enter a name for the virtual interface. 2. In *Interface Owner*, select the *My AWS Account* option if the virtual interface is for your AWS account ID. 3. In the *VGW* list, select the virtual gateway to connect to. 4. The *VLAN #* field will already be filled in and grayed out. 5. To have AWS generate your router IP address and Amazon IP address, select **Auto-generate peer IPs**. 6. To specify these IP addresses, de-select the *Auto-generate peer IPs* option, and then in the *Your router peer IP* field, enter the destination IPv4 CIDR address that Amazon should send traffic to. In the *Amazon router peer IP* field, enter the IPv4 CIDR address you will use to send traffic to Amazon Web Services. 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. 8. Select **Auto-generate BGP key** to have AWS generate one. 9. To provide your own BGP key, de-select *Auto-generate BGP key*, and then in the *BGP Authorization Key* field, enter your BGP MD5 key. > **Note** > > Public VIFs are also supported on Equinix Fabric. ![AWS Create a Virtual Interface form with private option, VLAN, and BGP ASN fields](https://docs.equinix.com/assets/images/ECX-fabric-deploy-AWS-BGP3-b80ff1994fd734cfb7d65aa6d4fd3627.png) 10. View the Router (BGP) Configuration. In the *Virtual Interfaces* pane, select a virtual interface, then click the arrow to show more details. ![AWS Virtual Interfaces list with one interface expanded to show its BGP configuration details](https://docs.equinix.com/assets/images/ECX-fabric-deploy-AWS-BGP-router-e6ff6d03de52aa12c627f69da4e7e97b.png) ## Configure BGP Peering on Fabric Cloud Router (A-side)[​](#configure-bgp-peering-on-fabric-cloud-router-a-side "Direct link to Configure BGP Peering on Fabric Cloud Router (A-side)") First ensure that the appropriate AWS Direct Connect is fully configured in AWS, including the VIF. Go to your *Connections* inventory in the Customer Portal. 1. From the *Connection Name* list, click the name of your new connection. Start with your primary connection, if it's not configured yet. A summary of the connection details is displayed, including the status of `Pending Interface Configuration`. ![Connections inventory with Azure\_SEC and Azure\_PRI rows, Azure\_PRI highlighted](https://docs.equinix.com/assets/images/azure-connection-5bd8088a3856381d1690463c8766d2a0.png). 2. Select the *Routing Details* tab and click **Configure Routing**. The *Configure Routing Details* form is displayed. ![Configure Routing Details dialog with IPv4 selected, own IPv4 address option, and BGP checkbox cleared](https://docs.equinix.com/assets/images/azure-config-routing-323d517391f1a8dbaa4827476e7d19be.png) 3. Select the type of subnet to provide: *Enter my own IPv4 address*. 4. Enter an Equinix-side IPv4 address with CIDR. `/30` is sufficient, but `/28` and `/29` also are permitted. 5. Select **Enable Border Gateway Protocol (BGP)**. Enter a Customer-side ASN, which should typically be the ASN defined on your Direct Connect Gateway, and a Customer-side Peer IPv4 host address. ![Configure Routing Details dialog with BGP enabled and customer-side ASN and peer IPv4 fields highlighted](https://docs.equinix.com/assets/images/azure-config-routing2-ac8183fd027e9e3e1a311bb9ec51db9f.png) 6. If you are using BGP Authentication, enter the shared secret. Ensure that the secret is appropriately configured and matches on the Direct Connect circuit in the AWS portal as well. 7. If you would like to use Bidirectional Forwarding Detection (BFD), select *Enable BFD* and set the appropriate interval in milliseconds. The BFD interval must match on both sides of the connection. 8. Click **Apply Changes**. The *Routing Details* are updated, and the Fabric side of the connection is provisioned. ![Routing Details tab with Direct and BGP status both showing Provisioned](https://docs.equinix.com/assets/images/azure-config-status-2d8c2a50f49ea5120bc585776269a4eb.png) 9. If you created a secondary connection to AWS, repeat the steps to configure the second connection. To complete the configuration of the end-to-end connection, make the corresponding routing changes in AWS. ## Configure BGP Peering on Network Edge Device (A-side)[​](#configure-bgp-peering-on-network-edge-device-a-side "Direct link to Configure BGP Peering on Network Edge Device (A-side)") How you configure BGP on a virtual device varies on the vendor of the device (such as Cisco or Juniper). 1. Configure physical port with appropriate protocols and tagging. ![Junos commands configuring the physical interface with flexible VLAN tagging and MTU](https://docs.equinix.com/assets/images/ECX-fabric-deploy-AWS-Junos-6d2e14970faf2e76f3b6bfb38b3f97f5.png) 2. Configure logical ports (sub-interfaces) with appropriate IP addresses and VLAN tags. 3. Configure BGP peering. ![Junos commands configuring the BGP group, neighbor, and export policy for AWS peering](https://docs.equinix.com/assets/images/ECX-fabric-deploy-AWS-Junos3-c7575d94f89bba79ac1ea290a13b7223.png)