1NETWORKCTL(1)                     networkctl                     NETWORKCTL(1)
2
3
4

NAME

6       networkctl - Query the status of network links
7

SYNOPSIS

9       networkctl [OPTIONS...] COMMAND [LINK...]
10

DESCRIPTION

12       networkctl may be used to introspect the state of the network links as
13       seen by systemd-networkd. Please refer to systemd-networkd.service(8)
14       for an introduction to the basic concepts, functionality, and
15       configuration syntax.
16

COMMANDS

18       The following commands are understood:
19
20       list [PATTERN...]
21           Show a list of existing links and their status. If one ore more
22           PATTERNs are specified, only links matching one of them are shown.
23           If no further arguments are specified shows all links, otherwise
24           just the specified links. Produces output similar to:
25
26               IDX LINK         TYPE     OPERATIONAL SETUP
27                 1 lo           loopback carrier     unmanaged
28                 2 eth0         ether    routable    configured
29                 3 virbr0       ether    no-carrier  unmanaged
30                 4 virbr0-nic   ether    off         unmanaged
31
32               4 links listed.
33
34           The operational status is one of the following:
35
36           missing
37               the device is missing
38
39           off
40               the device is powered down
41
42           no-carrier
43               the device is powered up, but it does not yet have a carrier
44
45           dormant
46               the device has a carrier, but is not yet ready for normal
47               traffic
48
49           degraded-carrier
50               for bond or bridge master, one of the bonding or bridge slave
51               network interfaces is in off, no-carrier, or dormant state
52
53           carrier
54               the link has a carrier, or for bond or bridge master, all
55               bonding or bridge slave network interfaces are enslaved to the
56               master
57
58           degraded
59               the link has carrier and addresses valid on the local link
60               configured
61
62           enslaved
63               the link has carrier and is enslaved to bond or bridge master
64               network interface
65
66           routable
67               the link has carrier and routable address configured
68
69           The setup status is one of the following:
70
71           pending
72               udev is still processing the link, we don't yet know if we will
73               manage it
74
75           failed
76               networkd failed to manage the link
77
78           configuring
79               in the process of retrieving configuration or configuring the
80               link
81
82           configured
83               link configured successfully
84
85           unmanaged
86               networkd is not handling the link
87
88           linger
89               the link is gone, but has not yet been dropped by networkd
90
91
92       status [PATTERN...]
93           Show information about the specified links: type, state, kernel
94           module driver, hardware and IP address, configured DNS servers,
95           etc. If one ore more PATTERNs are specified, only links matching
96           one of them are shown.
97
98           When no links are specified, an overall network status is shown.
99           Also see the option --all.
100
101           Produces output similar to:
102
103               ●      State: routable
104                    Address: 10.193.76.5 on eth0
105                             192.168.122.1 on virbr0
106                             169.254.190.105 on eth0
107                             fe80::5054:aa:bbbb:cccc on eth0
108                    Gateway: 10.193.11.1 (CISCO SYSTEMS, INC.) on eth0
109                        DNS: 8.8.8.8
110                             8.8.4.4
111
112       lldp [PATTERN...]
113           Show discovered LLDP (Link Layer Discovery Protocol) neighbors. If
114           one or more PATTERNs are specified only neighbors on those
115           interfaces are shown. Otherwise shows discovered neighbors on all
116           interfaces. Note that for this feature to work, LLDP= must be
117           turned on for the specific interface, see systemd.network(5) for
118           details.
119
120           Produces output similar to:
121
122               LINK             CHASSIS ID        SYSTEM NAME      CAPS        PORT ID           PORT DESCRIPTION
123               enp0s25          00:e0:4c:00:00:00 GS1900           ..b........ 2                 Port #2
124
125               Capability Flags:
126               o - Other; p - Repeater;  b - Bridge; w - WLAN Access Point; r - Router;
127               t - Telephone; d - DOCSIS cable device; a - Station; c - Customer VLAN;
128               s - Service VLAN, m - Two-port MAC Relay (TPMR)
129
130               1 neighbors listed.
131
132       label
133           Show numerical address labels that can be used for address
134           selection. This is the same information that ip-addrlabel(8) shows.
135           See RFC 3484[1] for a discussion of address labels.
136
137           Produces output similar to:
138
139               Prefix/Prefixlen                          Label
140                       ::/0                                  1
141                   fc00::/7                                  5
142                   fec0::/10                                11
143                   2002::/16                                 2
144                   3ffe::/16                                12
145                2001:10::/28                                 7
146                   2001::/32                                 6
147               ::ffff:0.0.0.0/96                             4
148                       ::/96                                 3
149                      ::1/128                                0
150
151       delete DEVICE...
152           Deletes virtual netdevs. Takes interface name or index number.
153
154       up DEVICE...
155           Bring devices up. Takes interface name or index number.
156
157       down DEVICE...
158           Bring devices down. Takes interface name or index number.
159
160       renew DEVICE...
161           Renew dynamic configurations e.g. addresses received from DHCP
162           server. Takes interface name or index number.
163
164       forcerenew DEVICE...
165           Send a FORCERENEW message to all connected clients, triggering DHCP
166           reconfiguration. Takes interface name or index number.
167
168       reconfigure DEVICE...
169           Reconfigure network interfaces. Takes interface name or index
170           number. Note that this does not reload .netdev or .network
171           corresponding to the specified interface. So, if you edit config
172           files, it is necessary to call networkctl reload first to apply new
173           settings.
174
175       reload
176           Reload .netdev and .network files. If a new .netdev file is found,
177           then the corresponding netdev is created. Note that even if an
178           existing .netdev is modified or removed, systemd-networkd does not
179           update or remove the netdev. If a new, modified or removed .network
180           file is found, then all interfaces which match the file are
181           reconfigured.
182

OPTIONS

184       The following options are understood:
185
186       -a --all
187           Show all links with status.
188
189       -s --stats
190           Show link statistics with status.
191
192       -l, --full
193           Do not ellipsize the output.
194
195       -n, --lines=
196           When used with status, controls the number of journal lines to
197           show, counting from the most recent ones. Takes a positive integer
198           argument. Defaults to 10.
199
200       -h, --help
201           Print a short help text and exit.
202
203       --version
204           Print a short version string and exit.
205
206       --no-legend
207           Do not print the legend, i.e. column headers and the footer with
208           hints.
209
210       --no-pager
211           Do not pipe output into a pager.
212

EXIT STATUS

214       On success, 0 is returned, a non-zero failure code otherwise.
215

SEE ALSO

217       systemd-networkd.service(8), systemd.network(5), systemd.netdev(5),
218       ip(8)
219

NOTES

221        1. RFC 3484
222           https://tools.ietf.org/html/rfc3484
223
224
225
226systemd 248                                                      NETWORKCTL(1)
Impressum