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-online -
7       Wait for network to come online
8

SYNOPSIS

10       systemd-networkd-wait-online.service
11
12       /usr/lib/systemd/systemd-networkd-wait-online
13

DESCRIPTION

15       systemd-networkd-wait-online is a oneshot system service (see
16       systemd.service(5)), that waits for the network to be configured. By
17       default, it will wait for all links it is aware of and which are
18       managed by systemd-networkd.service(8) to be fully configured or
19       failed, and for at least one link to be online. Here, online means that
20       the link's operational state is equal or higher than "degraded". The
21       threshold can be configured by --operational-state= option.
22

OPTIONS

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

SEE ALSO

107       systemd(1), systemd.service(5), systemd-networkd.service(8),
108       networkctl(1)
109
110
111
112systemd 250                            SYSTEMD-NETWORKD-WAIT-ONLINE.SERVICE(8)
Impressum