Home > Configuration > Network > setroute_cost

setroute_cost

Use this method to set the cost of a route is used to compare routes of the same type. The route having the lowest cost is the most preferred route. Possible values: 0 through 65535. Default: 0.

Syntax



Parameters

network

Network address in the route entry that you want to modify.
This is mandatory parameter.

netmask

Subnet mask associated with the network address.
This is mandatory parameter.

gateway

IP address of the gateway for this route. Can be either the IP address of the gateway, or can be null to specify a null interface route.
This is mandatory parameter.

ownergroup

The owner node group in a Cluster for this route. If owner node group is not specified then the route is treated as Striped route.
Default value = DEFAULT_NG.

cost

The cost of a route is used to compare routes of the same type. The route having the lowest cost is the most preferred route. Possible values: 0 through 65535. Default: 0.
Maximum value = 65535.

Return Value

Returns simpleResult

See Also