Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Static Route Tools

These tools report the Static component of flockd: the static routes as configured. Whether a static route is the one the router uses for its prefix is for rib_lookup to say.

static_overview

How many static routes and VRFs the Static component has, and the route counts of each VRF. The same as flockc static overview and flockc static list-vrfs, or flockc static vrf <vrf> show for one.

Argument
daemonThe router
vrfOne VRF to report on, by name. Leave out for the whole component and every VRF

static_routes

A router's static routes, with each path's next hops. The same as flockc static vrf <vrf> lookup <prefix> and flockc static vrf <vrf> walk <root>.

Argument
daemonThe router
vrfThe VRF to look in. Leave out for the main VRF
prefixOne prefix to look up, e.g. 10.1.0.0/16. Leave out to walk the static routes
rootWalk the prefixes under this one. Leave out for every IPv4 prefix; ::/0 for every IPv6 prefix
start_fromGo on from after this prefix: the next of the answer before
max_entriesThe most entries to return: 100 unless given, and never over 1000
{
    "prefix": "203.0.113.0/24",
    "paths": [
        {
            "admin_dist": null,
            "origin": { "Static": "Conf" },
            "nhs": [
                {
                    "Recursive": {
                        "vrf": { "vrf_id": 254, "vrf_name": "default" },
                        "ip_addr": "10.0.12.2",
                        "out_label": null
                    }
                }
            ]
        }
    ]
}