Disassociating a Route Table from a Subnet

You can disassociate a route table from a subnet. This subnet no longer uses the routes contained in this route table to route network trafic, but uses the routes contained in the main route table instead until you explicitly associate another route table to it.

Disassociating a Route Table from a Subnet Using Cockpit v1

  1. Click Network/Security > Route Tables.

  2. Click the route table you want to dissassociate from a subnet.
    The route table is selected.

  3. Click Detach .
    The DETACH ROUTE TABLE dialog box appears.

  4. From the Association ID list, select the association ID corresponding to the subnet you want to disassociate the route table from.

  5. Click Detach to validate.
    The route table is disassociated from the subnet.

Unlinking a Route Table from a Subnet Using Cockpit v2-beta

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

  2. Check the box of the route table you want to unlink from a Subnet.

  3. Click IconUnlink Unlink from Subnet.
    The UNLINK ROUTE TABLE dialog box appears.

  4. From the list, select the association ID corresponding to the Subnet you want to unlink the route table from.

  5. Click Unlink from Subnet.
    The route table is unlinked from the Subnet.

Disassociating a Route Table from a Subnet Using AWS CLI

To disassociate a route table from a subnet, use the disassociate-route-table command following this syntax:

Request sample
$ aws ec2 disassociate-route-table \
    --profile YOUR_PROFILE \
    --association-id rtbassoc-4321dcba \
    --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.

  • association-id: The ID of the association between the subnet and the route table. For more information, see Getting Information About Your Route Tables.

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

The route table is disassociated from the subnet.

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.