-
--description
DESCRIPTION
-
An optional, textual description for the route.
-
--destination-range
DESTINATION_RANGE
-
The destination range of outgoing packets that the route will
apply to. To match all traffic, use
0.0.0.0/0
.
-
--network
NETWORK
; default="default"
-
Specifies the network to which the route will be applied.
-
--next-hop-address
NEXT_HOP_ADDRESS
-
Specifies the IP address of an instance that should handle
matching packets. The instance must have IP forwarding enabled
(i.e., include
--can-ip-forward
when creating the instance
using gcloud compute instances create
)
-
--next-hop-gateway
NEXT_HOP_GATEWAY
-
Specifies the gateway that should handle matching
packets. Currently, the only acceptable value is
default-internet-gateway
which is a gateway operated by
Google Compute Engine.
-
--next-hop-instance
NEXT_HOP_INSTANCE
-
Specifies the name of an instance that should handle traffic
matching this route. When this flag is specified, the zone of
the instance must be specified using
--next-hop-instance-zone
.
-
--next-hop-instance-zone
NEXT_HOP_INSTANCE_ZONE
-
The zone of the next hop instance.
If not specified, you will be prompted to select a zone.
- To avoid prompting when this flag is omitted, you can set the
compute/zone
property:
$ gcloud config set compute/zone ZONE
- A list of zones can 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
.
-
--priority
PRIORITY
; default="1000"
-
Specifies the priority of this route relative to other routes
with the same specifity. The lower the value, the higher the
priority.
-
--tags
TAG
[TAG
…]
-
Identifies the set of instances that this route will apply to. If no
tags are provided, the route will apply to all instances in the network.