config static
Description: Configure static routes.
config static
edit <name>
set status [enable | disable]
set dst {ipv4-address}
set gateway {ipv4-address}
set distance [1 – 255]
set *device <name1>
set comment {string}
unset
next
show
abort
end
delete <name>
purge
show
Sample command:
FX201E5919000057 (static) # show
config router static
edit 1
set status enable
set dst 10.124.23.0/24
set gateway 192.168.200.99
set distance 1
set device wan
set comment this is a sample static route
next
end
| Parameter | Description | Type | Size | Default | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| status | Status of the static route. | option | - | enable | ||||||
|
||||||||||
| dst | Destination IP and mask for the route. | Ipv4_address/netmask- | - | none | ||||||
| gateway | Gateway IP for the route. | Ipv4_address | - | none | ||||||
| distance | Administrative distance. (This field is the metric of the route item. Set the value carefully and ensure that this route item matches your application scenario without affecting other route items.) | integer | 1 - 255 | 1 | ||||||
| device | Gateway outgoing interface or tunnel. | option | - | none | ||||||
| comment | Comment on the route. (Optional) | string | Up to 255 characters in length | none | ||||||