Euca2ools Guide / Virtual Private Cloud (VPC)-Compatible Commands |
Adds a route to a VPC route table.
euca-create-route -r CIDR_ID (-g GATEWAY | -i INSTANCE | -n NETWORKINTERFACEID | -p PEERCON) [--show-empty-fields] [-U URL] [--region USER@REGION] [-I KEY_ID] [-S KEY] [--security-token TOKEN] [--debug] [--debugger] [--version] [-h] RTABLE
Option | Description | Required |
---|---|---|
route_table_ID | ID of the route table to add the route to. | Yes |
-r, --cidr CIDR_ID | CIDR address block the route affects. | Yes |
-g, --gateway-id gateway_ID | ID of the Internet gateway to target. | No |
-i, --instance instance_ID | ID of a NAT instance to target. | No |
-n, --network-interface network_interface_id | ID of a network interface to target. | No |
-p, --vpc-peering-connection peer_connection_ID | ID of a VPC peering connection to target. | No |
Option | Description |
---|---|
--show-empty-fields | Show empty fields using (nil) as a placeholder to indicate that this data was not requested. Empty fields are not shown by default. |
--region value | Specify region value as the cloud region to use. You can set this by using the environment variable AWS_DEFAULT_REGION. |
-U,--url value | Overrides the URL for the service call with the value entered. You can set this by using the environment variable AWS_AUTOSCALING_URL. |
-I, --access-key-id value | User's access key ID |
-S, --secret-key value | User's AWS secret Key to use. |
--debug | Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools. |
--debugger | Enable interactive debugger on error. |
--version | Display the version of this tool. |
-h,--help | Display the manual page for the command. |
The following example creates a route in route table rtb-458d3256 that directs all network traffic to Internet gateway igw-e1d19725 :
euca-create-route rtb-458d3256 -r 0.0.0.0/0 -g igw-e1d19725
This command should produce output similar to the following:
ROUTE igw-e1d19725 0.0.0.0/0