Disabling Route Propagation

You can disable route propagation to a route table from a virtual private 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 Propagation Using Cockpit

  1. Click Network/Security > Route Tables.

  2. Select the route table to which you want to disable route propagation.
    The route table is selected.

  3. Click Disable propagation .
    The route propagation is disabled and no longer appears on the Route tables page.

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 Method

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