---
title: "ezgh compute subnets update"
description: "Rename, describe or retag a subnet."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh compute subnets update

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh compute subnets update <subnet> [--name n] [--description d] [--tag k=v…] [--auto-assign-public-ipv4=true|false] [--auto-assign-public-ipv6=true|false] [--route-table t|main] [flags]
```

Change a subnet's name, description (`--description` "" clears it) or tags (`--tag` replaces them; `--tag` "" clears them).

`--auto-assign-public-ipv4` and `--auto-assign-public-ipv6` set the subnet's launch defaults: a new interface in it that doesn't say otherwise gets a public IPv4 address mapped onto its private one, or a public IPv6 /64. Its VPC needs a network gateway. Existing interfaces are untouched.

`--route-table` associates the subnet with a route table of its VPC (ID, UUID, or a name among that VPC's tables); main puts it back on the VPC's main table, and is refused while a custom table of that VPC is named main: give an ID.

Part of [`ezgh compute subnets`](/cli/reference/compute-subnets).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--auto-assign-public-ipv4` | boolean |  | new interfaces get a public IPv4 address by default |
| `--auto-assign-public-ipv6` | boolean |  | new interfaces get a public IPv6 /64 by default |
| `--description` | string |  | the new description |
| `--name` | string |  | the new name |
| `--route-table` | string |  | the route table it uses (ID, UUID or name), or main for the VPC's main table |
| `--tag` | string, repeatable |  | a tag, key=value (repeat; replaces the tags; `--tag` "" clears them) |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/compute-subnets-update/index.mdx
