Static Configuration

Static component configuration is under the top level static object in /etc/flockd/flockd.json

"static": {}

If the static JSON object exists, a static master thread will be started.

Static route Configuration

Static routes can be defined with just the next-hop as a recursive routes or they can be specified with an interface and/or next-hop as an non-recursive routes. Also floating static routes can also be defined using the distance object.

Recursive route configuration

"static": {
    "static_routes": [
        {
            "ip_net": "20.20.20.0/24",
            "next_hops": [
                {
                    "ip_addr": "10.10.10.2"
                }
            ]
        }
    ]
}

Non-recursive route configuration

"static": {
    "static_routes": [
        {
            "ip_net": "20.20.20.0/24",
            "next_hops": [
                {
                    "ip_addr": "10.10.10.2",
                    "intf_name": "ens1"
                }
            ]
        },
        {
            "ip_net": "10:10::0/64",
            "next_hops": [
                {
                    "intf_name": "ens1"
                }
            ]
        }
    ]
}

Multi-path recursive route configuration

"static": {
    "static_routes": [
        {
            "ip_net": "20.20.20.0/24",
            "next_hops": [
                {
                    "ip_addr": "10.10.10.2"
                },
                {
                    "ip_addr": "11.11.11.2"
                }
            ]
        }
    ]
}

Floating static route configuration

"static": {
    "static_routes": [
        {
            "ip_net": "20.20.20.0/24",
            "next_hops": [
                {
                    "ip_addr": "10.10.10.2"
                }
            ],
            "distance": 120
        }
    ]
}