Home > Configuration > Network > addroute

addroute

Use this method to adds an IPv4 static route to the routing table of the Citrix ADC.

Syntax



Parameters

network

IPv4 network address for which to add a route entry in the routing table of the Citrix ADC.
This is mandatory parameter.

netmask

The 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.

vlan

VLAN as the gateway for this route.
Minimum value = 1.
Maximum value = 4094.

distance

Administrative distance of this route, which determines the preference of this route over other routes, with same destination, from different routing protocols. A lower value is preferred.
Default value = STATIC_ROUTE_DEFAULT_DISTANCE.
Maximum value = 255.

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.

weight

Positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference.
Default value = ROUTE_DEFAULT_WEIGHT.
Minimum value = 1.
Maximum value = 65535.

advertise

Advertise this route.

protocol

Routing protocol used for advertising this route.
Default value = ADV_ROUTE_FLAGS.

msr

Monitor this route using a monitor of type ARP or PING.
Default value = DISABLED.

monitor

Name of the monitor, of type ARP or PING, configured on the Citrix ADC to monitor this route.

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.

mgmt

Route in management plane.

Return Value

Returns simpleResult

See Also