Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Route Commands

Contents

addroute

addroute                     Create a new routing rule.

                             A route is a rule that specifies how matching
                             packets should be handled by a virtual network.

                             Usage: gcutil [--global_flags] addroute
                             [--command_flags] <route-name>
                             <destination-address-range>

                             Flags for addroute:

gcutil_lib.route_cmds:
  --description: An optional route description.
  --network: Specifies which network to apply the route to. By default, this is
    the 'default' network.
    (default: 'default')
  --next_hop_gateway: Specifies the gateway that should handle matching packets.
    You must provide exactly one hop, specified by one of '--next_hop_instance',
    '--next_hop_ip', or '--next_hop_gateway'. Currently, you can only specify
    the Internet gateway:
    '/projects/<project-id>/global/gateways/default-internet'.
  --next_hop_instance: Specifies the name of an instance that should handle
    matching packets. You must provide exactly one hop, specified by one of
    '--next_hop_instance', '--next_hop_ip', or '--next_hop_gateway'. To specify
    '--next_hop_instance', provide the full URL to the instance. e.g. 'https://w
    ww.googleapis.com/compute/<api-version>/projects/<project-id>/zones/<zone-na
    me>/instances/<instance-name>'.
  --next_hop_ip: Specifies the IP address of an instance that should handle
    matching packets. You must provide exactly one hop, specified by one of
    '--next_hop_instance', '--next_hop_ip', or '--next_hop_gateway'. To specify
    an IP address of an instance, the IP must already exist and have IP
    forwarding enabled.
  --priority: Specifies the priority of this route relative to other routes with
    the same specificity. The lower the number, the higher the priority. The
    default priority is 1000.
    (default: '1000')
    (an integer in the range [0, 4294967295])
  --tags: Specifies a comma-separated set of tagged instances to which the route
    will apply. If no tags are specified, this route applies to all instances
    within the specified network.
    (default: '')
    (a comma separated list)

gflags:
  --flagfile: Insert flag definitions from the given file into the command line.
    (default: '')
  --undefok: comma-separated list of flag names that it is okay to specify on
    the command line even if the program does not define a flag with that name.
    IMPORTANT: flags in this list that have arguments MUST use the --flag=value
    format.
    (default: '')

deleteroute

deleteroute                  Delete one or more routing rules.

                             Specify multiple rules as multiple arguments.
                             Multiple rules will be deleted in parallel.

                             Usage: gcutil [--global_flags] deleteroute
                             [--command_flags] <route-name-1> ... <route-name-n>

                             Flags for deleteroute:

gcutil_lib.command_base:
  -f,--[no]force: Override the "Delete route" prompt
    (default: 'false')

gflags:
  --flagfile: Insert flag definitions from the given file into the command line.
    (default: '')
  --undefok: comma-separated list of flag names that it is okay to specify on
    the command line even if the program does not define a flag with that name.
    IMPORTANT: flags in this list that have arguments MUST use the --flag=value
    format.
    (default: '')

getroute

getroute                     Get a routing rule.

                             Usage: gcutil [--global_flags] getroute
                             [--command_flags] <route-name>

listroutes

listroutes                   List the routing rules for a project.

                             Usage: gcutil [--global_flags] listroutes
                             [--command_flags]

                             Flags for listroutes:

gcutil_lib.command_base:
  --columns: A comma-separated list of the desired columns to display. If 'all'
    is specified, then all possible columns will be included. Valid columns are
    <all|name|network|tags|destination-range|next-hop-instance|next-hop-ip|next-
    hop-gateway|next-hop-network|priority|warning>.
    (a comma separated list)
  --[no]fetch_all_pages: Deprecated flag.
    (default: 'true')
  --filter: Filter expression for filtering listed resources. See gcutil
    documentation for syntax of the filter expression here:
    http://developers.google.com/compute/docs/gcutil/tips#filtering
  --max_results: Maximum number of items to list [Default is to fetch all].
    (a positive integer)

gcutil_lib.gcutil_flags:
  --sort_by: <name|-name|network|-network|destination-range|-destination-range|p
    riority|-priority>: Sort output results by the given field name. Field names
    starting with a "-" will lead to a descending order.

gflags:
  --flagfile: Insert flag definitions from the given file into the command line.
    (default: '')
  --undefok: comma-separated list of flag names that it is okay to specify on
    the command line even if the program does not define a flag with that name.
    IMPORTANT: flags in this list that have arguments MUST use the --flag=value
    format.
    (default: '')

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.