Enabling Route Propagation
You can enable route propagation to a route table to include the routes associated with a VPN connection.
This action automatically updates the route table with the routes of the VPN connection, and points them to the virtual private gateway. Otherwise, you need to manually update the route table with each route. Route propagation is not mandatory, and works for both static and dynamic routing. You can use a default or custom route table. For more information, see About Routing Configuration for VPN Connections.
Enabling Route Propagation Using Cockpit
Before you begin:
|
-
Click Network/Security > Route Tables.
-
Select the route table to which you want to enable route propagation.
The route table is selected. -
Click Enable Route Propagation .
The ENABLE VIRTUAL PRIVATE GATEWAY PROPAGATION dialog box appears. -
Select the ID of the virtual private gateway from which you want to enable route propagation.
-
Click Enable to validate.
The route propagation is enabled and appears on the Route tables page.
Enabling Route Propagation Using AWS CLI
Before you begin:
|
To enable route propagation, use the enable-vgw-route-propagation command following this syntax:
$ aws ec2 enable-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 enable route propagation. -
route-table-id
: The ID of the route table in which you want to enable 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 enabled 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.