Disabling Route Propagation

You can disable route propagation to a route table from a virtual gateway.

This action removes the routes of the VPN connection from the route table. For the VPN connection to remain available, you then need to manually update the route table with each route. For more information, see About Routing Configuration for VPN Connections and Tutorial: Setting Up a VPN Connection.

Disabling Route Progation Using Cockpit v2

  1. Click inside the Route Tables dashboard to make checkboxes appear.

  2. Check the box of the route table to which you want to disable route propagation for.
    The route table is selected and an action menu appears.

  3. Click IconDisable Disable Route Propagation.
    The DISABLE ROUTE PROPAGATION dialog box appears.

  4. Click Disable.
    The route propagation is disabled.

Disabling Route Propagation Using OSC CLI

The UpdateRoutePropagation command configures the propagation of routes to a specified route table of a Net by a virtual gateway.

Request sample
$ osc-cli api UpdateRoutePropagation --profile "default" \
    --VirtualGatewayId "vgw-12345678" \
    --RouteTableId "rtb-12345678" \
    --Enable True

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • Enable: If true, a virtual gateway can propagate routes to a specified route table of a Net. If false, the propagation is disabled.

  • RouteTableId: The ID of the route table.

  • VirtualGatewayId: The ID of the virtual gateway.

The UpdateRoutePropagation command returns the following elements:

  • ResponseContext: Information about the context of the response.

  • RouteTable: Information about the route table.

Result sample
{
  "RouteTable": {
    "Routes": [
      {
        "DestinationIpRange": "10.0.0.0/16",
        "CreationMethod": "CreateRouteTable",
        "State": "active"
      }
    ],
    "LinkRouteTables": [
      {
        "RouteTableId": "rtb-12345678",
        "Main": true,
        "LinkRouteTableId": "rtbassoc-12345678"
      }
    ],
    "NetId": "vpc-12345678",
    "Tags": [],
    "RoutePropagatingVirtualGateways": [
      {
        "VirtualGatewayId": "vgw-12345678"
      }
    ],
    "RouteTableId": "rtb-12345678"
  },
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Disabling Route Propagation Using AWS CLI

To disable route propagation, use the disable-vgw-route-propagation command following this syntax:

Request sample
$ aws ec2 disable-vgw-route-propagation \
    --profile YOUR_PROFILE \
    --gateway-id vgw-91d73e86 \
    --route-table-id rtb-d1d21759 \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • gateway-id: The ID of the virtual private gateway from which you want to disable route propagation.

  • route-table-id: The ID of the route table to which you want to disable route propagation. By default, the main route table in the VPC.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

Route propagation is disabled from the specified virtual private gateway to the specified route table.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.