These endpoints are served under theDocumentation 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.
/api/router3 prefix and interact with the router’s UCI network configuration over SSH. All endpoints require an active session (see Authentication). Responses are JSON.
GET /api/router3/rutas
Returns all configured static IPv4 and IPv6 routes from the router’s UCI network configuration.Response
"success" or "error".Array of IPv4 static route objects (
network.@route[N]).Array of IPv6 static route objects (
network.@route6[N]). Same fields as IPv4 routes except netmask is not present.POST /api/router3/ruta/agregar
Adds a new static route to the router’s UCI network configuration and commits the change.Request
IP version:
"ipv4" or "ipv6".UCI interface name to bind the route to (e.g.,
"wan", "lan").Destination network address (e.g.,
"10.0.0.0" for IPv4, "2001:db8::/32" for IPv6).Next-hop gateway IP address.
Subnet mask — IPv4 only (e.g.,
"255.255.255.0"). Ignored for IPv6 routes.Route metric value. Optional.
Maximum Transmission Unit for this route. Optional.
Routing table name or number. Optional.
Route type (
"unicast", "blackhole", "unreachable", etc.). Optional.Source address for policy-based routing. Optional.
Set to
"1" to enable the on-link flag, "0" or omit to leave it unset.Response
"success" or "error".Result description.
POST /api/router3/ruta/actualizar
Updates an existing static route in place, identified by its UCI index. Changes are committed immediately.Request
IP version:
"ipv4" or "ipv6".UCI index of the route to update. Obtain this from the
id field returned by GET /api/router3/rutas.Updated interface name.
Updated destination address.
Updated gateway address.
Updated subnet mask (IPv4 only).
Updated route metric.
Updated MTU.
Updated routing table.
Updated route type.
Updated source address. Omit or leave empty to remove the field.
"1" to set on-link, anything else to remove the flag.Response
"success" or "error".Result description.
POST /api/router3/ruta/eliminar
Deletes a static route identified by itstarget and gateway combination. The endpoint first fetches all routes to locate the correct UCI index, then deletes that entry and commits.
Request
IP version of the route to delete:
"ipv4" or "ipv6".Destination address of the route to delete (e.g.,
"10.10.0.0").Gateway address of the route to delete. Combined with
target to uniquely identify the route.Response
"success" or "error".Result description. Returns
"Ruta no encontrada" with HTTP 404 if no matching route exists.POST /api/router3/diagnostico
Runs a network diagnostic command (ping, traceroute, or nslookup) on the router and returns the raw output.
Request
Diagnostic tool to run. Must be one of:
"ping", "traceroute", "nslookup".Target hostname or IP address to probe (e.g.,
"8.8.8.8", "google.com").Response
"success" or "error".Raw text output from the diagnostic command. Includes all lines printed to stdout and stderr. Returns
"No se obtuvo respuesta del comando" if the command produces no output.