1NETWORKCTL(1) networkctl NETWORKCTL(1)
2
3
4
6 networkctl - Query the status of network links
7
9 networkctl [OPTIONS...] COMMAND [LINK...]
10
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 the basic concepts, functionality, and
15 configuration syntax.
16
18 The following options are understood:
19
20 -a --all
21 Show all links with status.
22
23 -h, --help
24 Print a short help text and exit.
25
26 --version
27 Print a short version string and exit.
28
29 --no-pager
30 Do not pipe output into a pager.
31
33 The following commands are understood:
34
35 list
36 Show a list of existing links and their status. Produces output
37 similar to
38
39 IDX LINK TYPE OPERATIONAL SETUP
40 1 lo loopback carrier unmanaged
41 2 eth0 ether routable configured
42 3 virbr0 ether no-carrier unmanaged
43 4 virbr0-nic ether off unmanaged
44
45 4 links listed.
46
47 status [LINK...]
48 Show information about the specified links: type, state, kernel
49 module driver, hardware and IP address, configured DNS servers,
50 etc.
51
52 When no links are specified, routable links are shown. See also
53 option --all.
54
55 Produces output similar to
56
57 ● State: routable
58 Address: 10.193.76.5 on eth0
59 192.168.122.1 on virbr0
60 169.254.190.105 on eth0
61 fe80::5054:aa:bbbb:cccc on eth0
62 Gateway: 10.193.11.1 (CISCO SYSTEMS, INC.) on eth0
63 DNS: 8.8.8.8
64 8.8.4.4
65
66 lldp
67 Show LLDP (Link Layer Discovery Protocol) status.
68
70 On success, 0 is returned, a non-zero failure code otherwise.
71
73 systemd-networkd.service(8), systemd.network(5), systemd.netdev(5)
74
75
76
77systemd 219 NETWORKCTL(1)