{
    "mode": "man",
    "parameter": "SYSTEMD-NETWORKD-WAIT-ONLINE.SERVICE",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/SYSTEMD-NETWORKD-WAIT-ONLINE.SERVICE/8/json",
    "generated": "2026-08-08T09:59:51Z",
    "synopsis": "systemd-networkd-wait-online.service\nsystemd-networkd-wait-online@.service\n/usr/lib/systemd/systemd-networkd-wait-online",
    "sections": {
        "NAME": {
            "content": "systemd-networkd-wait-online.service, systemd-networkd-wait-online@.service, systemd-\nnetworkd-wait-online - Wait for network to come online\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "systemd-networkd-wait-online.service\n\nsystemd-networkd-wait-online@.service\n\n/usr/lib/systemd/systemd-networkd-wait-online\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "systemd-networkd-wait-online is a oneshot system service (see systemd.service(5)), that waits\nfor the network to be configured. By default, it will wait for all links it is aware of and\nwhich are managed by systemd-networkd.service(8) to be fully configured or failed, and for at\nleast one link to be online. Here, online means that the link's operational state is equal or\nhigher than \"degraded\". The threshold can be configured by --operational-state= option.\n\nThe service systemd-networkd-wait-online.service invokes systemd-networkd-wait-online without\nany options. Thus, it waits for all managed interfaces to be configured or failed, and for at\nleast one to be online.\n\nThe service systemd-networkd-wait-online@.service takes an interface name, and invokes\nsystemd-networkd-wait-online with -i and the specified interface name. Thus, wait for the\nspecified interface to be configured and online. For example,\nsystemd-networkd-wait-online@eth0.service waits for eth0 to be configured by systemd-networkd\nand online.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following options are understood:\n",
            "subsections": [
                {
                    "name": "-i _",
                    "content": "--interface=INTERFACE[:MINOPERSTATE[:MAXOPERSTATE]]\nNetwork interface to wait for before deciding if the system is online. This is useful\nwhen a system has several interfaces which will be configured, but a particular one is\nnecessary to access some network resources. When used, all other interfaces are ignored.\nThis option may be used more than once to wait for multiple network interfaces. When this\noption is specified multiple times, then systemd-networkd-wait-online waits for all\nspecified interfaces to be online. Optionally, required minimum and maximum operational\nstates can be specified after a colon \":\". Please see networkctl(1) for possible\noperational states. If the operational state is not specified here, then the value from\nRequiredForOnline= in the corresponding .network file is used if present, and \"degraded\"\notherwise.\n\nAdded in version 213.\n\n--ignore=INTERFACE\nNetwork interfaces to be ignored when deciding if the system is online. By default, only\nthe loopback interface is ignored. This option may be used more than once to ignore\nmultiple network interfaces.\n\nAdded in version 219.\n",
                    "flag": "-i"
                },
                {
                    "name": "-o _ --operational-state=_",
                    "content": "Takes a minimum operational state and an optional maximum operational state. Please see\nnetworkctl(1) for possible operational states. If set, the specified value overrides\nRequiredForOnline= settings in .network files. But this does not override operational\nstates specified in --interface= option.\n\nAdded in version 242.\n",
                    "flag": "-o",
                    "long": "--operational-state",
                    "arg": "_"
                },
                {
                    "name": "-4 --ipv4",
                    "content": "Waiting for an IPv4 address of each network interface to be configured. If this option is\nspecified with --any, then systemd-networkd-wait-online exits with success when at least\none interface becomes online and has an IPv4 address. If the required minimum operational\nstate is below \"routable\", then each link (or at least one link with --any) must have an\nIPv4 link-local or routable address. If the required minimum operational state is\n\"routable\", then each link must have an IPv4 routable address.\n\nIf neither --ipv4 nor --ipv6 is specified, then the value from RequiredFamilyForOnline=\nin the corresponding .network file is used if present.\n\nAdded in version 249.\n",
                    "flag": "-4",
                    "long": "--ipv4"
                },
                {
                    "name": "-6 --ipv6",
                    "content": "Waiting for an IPv6 address of each network interface to be configured. If this option is\nspecified with --any, then systemd-networkd-wait-online exits with success when at least\none interface becomes online and has an IPv6 address. If the required minimum operational\nstate is below \"routable\", then each link (or at least one link with --any) must have an\nIPv6 link-local or routable address. If the required minimum operational state is\n\"routable\", then each link must have an IPv6 routable address.\n\nIf neither --ipv4 nor --ipv6 is specified, then the value from RequiredFamilyForOnline=\nin the corresponding .network file is used if present.\n\nAdded in version 249.\n",
                    "flag": "-6",
                    "long": "--ipv6"
                },
                {
                    "name": "--any",
                    "content": "Even if several interfaces are in configuring state, systemd-networkd-wait-online exits\nwith success when at least one interface becomes online. When this option is specified\nwith --interface=, then systemd-networkd-wait-online waits for one of the specified\ninterfaces to be online. This option is useful when some interfaces may not have carrier\non boot.\n\nAdded in version 242.\n\n--timeout=SECS\nFail the service if the network is not online by the time the timeout elapses. A timeout\nof 0 disables the timeout. Defaults to 120 seconds.\n\nAdded in version 219.\n",
                    "long": "--any"
                },
                {
                    "name": "-q --quiet",
                    "content": "Suppress log messages.\n\nAdded in version 242.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-h --help",
                    "content": "Print a short help text and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Print a short version string and exit.\n",
                    "long": "--version"
                }
            ]
        },
        "SEE ALSO": {
            "content": "systemd(1), systemd.service(5), systemd-networkd.service(8), networkctl(1)\n\nsystemd 255                                                           SYSTEMD-NETW...LINE.SERVICE(8)",
            "subsections": []
        }
    },
    "summary": "systemd-networkd-wait-online.service, systemd-networkd-wait-online@.service, systemd- networkd-wait-online - Wait for network to come online",
    "flags": [
        {
            "flag": "-i",
            "long": null,
            "arg": null,
            "description": "--interface=INTERFACE[:MINOPERSTATE[:MAXOPERSTATE]] Network interface to wait for before deciding if the system is online. This is useful when a system has several interfaces which will be configured, but a particular one is necessary to access some network resources. When used, all other interfaces are ignored. This option may be used more than once to wait for multiple network interfaces. When this option is specified multiple times, then systemd-networkd-wait-online waits for all specified interfaces to be online. Optionally, required minimum and maximum operational states can be specified after a colon \":\". Please see networkctl(1) for possible operational states. If the operational state is not specified here, then the value from RequiredForOnline= in the corresponding .network file is used if present, and \"degraded\" otherwise. Added in version 213. --ignore=INTERFACE Network interfaces to be ignored when deciding if the system is online. By default, only the loopback interface is ignored. This option may be used more than once to ignore multiple network interfaces. Added in version 219."
        },
        {
            "flag": "-o",
            "long": "--operational-state",
            "arg": "_",
            "description": "Takes a minimum operational state and an optional maximum operational state. Please see networkctl(1) for possible operational states. If set, the specified value overrides RequiredForOnline= settings in .network files. But this does not override operational states specified in --interface= option. Added in version 242."
        },
        {
            "flag": "-4",
            "long": "--ipv4",
            "arg": null,
            "description": "Waiting for an IPv4 address of each network interface to be configured. If this option is specified with --any, then systemd-networkd-wait-online exits with success when at least one interface becomes online and has an IPv4 address. If the required minimum operational state is below \"routable\", then each link (or at least one link with --any) must have an IPv4 link-local or routable address. If the required minimum operational state is \"routable\", then each link must have an IPv4 routable address. If neither --ipv4 nor --ipv6 is specified, then the value from RequiredFamilyForOnline= in the corresponding .network file is used if present. Added in version 249."
        },
        {
            "flag": "-6",
            "long": "--ipv6",
            "arg": null,
            "description": "Waiting for an IPv6 address of each network interface to be configured. If this option is specified with --any, then systemd-networkd-wait-online exits with success when at least one interface becomes online and has an IPv6 address. If the required minimum operational state is below \"routable\", then each link (or at least one link with --any) must have an IPv6 link-local or routable address. If the required minimum operational state is \"routable\", then each link must have an IPv6 routable address. If neither --ipv4 nor --ipv6 is specified, then the value from RequiredFamilyForOnline= in the corresponding .network file is used if present. Added in version 249."
        },
        {
            "flag": "",
            "long": "--any",
            "arg": null,
            "description": "Even if several interfaces are in configuring state, systemd-networkd-wait-online exits with success when at least one interface becomes online. When this option is specified with --interface=, then systemd-networkd-wait-online waits for one of the specified interfaces to be online. This option is useful when some interfaces may not have carrier on boot. Added in version 242. --timeout=SECS Fail the service if the network is not online by the time the timeout elapses. A timeout of 0 disables the timeout. Defaults to 120 seconds. Added in version 219."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Suppress log messages. Added in version 242."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Print a short help text and exit."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Print a short version string and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "systemd.service",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.service/5/json"
        },
        {
            "name": "systemd-networkd.service",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/systemd-networkd.service/8/json"
        },
        {
            "name": "networkctl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/networkctl/1/json"
        },
        {
            "name": "SYSTEMD-NETW...LINE.SERVICE",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/SYSTEMD-NETW...LINE.SERVICE/8/json"
        }
    ]
}