HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/help/man/man1/gcloud_beta_compute_networks_update.1
.TH "GCLOUD_BETA_COMPUTE_NETWORKS_UPDATE" 1



.SH "NAME"
.HP
gcloud beta compute networks update \- update a Compute Engine network



.SH "SYNOPSIS"
.HP
\f5gcloud beta compute networks update\fR \fINAME\fR [\fB\-\-async\fR] [\fB\-\-[no\-]enable\-ula\-internal\-ipv6\fR] [\fB\-\-internal\-ipv6\-range\fR=\fIINTERNAL_IPV6_RANGE\fR] [\fB\-\-mtu\fR=\fIMTU\fR] [\fB\-\-network\-firewall\-policy\-enforcement\-order\fR=\fINETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER\fR] [\fB\-\-bgp\-best\-path\-selection\-mode\fR=\fIBGP_BEST_PATH_SELECTION_MODE\fR\ \fB\-\-[no\-]bgp\-bps\-always\-compare\-med\fR\ \fB\-\-bgp\-bps\-inter\-region\-cost\fR=\fIBGP_BPS_INTER_REGION_COST\fR] [\fB\-\-bgp\-routing\-mode\fR=\fIMODE\fR\ |\ \fB\-\-switch\-to\-custom\-subnet\-mode\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR \fBgcloud beta compute networks update\fR is used to update Compute
Engine networks.



.SH "EXAMPLES"

To update regional network with the name 'network\-name' to global, run:

.RS 2m
$ gcloud beta compute networks update network\-name \e
    \-\-bgp\-routing\-mode=global
.RE

To update an auto subnet mode network with the name 'network\-name' to custom
subnet mode, run:

.RS 2m
$ gcloud beta compute networks update network\-name \e
    \-\-switch\-to\-custom\-subnet\-mode
.RE



.SH "POSITIONAL ARGUMENTS"

.RS 2m
.TP 2m
\fINAME\fR

Name of the network to operate on.


.RE
.sp

.SH "FLAGS"

.RS 2m
.TP 2m
\fB\-\-async\fR

Return immediately, without waiting for the operation in progress to complete.

.TP 2m
\fB\-\-[no\-]enable\-ula\-internal\-ipv6\fR

Enable/disable ULA internal IPv6 on this network. Enabling this feature will
assign a /48 from google defined ULA prefix fd20::/20.

Use \fB\-\-enable\-ula\-internal\-ipv6\fR to enable and
\fB\-\-no\-enable\-ula\-internal\-ipv6\fR to disable.

.TP 2m
\fB\-\-internal\-ipv6\-range\fR=\fIINTERNAL_IPV6_RANGE\fR

When enabling ULA internal IPv6, caller can optionally specify the /48 range
they want from the google defined ULA prefix fd20::/20. ULA_IPV6_RANGE must be a
valid /48 ULA IPv6 address and within the fd20::/20. Operation will fail if the
speficied /48 is already in used by another resource. If the field is not
speficied, then a /48 range will be randomly allocated from fd20::/20 and
returned via this field.

.TP 2m
\fB\-\-mtu\fR=\fIMTU\fR

Maximum transmission unit (MTU) is the size of the largest IP packet that can be
transmitted on this network. Default value is 1460 bytes. The minimum value is
1300 bytes and the maximum value is 8896 bytes. The MTU advertised via DHCP to
all instances attached to this network.

.TP 2m
\fB\-\-network\-firewall\-policy\-enforcement\-order\fR=\fINETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER\fR

The Network Firewall Policy enforcement order of this network. If not specified,
defaults to AFTER_CLASSIC_FIREWALL.

\fINETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDER\fR must be one of:

.RS 2m
.TP 2m
\fBAFTER_CLASSIC_FIREWALL\fR
Network Firewall Policy is enforced after classic firewall.
.TP 2m
\fBBEFORE_CLASSIC_FIREWALL\fR
Network Firewall Policy is enforced before classic firewall.
.RE
.sp


.TP 2m

BGP Best Path Selection flags


.RS 2m
.TP 2m
\fB\-\-bgp\-best\-path\-selection\-mode\fR=\fIBGP_BEST_PATH_SELECTION_MODE\fR

The BGP best path selection algorithm to be employed.
\fIBGP_BEST_PATH_SELECTION_MODE\fR must be one of:

.RS 2m
.TP 2m
\fBLEGACY\fR
Dynamic routes are ranked based on the multiple exit\-discriminator (MED) BGP
attribute. When global routing is enabled, the MED of the routes received from
other regions is the original MED plus the region\-to\-region cost.
.TP 2m
\fBSTANDARD\fR
Dynamic routes are ranked based on AS Path, Origin, Neighbor ASN and MED BGP
attributes. When global routing is enabled, region\-to\-region cost is used as a
tiebreaker. This mode offers customizations to fine\-tune BGP best path routing
with additional flags like \-\-bgp\-bps\-always\-compare\-med and
\-\-bgp\-bps\-inter\-region\-cost
.RE
.sp


.TP 2m
\fB\-\-[no\-]bgp\-bps\-always\-compare\-med\fR

Enables/disables the comparison of MED across routes with different Neighbor
ASNs. This value can only be set if the \-\-bgp\-best\-path\-selection\-mode is
STANDARD. Use \fB\-\-bgp\-bps\-always\-compare\-med\fR to enable and
\fB\-\-no\-bgp\-bps\-always\-compare\-med\fR to disable.

.TP 2m
\fB\-\-bgp\-bps\-inter\-region\-cost\fR=\fIBGP_BPS_INTER_REGION_COST\fR

Defines the preferred approach for handling inter\-region cost in the selection
process. This value can only be set if the \-\-bgp\-best\-path\-selection\-mode
is STANDARD. \fIBGP_BPS_INTER_REGION_COST\fR must be one of:

.RS 2m
.TP 2m
\fBADD_COST_TO_MED\fR
Adds inter\-region cost to the MED before comparing the MED value. When multiple
routes have the same value after the Add\-cost\-to\-med comparison, the route
selection continues and prefers the route with lowest cost.
.TP 2m
\fBDEFAULT\fR
MED is compared as originally received from peers. When multiple routes have the
same MED, cost is evaluated as the next step.
.RE
.sp


.RE
.sp
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-bgp\-routing\-mode\fR=\fIMODE\fR

The target BGP routing mode for this network. \fIMODE\fR must be one of:

.RS 2m
.TP 2m
\fBglobal\fR
Cloud Routers in this network advertise subnetworks from all regions to their
BGP peers, and program instances in all regions with the router's best learned
BGP routes.
.TP 2m
\fBregional\fR
Cloud Routers in this network advertise subnetworks from their local region only
to their BGP peers, and program instances in their local region only with the
router's best learned BGP routes.
.RE
.sp


.TP 2m
\fB\-\-switch\-to\-custom\-subnet\-mode\fR

Switch to custom subnet mode. This action cannot be undone.


.RE
.RE
.sp

.SH "GCLOUD WIDE FLAGS"

These flags are available to all commands: \-\-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 \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in beta and might change without notice. These
variants are also available:

.RS 2m
$ gcloud compute networks update
.RE

.RS 2m
$ gcloud alpha compute networks update
.RE