1SYSTEMD-NETWORKD-WAIT-sOyNsLtIeNmEd.-SnEeRtVwIoCrEk(d8-)waSiYtS-ToEnMlDi-nNeE.TsWeOrRvKiDc-eWAIT-ONLINE.SERVICE(8)
2
3
4

NAME

6       systemd-networkd-wait-online.service, systemd-networkd-wait-
7       online@.service, systemd-networkd-wait-online - Wait for network to
8       come online
9

SYNOPSIS

11       systemd-networkd-wait-online.service
12
13       systemd-networkd-wait-online@.service
14
15       /usr/lib/systemd/systemd-networkd-wait-online
16

DESCRIPTION

18       systemd-networkd-wait-online is a oneshot system service (see
19       systemd.service(5)), that waits for the network to be configured. By
20       default, it will wait for all links it is aware of and which are
21       managed by systemd-networkd.service(8) to be fully configured or
22       failed, and for at least one link to be online. Here, online means that
23       the link's operational state is equal or higher than "degraded". The
24       threshold can be configured by --operational-state= option.
25
26       The service systemd-networkd-wait-online.service invokes
27       systemd-networkd-wait-online without any options. Thus, it waits for
28       all managed interfaces to be configured or failed, and for at least one
29       to be online.
30
31       The service systemd-networkd-wait-online@.service takes an interface
32       name, and invokes systemd-networkd-wait-online with -i and the
33       specified interface name. Thus, wait for the specified interface to be
34       configured and online. For example,
35       systemd-networkd-wait-online@eth0.service waits for eth0 to be
36       configured by systemd-networkd and online.
37

OPTIONS

39       The following options are understood:
40
41       -i INTERFACE[:MIN_OPERSTATE[:MAX_OPERSTATE]],
42       --interface=INTERFACE[:MIN_OPERSTATE[:MAX_OPERSTATE]]
43           Network interface to wait for before deciding if the system is
44           online. This is useful when a system has several interfaces which
45           will be configured, but a particular one is necessary to access
46           some network resources. When used, all other interfaces are
47           ignored. This option may be used more than once to wait for
48           multiple network interfaces. When this option is specified multiple
49           times, then systemd-networkd-wait-online waits for all specified
50           interfaces to be online. Optionally, required minimum and maximum
51           operational states can be specified after a colon ":". Please see
52           networkctl(1) for possible operational states. If the operational
53           state is not specified here, then the value from RequiredForOnline=
54           in the corresponding .network file is used if present, and
55           "degraded" otherwise.
56
57       --ignore=INTERFACE
58           Network interfaces to be ignored when deciding if the system is
59           online. By default, only the loopback interface is ignored. This
60           option may be used more than once to ignore multiple network
61           interfaces.
62
63       -o MIN_OPERSTATE[:MAX_OPERSTATE],
64       --operational-state=MIN_OPERSTATE[:MAX_OPERSTATE]
65           Takes a minimum operational state and an optional maximum
66           operational state. Please see networkctl(1) for possible
67           operational states. If set, the specified value overrides
68           RequiredForOnline= settings in .network files. But this does not
69           override operational states specified in --interface= option.
70
71       -4, --ipv4
72           Waiting for an IPv4 address of each network interface to be
73           configured. If this option is specified with --any, then
74           systemd-networkd-wait-online exits with success when at least one
75           interface becomes online and has an IPv4 address. If the required
76           minimum operational state is below "routable", then each link (or
77           at least one link with --any) must have an IPv4 link-local or
78           routable address. If the required minimum operational state is
79           "routable", then each link must have an IPv4 routable address.
80
81           If neither --ipv4 nor --ipv6 is specified, then the value from
82           RequiredFamilyForOnline= in the corresponding .network file is used
83           if present.
84
85       -6, --ipv6
86           Waiting for an IPv6 address of each network interface to be
87           configured. If this option is specified with --any, then
88           systemd-networkd-wait-online exits with success when at least one
89           interface becomes online and has an IPv6 address. If the required
90           minimum operational state is below "routable", then each link (or
91           at least one link with --any) must have an IPv6 link-local or
92           routable address. If the required minimum operational state is
93           "routable", then each link must have an IPv6 routable address.
94
95           If neither --ipv4 nor --ipv6 is specified, then the value from
96           RequiredFamilyForOnline= in the corresponding .network file is used
97           if present.
98
99       --any
100           Even if several interfaces are in configuring state,
101           systemd-networkd-wait-online exits with success when at least one
102           interface becomes online. When this option is specified with
103           --interface=, then systemd-networkd-wait-online waits for one of
104           the specified interfaces to be online. This option is useful when
105           some interfaces may not have carrier on boot.
106
107       --timeout=SECS
108           Fail the service if the network is not online by the time the
109           timeout elapses. A timeout of 0 disables the timeout. Defaults to
110           120 seconds.
111
112       -q, --quiet
113           Suppress log messages.
114
115       -h, --help
116           Print a short help text and exit.
117
118       --version
119           Print a short version string and exit.
120

SEE ALSO

122       systemd(1), systemd.service(5), systemd-networkd.service(8),
123       networkctl(1)
124
125
126
127systemd 254                            SYSTEMD-NETWORKD-WAIT-ONLINE.SERVICE(8)
Impressum