Modify local network gateway settings using the Azure portal

Sometimes the settings for your local network gateway AddressPrefix or GatewayIPAddress change. This article shows you how to modify your local network gateway settings. You can also modify these settings using a different method by selecting a different option from the following list:

Before you delete the connection, you may want to download the configuration for your connecting devices in order to get the defined PSK. That way, you don't need to redefine it on the other side.

Modify IP address prefixes

When you modify IP address prefixes, the steps you follow depend on whether your local network gateway has a connection.

To modify local network gateway IP address prefixes - no gateway connection

To add additional address prefixes:

  1. On the Local Network Gateway resource, in the Settings section, click Configuration.
  2. Add the IP address space in the Add additional address range box.
  3. Click Save to save your settings.

To remove address prefixes:

  1. On the Local Network Gateway resource, in the Settings section, click Configuration.
  2. Click the '...' on the line containing the prefix you want to remove.
  3. Click Remove.
  4. Click Save to save your settings.

To modify local network gateway IP address prefixes - existing gateway connection

If you have a gateway connection and want to add or remove the IP address prefixes contained in your local network gateway, you need to do the following steps, in order. This results in some downtime for your VPN connection. When modifying IP address prefixes, you don't need to delete the VPN gateway. You only need to remove the connection.

1. Remove the connection.

  1. On the Local Network Gateway resource, in the Settings section, click Connections.
  2. Click the ... on the line for each connection, then click Delete.
  3. Click Save to save your settings.

2. Modify the address prefixes.

To add additional address prefixes:

  1. On the Local Network Gateway resource, in the Settings section, click Configuration.
  2. Add the IP address space.
  3. Click Save to save your settings.

To remove address prefixes:

  1. On the Local Network Gateway resource, in the Settings section, click Configuration.
  2. Click the ... on the line containing the prefix you want to remove.
  3. Click Remove.
  4. Click Save to save your settings.

3. Recreate the connection.

  1. Navigate to the Virtual Network Gateway for your VNet. (Not the Local Network Gateway.)
  2. On the Virtual Network Gateway, in the Settings section, click Connections.
  3. Click the + Add to open the Add connection blade.
  4. Recreate your connection.
  5. Click OK to create the connection.

Modify the gateway IP address

If the VPN device that you want to connect to has changed its public IP address, you need to modify the local network gateway to reflect that change. When you change the public IP address, the steps you follow depend on whether your local network gateway has a connection.

To modify the local network gateway IP address - no gateway connection

Use the example to modify a local network gateway that does not have a gateway connection. When modifying this value, you can also modify the address prefixes at the same time.

  1. On the Local Network Gateway resource, in the Settings section, click Configuration.
  2. In the IP address box, modify the IP address.
  3. Click Save to save the settings.

To modify the local network gateway IP address - existing gateway connection

To modify a local network gateway that has a connection, you need to first remove the connection. After the connection is removed, you can modify the gateway IP address and recreate a new connection. You can also modify the address prefixes at the same time. This results in some downtime for your VPN connection. When modifying the gateway IP address, you don't need to delete the VPN gateway. You only need to remove the connection.

1. Remove the connection.

  1. On the Local Network Gateway resource, in the Settings section, click Connections.
  2. Click the ... on the line for the connection, then click Delete.
  3. Click Save to save your settings.

2. Modify the IP address.

You can also modify the address prefixes at the same time.

  1. In the IP address box, modify the IP address.
  2. Click Save to save the settings.

3. Recreate the connection.

  1. Navigate to the Virtual Network Gateway for your VNet. (Not the Local Network Gateway.)
  2. On the Virtual Network Gateway, in the Settings section, click Connections.
  3. Click the + Add to open the Add connection blade.
  4. Recreate your connection.
  5. Click OK to create the connection.

Next steps

You can verify your gateway connection. See Verify a gateway connection.