Site to Site VPN (BGP)

Ajay Chauhan 41 Reputation points
2023-03-26T10:32:48.22+00:00
Hello,

While creating site to site over routed VPN I see this configuration which actually works fine.

! Tunnel interface (VTI) configuration

! - Create/configure a tunnel interface

! - Configure an APIPA (169.254.x.x) address that does NOT overlap with any

!   other address on this device. This is not visible from the Azure gateway.

! * REPLACE: Tunnel interface numbers and APIPA IP addresses below

! * Default tunnel interface 11 (169.254.0.1) and 12 (169.254.0.2)

int tunnel 11

  ip address 169.254.0.1 255.255.255.255

My question, what would be Azure end IP address, even Ok if you can not see on gateway ?

what IP address will be used to run BGP on top of this configuration ?

Any step by step example would be apricated, I am using cisco router on remote. 
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,543 questions
{count} votes

2 answers

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,616 Reputation points Microsoft Employee
    2023-03-28T09:17:06.2266667+00:00

    Hello @Ajay Chauhan ,

    I understand you have created a site-to-site VPN connection with route-based VPN between Azure and your on-prem Cisco VPN device which is working fine with static routes, and you are able to reach Azure resources. Now you would like to enable BGP on your below existing configuration with active-active disabled and would like to know which IP should be configured on Azure VPN gateway for BGP.

    int tunnel 11

    ip address 169.254.0.1 255.255.255.255

    I'm not sure what your complete Cisco side configuration is, but it looks like you've not enabled BGP on Cisco VPN device yet.

    Could you please let me know what does the 169.254.0.1 address specifies in your configuration? The config you shared says int tunnel 11, and I believe this is just the inner address of your tunnel and has nothing to do with BGP.

    Only if your on-premises VPN devices use APIPA address for BGP, you must select an address from the Azure-reserved APIPA address range for VPN, which is from 169.254.21.0 to 169.254.22.255.

    Refer: https://zcusa.951200.xyz/en-us/azure/vpn-gateway/bgp-howto#2-create-testvnet1-gateway-with-bgp

    Your on-premises BGP peer address must not be the same as the public IP address of your VPN device or from the virtual network address space of the VPN gateway. You can use a different IP address on the VPN device for your BGP peer IP. It can be an address assigned to the loopback interface on the device (either a regular IP address or an APIPA address).

    Refer: https://zcusa.951200.xyz/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq#what-are-the-requirements-for-the-bgp-peer-ip-addresses-on-my-vpn-device

    So, if you use a regular IP address as your BGP IP on Cisco device, then you don't have to use APIPA BGP IP addresses on your Azure VPN gateway and by default, Azure will assign a private IP address from the GatewaySubnet prefix range automatically as the Azure BGP IP address on the VPN gateway.

    But if you use an APIPA address as your BGP IP on Cisco device, then you must use Azure-reserved APIPA address range for VPN gateway (169.254.21.0 to 169.254.22.255).

    If you need help with Cisco side configuration script, you can download a configuration script for your VPN device from Azure portal with the corresponding values of your Azure VPN gateway, virtual network, and on-premises network address prefixes, and VPN connection properties, etc. already filled in.

    Refer: https://zcusa.951200.xyz/en-us/azure/vpn-gateway/vpn-gateway-download-vpndevicescript

    You can go to the site-to-site connection of your VPN gateway in Azure portal and on Overview pane, select Download configuration and then select the device vendor, device family & firmware version to download the configuration script for the required device. You can choose Cisco ASA VTI with BGP or some other option depending upon your requirement.

    User's image

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. Suman Bikram Singh 20 Reputation points
    2024-10-07T04:05:43.4833333+00:00

    While finding some VPN troubleshooting I found this discussion. I'm planing to complete a POC for multi cloud VPN tunnels between Azure, AWS and Google Cloud. VPN looks easy to configure without BGP (where APIPA are mentioned). I have a couple of questions may be this group can answer. At each cloud side they ask for ASN and BGP APIPA. How to get those values? Let's say if I'm setting up a VPN between Azure and AWS, then what would be the ASN at each side and what would be the BGP at each end? Also if I peer Azure with Google, again what would be the ASN and APIPA for Azure and Google cloud? I understand that some specific values are reserved for each environment . How to understand without copy and paste from online tutorials?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.