add_route
Add a static route to MikroTik RouterOS by specifying destination CIDR and gateway. Supports distance, gateway checking, and advanced routing options.
Instructions
Adds a route to the routing table.
Notes: dst_address: CIDR e.g. "0.0.0.0/0", "192.168.1.0/24" check_gateway: "ping" or "arp" distance: 1-255 (lower = higher priority)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| device | No | ||
| comment | No | ||
| gateway | Yes | ||
| disabled | No | ||
| distance | No | ||
| pref_src | No | ||
| dst_address | Yes | ||
| routing_mark | No | ||
| target_scope | No | ||
| check_gateway | No | ||
| vrf_interface | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |