set static-route

In the R81.10.X releases, this command is available starting from the R81.10.00 version.

Description

Configures an existing manually configured route rule.

Note - Probing static route can only be done on the default route.

Syntax

set static-route <id> [ source <source> ] [ service <service> ] [ destination <destination> ] [ nexthop gateway { logical <logical> | ipv4-address <ipv4-address> | gateway-vti <gateway-vti> | gateway-interface <gateway-interface> } ] [ metric <metric> ] [ disabled <disabled> ]

Parameters

Parameter

Description

destination

IP address and subnet mask length of the destination of the packet in the format IP Address/Subnet.

For example: 192.168.0.0/16

Default: 0.0.0.0/0

Note - The value "0.0.0.0/0" is supported starting from the R81.10.05 version.

disabled

Specifies whether this route is enabled (disabled false) or disabled (disabled true)

id

Specifies the route ID (an integer).

metric

Specifies the route metric (integer).

service

Specifies the service name.

source

IP address and subnet mask length of the source of the packet in the format IP Address/Subnet.

For example: 192.168.1.0/24

Example Command

set static-route 15 source 172.15.47.0/24 service http destination 172.15.47.0/24 nexthop gateway logical My_Network metric 15 disabled true

add static-route destination 0.0.0.0/0 nexthop gateway ipv4-address 172.28.4.4 metric 102