Détacher une route table d’un Subnet

Vous pouvez détacher une route table d’un Subnet. Ce Subnet n’utilise ainsi plus les routes contenues dans cette route table pour router le trafic réseau. Il utilise les routes contenues dans la route table principale à la place jusqu’à ce que vous l’associez explicitement à une autre route table.

Détacher une route table d’un Subnet avec Cockpit

  1. Dans le dashboard Route tables, placez le curseur de la souris sur le rang de la route table que vous souhaitez détacher d’un Subnet et cliquez sur l’icône IconManage.
    La boîte de dialogue MODIFIER DES SUBNETS apparaît.

  2. Dans la liste Subnets, cliquez sur IconClose à côté du Subnet duquel vous souhaitez détacher la route table.

    Vous pouvez détacher la route table de plusieurs Subnets à la fois.

  3. Cliquez sur Modifier.
    La route table est détachée du Subnet.

Détacher une route table d’un Subnet avec octl

À ce jour, cette section est disponible en anglais uniquement.

The UnlinkRouteTable command disassociates a Subnet from a route table.
After disassociation, the Subnet can no longer use the routes in this route table, but uses the routes in the main route table of the Net instead.

Request sample
$ octl iaas api UnlinkRouteTable --profile "default" \
  --LinkRouteTableId "rtbassoc-12345678"

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

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

  • LinkRouteTableId: The ID of the association between the route table and the Subnet.

The UnlinkRouteTable command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Détacher une route table d’un Subnet avec OSC CLI

À ce jour, cette section est disponible en anglais uniquement.

The UnlinkRouteTable command disassociates a Subnet from a route table.
After disassociation, the Subnet can no longer use the routes in this route table, but uses the routes in the main route table of the Net instead.

Request sample
$ osc-cli api UnlinkRouteTable --profile "default" \
    --LinkRouteTableId "rtbassoc-12345678"

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

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

  • LinkRouteTableId: The ID of the association between the route table and the Subnet.

The UnlinkRouteTable command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Détacher une route table d’un Subnet avec oapi-cli

À ce jour, cette section est disponible en anglais uniquement.

The UnlinkRouteTable command disassociates a Subnet from a route table.
After disassociation, the Subnet can no longer use the routes in this route table, but uses the routes in the main route table of the Net instead.

Request sample
$ oapi-cli --profile "default" UnlinkRouteTable \
    --LinkRouteTableId "rtbassoc-12345678"

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

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

  • LinkRouteTableId: The ID of the association between the route table and the Subnet.

The UnlinkRouteTable command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Dissocier une route table d’un subnet avec AWS CLI

Avant de commencer : Installez et configurez AWS CLI. Pour en savoir plus, voir Installer et configurer AWS CLI.

Pour dissocier une route table d’un subnet, utilisez la commande disassociate-route-table en suivant cette syntaxe :

Exemple de requête
$ aws ec2 disassociate-route-table \
    --profile YOUR_PROFILE \
    --association-id rtbassoc-4321dcba \
    --endpoint https://fcu.eu-west-2.outscale.com

Cette commande contient les options suivantes que vous devez spécifier :

La route table est dissociée du subnet.

Pages connexes

Méthodes API correspondantes

AWS™ et Amazon Web Services™ sont des marques de commerce d'Amazon Technologies, Inc. ou de ses affiliées aux États-Unis et/ou dans les autres pays.