Stay organized with collections Save and categorize content based on your preferences.
gcloud compute instances network-interfaces update
INSTANCE_NAME
[--aliases
=ALIASES
] [--external-ipv6-address
=EXTERNAL_IPV6_ADDRESS
] [--external-ipv6-prefix-length
=EXTERNAL_IPV6_PREFIX_LENGTH
] [--internal-ipv6-address
=INTERNAL_IPV6_ADDRESS
] [--internal-ipv6-prefix-length
=INTERNAL_IPV6_PREFIX_LENGTH
] [--ipv6-network-tier
=IPV6_NETWORK_TIER
] [--network
=NETWORK
] [--network-interface
=NETWORK_INTERFACE
; default="nic0"] [--private-network-ip
=PRIVATE_NETWORK_IP
] [--security-policy
=SECURITY_POLICY
] [--security-policy-region
=SECURITY_POLICY_REGION
] [--stack-type
=STACK_TYPE
] [--subnetwork
=SUBNETWORK
] [--zone
=ZONE
] [GCLOUD_WIDE_FLAG …
]
gcloud compute instances network-interfaces update
updates network interfaces of a Compute Engine virtual machine. For example:
gcloud compute instances network-interfaces update example-instance --zone us-central1-a --aliases r1:172.16.0.1/32
sets 172.16.0.1/32 from range r1 of the default interface's subnetwork as the interface's alias IP.
INSTANCE_NAME
--aliases
=ALIASES
Can be specified together with --network and/or --subnetwork to choose IP alias ranges in the new subnetwork. If unspecified, then the previous IP alias ranges will be allocated in the new subnetwork. If the previous IP alias ranges are not available in the new subnetwork, then other available IP alias ranges of the same size will be allocated in the new subnetwork.
For example:
--aliases="10.128.1.0/24;r1:/32"
--external-ipv6-address
=EXTERNAL_IPV6_ADDRESS
--external-ipv6-prefix-length
=EXTERNAL_IPV6_PREFIX_LENGTH
--external-ipv6-address
. Currently only /96
is supported and the default value is 96
.
--internal-ipv6-address
=INTERNAL_IPV6_ADDRESS
--internal-ipv6-prefix-length
=INTERNAL_IPV6_PREFIX_LENGTH
--internal-ipv6-address=fd20::
. Only /96 IP address range is supported and the default value is 96. If not set, then either the prefix length from --internal-ipv6-address=fd20::/96
will be used or the default value of 96 will be assigned.
--ipv6-network-tier
=IPV6_NETWORK_TIER
IPV6_NETWORK_TIER
must be (only one value is supported):
PREMIUM
--network
=NETWORK
--network-interface
=NETWORK_INTERFACE
; default="nic0"
--private-network-ip
=PRIVATE_NETWORK_IP
--security-policy
=SECURITY_POLICY
--security-policy-region
=SECURITY_POLICY_REGION
compute/region
property value for this command invocation.
--stack-type
=STACK_TYPE
STACK_TYPE
must be one of:
IPV4_IPV6
IPV4_ONLY
--subnetwork
=SUBNETWORK
--zone
=ZONE
gcloud
attempts to identify the appropriate zone by searching for resources in your currently active project. If the zone cannot be determined, gcloud
prompts you for a selection with all available Google Cloud Platform zones.
To avoid prompting when this flag is omitted, the user can set the
property:compute/zone
gcloud config set compute/zone ZONE
A list of zones can be fetched by running:
gcloud compute zones list
To unset the property, run:
gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable
.CLOUDSDK_COMPUTE_ZONE
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud alpha compute instances network-interfaces update
gcloud beta compute instances network-interfaces update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-05 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4