router_static_create
Add a new static route to route traffic to a destination network through a specified gateway and interface, with configurable administrative distance and priority.
Instructions
Create a new static route.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | Destination network in CIDR or 'ip mask' format (e.g. '10.10.0.0/16' or '10.10.0.0 255.255.0.0'). | |
| gateway | Yes | Next-hop gateway IP address. | |
| device | Yes | Egress interface name (e.g. 'wan1'). | |
| distance | No | Administrative distance (1-255). | |
| priority | No | Priority (lower = preferred). | |
| comment | No | Comment. | |
| vdom | No | Target VDOM name. Defaults to the server default VDOM. Use '*' for all VDOMs (super-admin required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||