gcloud compute interconnects attachments dedicated create NAME --interconnect=INTERCONNECT --router=ROUTER [--bandwidth=BANDWIDTH] [--candidate-cloud-router-ip-address=CANDIDATE_CLOUD_ROUTER_IP_ADDRESS] [--candidate-cloud-router-ipv6-address=CANDIDATE_CLOUD_ROUTER_IPV6_ADDRESS] [--candidate-customer-router-ip-address=CANDIDATE_CUSTOMER_ROUTER_IP_ADDRESS] [--candidate-customer-router-ipv6-address=CANDIDATE_CUSTOMER_ROUTER_IPV6_ADDRESS] [--candidate-ipv6-subnets=[IPV6_SUBNET,…]] [--candidate-subnets=[SUBNET,…]] [--cloud-router-ipv6-interface-id=INTERFACE_ID] [--customer-router-ipv6-interface-id=PEER_INTERFACE_ID] [--description=DESCRIPTION] [--enable-admin] [--encryption=ENCRYPTION] [--ipsec-internal-addresses=[ADDRESSES]] [--mtu=MTU] [--region=REGION] [--resource-manager-tags=[KEY=VALUE,…]] [--stack-type=STACK_TYPE] [--subnet-length=SUBNET_LENGTH] [--vlan=VLAN] [GCLOUD_WIDE_FLAG …]
gcloud compute interconnects attachments dedicated create is used
to create a dedicated interconnect attachments. An interconnect attachment is
what binds the underlying connectivity of an interconnect to a path into and out
of the customer's cloud network.
NAME--interconnect=INTERCONNECT--router=ROUTER--bandwidth=BANDWIDTHBANDWIDTH must
be one of:
50m100m200m300m400m500m1g2g5g10g20g50g100g400g--candidate-cloud-router-ip-address=CANDIDATE_CLOUD_ROUTER_IP_ADDRESS--candidate-cloud-router-ipv6-address=CANDIDATE_CLOUD_ROUTER_IPV6_ADDRESS--candidate-customer-router-ip-address=CANDIDATE_CUSTOMER_ROUTER_IP_ADDRESS--candidate-customer-router-ipv6-address=CANDIDATE_CUSTOMER_ROUTER_IPV6_ADDRESS--candidate-ipv6-subnets=[IPV6_SUBNET,…]candididate-ipv6-subnets field is not available.
--candidate-subnets=[SUBNET,…]cloudRouterIpAddress and customerRouterIpAddress for
this attachment. All prefixes must be within link-local address space. Google
attempts to select an unused subnet of SUBNET_LENGTH from the supplied candidate
subnet(s), or all of link-local space if no subnets supplied. Google does not
re-use a subnet already in-use by your project, even if it's contained in one of
the candidate subnets. The request fails if all candidate subnets are in use at
Google's edge.
--cloud-router-ipv6-interface-id=INTERFACE_IDcloud-router-ipv6-interface-id field is not available.
--customer-router-ipv6-interface-id=PEER_INTERFACE_IDcustomer-router-ipv6-interface-id field is not available.
--description=DESCRIPTION--enable-admin--encryption=ENCRYPTIONPossible values are:
NONE - This is the default value, which means the interconnect
attachment carries unencrypted traffic. VMs can send traffic to or receive
traffic from such interconnect attachment.
IPSEC - The interconnect attachment carries only traffic that is
encrypted by an IPsec device; for example, an HA VPN gateway or third-party
IPsec VPN. VMs cannot directly send traffic to or receive traffic from such an
interconnect attachment. To use HA VPN over Cloud Interconnect, the interconnect
attachment must be created with this option.
ENCRYPTION must be one of: IPSEC,
NONE.
--ipsec-internal-addresses=[ADDRESSES]--mtu=MTU--region=REGION
To avoid prompting when this flag is omitted, you can set the
property:
compute/region
gcloud config set compute/region REGIONA list of regions can be fetched by running:
gcloud compute regions listTo unset the property, run:
gcloud config unset compute/regionCLOUDSDK_COMPUTE_REGION.
--resource-manager-tags=[KEY=VALUE,…]--stack-type=STACK_TYPESTACK_TYPE must be one of:
IPV4_IPV6IPV4_ONLY--subnet-length=SUBNET_LENGTHSUBNET_LENGTH must be one of: 29,
30.
--vlan=VLAN--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 interconnects attachments dedicated creategcloud beta compute interconnects attachments dedicated creategcloud preview compute interconnects attachments dedicated create
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 2026-05-27 UTC.