CONFIG NETWORK ROUTE ADD
Level
route,modify
History
Appears in Netasq 6.0.0
option remote=default removed in Netasq 9.0.0
state appears in Netasq 9.1.0
ipsecBypass appears in 3.7.22
gateway=blackhole appears in 4.8.0
position appears in 5.1.0
Description
Add an IPv4 static route
Usage
remote=<remote object> [interface=<ifname>] [gateway=(<gateway>|blackhole)] [color=<color>] [comment=<comment>] [state=(0|1)] [ipsecBypass=(0|1)] [position=<position>]
ipsecBypass=1 : the destination network of the static route takes part in the IPSEC local bypass if enabled in VPN slot (default: ipsecBypass=0)
Returns
Error code
Example
CONFIG NETWORK ROUTE ADD remote=net-remote-1 gateway=router1 interface=in color=acc0ac comment="route to remote network 1 added at the end"
CONFIG NETWORK ROUTE ADD position=1 remote=net-remote-1 gateway=router1 interface=in color=acc0ac comment="route added at first position"
Cache category clone
route