Skip to main content
Register and control network routers as Lager nets. A router net wraps a router’s REST API (e.g. a MikroTik hAP) so you can inspect interfaces, list wireless clients and DHCP leases, toggle interfaces, block internet access, and reset the router to a clean baseline — useful for connectivity and network-resilience tests.
Introduced in lager 0.10.0. The default instrument type is MikroTik_hAP.

Syntax

Every subcommand accepts --box BOX (Lagerbox name or IP; uses the default box if omitted). Most operate on a NETNAME — the name of a router net previously registered with add-net.

Commands


Command Reference

add-net

Register a router as a net on the box.

connect

Verify connectivity to a router net.

interfaces

List network interfaces on a router net.

wireless-interfaces

List wireless interfaces and their configuration.

wireless-clients

List currently connected wireless clients.

dhcp-leases

List DHCP leases — devices that have received IP addresses.

system-info

Get system resource information from a router net.

reboot

Reboot a router net. Prompts for confirmation unless --yes is passed.

enable-interface / disable-interface

Enable or disable a wireless interface by name.

block-internet

Block all internet access on a router net (drops forwarded traffic). Use reset to restore access.

reset

Reset a router net to a clean baseline state: removes all test-tagged firewall rules, bandwidth limits, and access-list entries; re-enables DHCP and all wireless interfaces. If --ssid and --password are provided, a fresh baseline WPA2 network is applied. Prompts for confirmation unless --yes is passed.

run

Run an arbitrary router REST API GET call. PATH is the API path relative to /rest, e.g. /ip/address.

See Also

  • Nets — manage instrument and device nets
  • WiFi — manage the Lager Box’s own WiFi settings