Parameters

These arguments are available:

  • Arguments
  • Commands
  • Family
  • Destination
  • Gateway

Arguments

You can specify one or more of the these arguments, where n is specified as a variable to an argument. The value of the n variable is a positive integer.

Item Description

-active_dgd

Enables Active Dead Gateway Detection on the route.

-cloning

Clones a new route.

-genmask

Extracts the length of TSEL, which is used for the generation of cloned routes.

-interface

Manipulates interface routing entries.

-rtt n

Specifies round-trip time.

-rttvar n

Specifies round-trip time variance.

-sendpipe n

Specifies send-window size.

-recvpipe n

Specifies receive-window size.

-allowgroup gid

Specifies a group ID that has permission to use the route. The group ID is added to a list of permitted groups or deleted from a list of denied groups.

-denygroup gid

Specifies a group ID that does not have permission to use the route. The group ID is added to a list of denied groups or deleted from a list of permitted groups.

-stopsearch

Stops searching if a routing table lookup matches the route, but is not permitted to use the route due to group routing restrictions.

-mtu n

Specifies the maximum transmission unit for this route. This overrides the interface mtu for TCP applications as long as it does not exceed maximum mtu for the interface. This flag has no affect on mtu for applications using UDP.

-hopcount n

Specifies maximum number of gateways in the route.

-policy n

Specifies the policy to be used for Multipath Routing. n is number between 1 and 5.

1. Weighted Round-Robin

2. Random

3. Weighted Random

4. Lowest Utilization

5. Hash-based

If the policy is not explicitly set and multi-path routing is used, then the global no command option called mpr_policy determines the policy that is used.

The default policy is Weighted Round Robin. This behaves similar to Round-Robin when the weights are all 1. Although the Default policy is Weighted Round-Robin, when the policy is not set, the network option mpr_policy takes precedence.

However, if the policy is explicitly set to WRR then this setting overrides the mpr_policy setting.

-weight n

Specifies the weight of the route that is used for the Weighted policies with the Multipath Routing feature.

-expire n

Specifies expiration metrics used by the routing protocol.

-ssthresh n

Specifies the outbound gateway buffer limit.

-lock

Specifies a meta-modifier that can individually lock a metric modifier. The -lock meta-modifier must precede each modifier to be locked.

-lockrest

Specifies a meta-modifier that can lock all subsequent metrics.

-if ifname

Specifies the interface (en0, tr0 ...) to associate with this route so that packets are sent using this interface when this route is chosen.

-xresolve

Emits a message on use for external lookup.

-iface

Specifies that the destination is directly reachable.

-static

Specifies the manually added route.

-nostatic

Specifies the pretend route that is added by the kernel or daemon.

-reject

Emits an ICMP unreachable when matched.

-blackhole

Silently discards packets during updates.

-proto1

Sets protocol specific routing flag number 1.

-proto2

Sets protocol specific routing flag number 2.

Commands

Commands include:

Item Description

add

Adds a route.

flush or -f

Removes all routes.

delete

Deletes a specific route.

change

Changes aspects of a route, such as its gateway.

monitor

Reports any changes to the routing information base, routing lockup misses, or suspected network partitionings.

get

Looks up and displays the route for a destination.

set

Sets the policy and weight attributes of a route.

Family

This specifies the address family.

Item Description

Family

Family specifies the address family. The -inet address family is the default. The -inet6 family specifies that all subsequent addresses are in the inet6 family.

Destination

This identifies the host or network endpoint for the route.

Item Description

Destination

Identifies the host or network to which you are directing the route. The Destination parameter can be specified by symbolic name or numeric address.

Gateway

This identifies the gateway for packets.

Item Description

Gateway

Identifies the gateway to which packets are addressed. The Gateway parameter can be specified by a symbolic name or numeric address.