1 .TH IP 8 "20 Dec 2011" "iproute2" "Linux"
3 ip \- show / manipulate routing, network devices, interfaces and tunnels
10 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
17 .BI "-batch " filename
22 .BR link " | " address " | " addrlabel " | " route " | " rule " | " neigh " | "\
23 ntable " | " tunnel " | " tuntap " | " maddress " | " mroute " | " mrule " | "\
24 monitor " | " xfrm " | " netns " | " l2tp " | " tcp_metrics " | " token " | "\
30 \fB\-V\fR[\fIersion\fR] |
31 \fB\-h\fR[\fIuman-readable\fR] |
32 \fB\-s\fR[\fItatistics\fR] |
33 \fB\-d\fR[\fIetails\fR] |
34 \fB\-r\fR[\fIesolve\fR] |
36 \fB\-f\fR[\fIamily\fR] {
37 .BR inet " | " inet6 " | " link " } | "
44 \fB-l\fR[\fIoops\fR] { \fBmaximum-addr-flush-attempts\fR } |
45 \fB\-o\fR[\fIneline\fR] |
46 \fB\-rc\fR[\fIvbuf\fR] [\fBsize\fR] |
47 \fB\-t\fR[\fIimestamp\fR] |
48 \fB\-ts\fR[\fIhort\fR] |
49 \fB\-n\fR[\fIetns\fR] name |
51 \fB\-c\fR[\fIolor\fR] |
52 \fB\-br\fR[\fIief\fR] |
59 .BR "\-V" , " -Version"
60 Print the version of the
65 .BR "\-h", " \-human", " \-human-readable"
66 output statistics with human readable values followed by suffix.
69 .BR "\-b", " \-batch " <FILENAME>
70 Read commands from provided file or standard input and invoke them.
71 First failure will cause termination of ip.
75 Don't terminate ip on errors in batch mode.
76 If there were any errors during execution of the commands, the application return code will be non zero.
79 .BR "\-s" , " \-stats" , " \-statistics"
80 Output more information. If the option
81 appears twice or more, the amount of information increases.
82 As a rule, the information is statistics or some time values.
85 .BR "\-d" , " \-details"
86 Output more detailed information.
89 .BR "\-l" , " \-loops " <COUNT>
90 Specify maximum number of loops the 'ip address flush' logic
91 will attempt before giving up. The default is 10.
92 Zero (0) means loop until all addresses are removed.
95 .BR "\-f" , " \-family " <FAMILY>
96 Specifies the protocol family to use. The protocol family identifier can be one of
97 .BR "inet" , " inet6" , " bridge" , " mpls"
100 If this option is not present,
101 the protocol family is guessed from other arguments. If the rest
102 of the command line does not give enough information to guess the
105 falls back to the default one, usually
110 is a special family identifier meaning that no networking protocol
121 .BR "\-family inet6" .
126 .BR "\-family bridge" .
131 .BR "\-family mpls" .
136 .BR "\-family link" .
139 .BR "\-o" , " \-oneline"
140 output each record on a single line, replacing line feeds
143 character. This is convenient when you want to count records
151 .BR "\-r" , " \-resolve"
152 use the system's name resolver to print DNS names instead of
156 .BR "\-n" , " \-netns " <NETNS>
159 to the specified network namespace
161 Actually it just simplifies executing of:
166 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
172 .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
177 executes specified command over all objects, it depends if command supports this option.
180 .BR \-c [ color ][ = { always | auto | never }
181 Configure color output. If parameter is omitted or
183 color output is enabled regardless of stdout state. If parameter is
185 stdout is checked to be a terminal before enabling color output. If parameter is
187 color output is disabled. If specified multiple times, the last one takes
188 precedence. This flag is ignored if
193 .BR "\-t" , " \-timestamp"
194 display current time when using monitor option.
197 .BR "\-ts" , " \-tshort"
200 but use shorter format.
203 .BR "\-rc" , " \-rcvbuf" <SIZE>
204 Set the netlink socket receive buffer size, defaults to 1MB.
208 print human readable rates in IEC units (e.g. 1Ki = 1024).
211 .BR "\-br" , " \-brief"
212 Print only basic information in a tabular format for better readability. This option is currently only supported by
213 .BR "ip addr show " and " ip link show " commands.
217 Output results in JavaScript Object Notation (JSON).
220 .BR "\-p", " \-pretty"
221 The default JSON format is compact and more efficient to parse but hard for most users to read.
222 This flag adds indentation for readability.
224 .SH IP - COMMAND SYNTAX
231 - protocol (IP or IPv6) address on a device.
235 - label configuration for protocol address selection.
239 - tunnel ethernet over IP (L2TPv3).
251 - watch for netlink messages.
255 - multicast routing cache entry.
259 - rule in multicast routing policy database.
263 - manage ARP or NDISC cache entries.
267 - manage network namespaces.
271 - manage the neighbor cache's operation.
275 - routing table entry.
279 - rule in routing policy database.
282 .B tcp_metrics/tcpmetrics
287 - manage tokenized interface identifiers.
295 - manage TUN/TAP devices.
299 - manage IPSec policies.
302 The names of all objects may be written in full or
303 abbreviated form, for example
305 can be abbreviated as
313 Specifies the action to perform on the object.
314 The set of possible actions depends on the object type.
315 As a rule, it is possible to
316 .BR "add" , " delete"
321 ) objects, but some objects do not allow all of these operations
322 or have some additional commands. The
324 command is available for all objects. It prints
325 out a list of available commands and argument syntax conventions.
327 If no command is given, some default command is assumed.
330 or, if the objects of this class cannot be listed,
334 Exit status is 0 if command was successful, and 1 if there is a syntax error.
335 If an error was reported by the kernel exit status is 2.
341 Shows addresses assigned to all network interfaces.
346 Shows the current neighbour table in kernel.
351 Bring up interface x.
357 Bring down interface x.
367 was written by Alexey N. Kuznetsov and added in Linux 2.2.
370 .BR ip-addrlabel (8),
376 .BR ip-neighbour (8),
381 .BR ip-tcp_metrics (8),
386 .RB "IP Command reference " ip-cref.ps
388 Report any bugs to the Network Developers mailing list
389 .B <netdev@vger.kernel.org>
390 where the development and maintenance is primarily done.
391 You do not have to be subscribed to the list to send a message there.
394 Original Manpage by Michail Litvak <mci@owl.openwall.com>