]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/networkctl.xml
man: remove repeated word "the" and polish
[thirdparty/systemd.git] / man / networkctl.xml
CommitLineData
d9000fd3
ZJS
1<?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*-->
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
d9000fd3
ZJS
4
5<!--
b975b0d5 6 This file is part of systemd.
d9000fd3 7
b975b0d5 8 Copyright 2015 Zbigniew Jędrzejewski-Szmek
d9000fd3 9
b975b0d5
ZJS
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
d9000fd3 14
b975b0d5
ZJS
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
d9000fd3 19
b975b0d5
ZJS
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
d9000fd3
ZJS
22-->
23
e6de49ab 24<refentry id="networkctl" conditional='ENABLE_NETWORKD'
d9000fd3
ZJS
25 xmlns:xi="http://www.w3.org/2001/XInclude">
26
27 <refentryinfo>
28 <title>networkctl</title>
29 <productname>systemd</productname>
30
31 <authorgroup>
32 <author>
33 <contrib>Documentation</contrib>
34 <firstname>Zbigniew</firstname>
35 <surname>Jędrzejewski-Szmek</surname>
36 <email>zbyszek@in.waw.pl</email>
37 </author>
38 </authorgroup>
39 </refentryinfo>
40
41 <refmeta>
42 <refentrytitle>networkctl</refentrytitle>
43 <manvolnum>1</manvolnum>
44 </refmeta>
45
46 <refnamediv>
47 <refname>networkctl</refname>
cc98b302 48 <refpurpose>Query the status of network links</refpurpose>
d9000fd3
ZJS
49 </refnamediv>
50
51 <refsynopsisdiv>
52 <cmdsynopsis>
53 <command>networkctl</command>
54 <arg choice="opt" rep="repeat">OPTIONS</arg>
55 <arg choice="plain">COMMAND</arg>
56 <arg choice="opt" rep="repeat">LINK</arg>
57 </cmdsynopsis>
58 </refsynopsisdiv>
59
60 <refsect1>
61 <title>Description</title>
62
63 <para><command>networkctl</command> may be used to introspect the
64 state of the network links as seen by
65 <command>systemd-networkd</command>. Please refer to
66 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
1d3eaa93 67 for an introduction to the basic concepts, functionality, and
d9000fd3
ZJS
68 configuration syntax.</para>
69 </refsect1>
70
71 <refsect1>
72 <title>Options</title>
73
74 <para>The following options are understood:</para>
75
76 <variablelist>
77 <varlistentry>
78 <term>
79 <option>-a</option>
80 <option>--all</option>
81 </term>
82
83 <listitem>
84 <para>Show all links with <command>status</command>.</para>
85 </listitem>
86 </varlistentry>
87
88 <xi:include href="standard-options.xml" xpointer="help" />
89 <xi:include href="standard-options.xml" xpointer="version" />
90 <xi:include href="standard-options.xml" xpointer="no-pager" />
91
92 </variablelist>
93 </refsect1>
94
95 <refsect1>
96 <title>Commands</title>
97
98 <para>The following commands are understood:</para>
99
100 <variablelist>
101 <varlistentry>
102 <term>
103 <command>list</command>
104 </term>
105
106 <listitem>
107 <para>Show a list of existing links and their
108 status. Produces output similar to <programlisting>
109IDX LINK TYPE OPERATIONAL SETUP
110 1 lo loopback carrier unmanaged
111 2 eth0 ether routable configured
112 3 virbr0 ether no-carrier unmanaged
113 4 virbr0-nic ether off unmanaged
114
1154 links listed.</programlisting></para>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry>
120 <term>
121 <command>status</command>
122 <optional><replaceable>LINK...</replaceable></optional>
123 </term>
124
125 <listitem>
126 <para>Show information about the specified links: type,
127 state, kernel module driver, hardware and IP address,
128 configured DNS servers, etc.</para>
129
130 <para>When no links are specified, routable links are
131 shown. See also option <option>--all</option>.</para>
132
133 <para>Produces output similar to
134 <programlisting>
135● State: routable
136 Address: 10.193.76.5 on eth0
137 192.168.122.1 on virbr0
138 169.254.190.105 on eth0
139 fe80::5054:aa:bbbb:cccc on eth0
140 Gateway: 10.193.11.1 (CISCO SYSTEMS, INC.) on eth0
141 DNS: 8.8.8.8
142 8.8.4.4</programlisting></para>
143 </listitem>
144
145 </varlistentry>
146
147 <varlistentry>
148 <term>
149 <command>lldp</command>
150 </term>
151
152 <listitem>
153 <para>Show LLDP (Link Layer Discovery Protocol)
154 status.</para>
155 </listitem>
156 </varlistentry>
157 </variablelist>
158 </refsect1>
159
160 <refsect1>
161 <title>Exit status</title>
162
163 <para>On success, 0 is returned, a non-zero failure
164 code otherwise.</para>
165 </refsect1>
166
167 <refsect1>
168 <title>See Also</title>
169 <para>
170 <citerefentry><refentrytitle>systemd-networkd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
171 <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
172 <citerefentry><refentrytitle>systemd.netdev</refentrytitle><manvolnum>5</manvolnum></citerefentry>
173 </para>
174 </refsect1>
175</refentry>