The static routes panel lets you manage persistent routes in your router’s network configuration. Both IPv4 (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KevinCruz-cell/Redes-de-comunicaciones-/llms.txt
Use this file to discover all available pages before exploring further.
route) and IPv6 (route6) route types are supported. All changes are written to UCI and committed with uci commit network, making them survive reboots.
Navigate to /router3/rutas to open the panel. An active session is required — unauthenticated requests are redirected to /login.
Route data structure
Routes are stored as anonymous UCI lists under thenetwork package. The controller parses them using parseRutas(), which reads UCI output matching network.@route[n].* or network.@route6[n].*.
Each route is represented as:
netmask field is present only on IPv4 routes. IPv6 routes use CIDR notation in the target field instead.
Route fields
| Field | Required | IPv4 | IPv6 | Description |
|---|---|---|---|---|
| Interface | Yes | Yes | Yes | UCI interface name traffic exits through (e.g. wan, lan) |
| Target (destination) | Yes | Yes | Yes | Destination network address |
| Netmask | Yes | Yes | No | Subnet mask for the destination (e.g. 255.255.255.0) |
| Gateway | Yes | Yes | Yes | Next-hop IP address |
| Metric | No | Yes | Yes | Route preference; lower values are preferred (default: 0) |
| MTU | No | Yes | Yes | Maximum transmission unit for this route (default: 1500) |
| Routing table | No | Yes | Yes | Kernel routing table (default: main) |
| Type | No | Yes | Yes | Route type: unicast, local, broadcast, blackhole, unreachable, prohibit |
| Source | No | Yes | Yes | Preferred source address for packets matching this route |
| Onlink | No | Yes | Yes | Flag indicating the gateway is directly reachable on the link (no ARP needed) |
Adding a route
Fill in the required fields
Enter at minimum: interface, target (destination network), gateway, and — for IPv4 — the netmask.
Configure optional fields
Set metric, MTU, routing table, type, source address, and the onlink flag if needed for your topology.
Updating a route
Modify the fields
Update any field. If you clear the source address or uncheck onlink, those UCI keys are deleted.
Deleting a route
Click the Delete button next to the route you want to remove. The controller finds the route by matching bothtarget and gateway values, resolves the array index, and runs:
UCI representation
The routes section of/etc/config/network looks like this after adding two IPv4 routes:
config route6 blocks and omit the netmask option.
Static routes configured here are stored in UCI and survive reboots. They are separate from the routes shown on the dashboard’s routing table panel, which reflects the live kernel routing table via
ip route show.Related pages
Dashboard
View the live kernel routing table alongside system metrics
Network interfaces
Manage the interfaces that static routes reference