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 " | " ipx " | " dnet " | " 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" , " ipx" , " dnet" , " 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 decnet" .
141 .BR "\-family mpls" .
146 .BR "\-family link" .
149 .BR "\-o" , " \-oneline"
150 output each record on a single line, replacing line feeds
153 character. This is convenient when you want to count records
161 .BR "\-r" , " \-resolve"
162 use the system's name resolver to print DNS names instead of
166 .BR "\-n" , " \-netns " <NETNS>
169 to the specified network namespace
171 Actually it just simplifies executing of:
176 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
182 .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
187 executes specified command over all objects, it depends if command supports this option.
190 .BR "\-c" , " -color"
194 .BR "\-t" , " \-timestamp"
195 display current time when using monitor option.
198 .BR "\-ts" , " \-tshort"
201 but use shorter format.
204 .BR "\-rc" , " \-rcvbuf" <SIZE>
205 Set the netlink socket receive buffer size, defaults to 1MB.
209 print human readable rates in IEC units (e.g. 1Ki = 1024).
212 .BR "\-br" , " \-brief"
213 Print only basic information in a tabular format for better readability. This option is currently only supported by
214 .BR "ip addr show " and " ip link show " commands.
218 Output results in JavaScript Object Notation (JSON).
221 .BR "\-p", " \-pretty"
222 The default JSON format is compact and more efficient to parse but hard for most users to read.
223 This flag adds indentation for readability.
225 .SH IP - COMMAND SYNTAX
232 - protocol (IP or IPv6) address on a device.
236 - label configuration for protocol address selection.
240 - tunnel ethernet over IP (L2TPv3).
252 - watch for netlink messages.
256 - multicast routing cache entry.
260 - rule in multicast routing policy database.
264 - manage ARP or NDISC cache entries.
268 - manage network namespaces.
272 - manage the neighbor cache's operation.
276 - routing table entry.
280 - rule in routing policy database.
283 .B tcp_metrics/tcpmetrics
288 - manage tokenized interface identifiers.
296 - manage TUN/TAP devices.
300 - manage IPSec policies.
303 The names of all objects may be written in full or
304 abbreviated form, for example
306 can be abbreviated as
314 Specifies the action to perform on the object.
315 The set of possible actions depends on the object type.
316 As a rule, it is possible to
317 .BR "add" , " delete"
322 ) objects, but some objects do not allow all of these operations
323 or have some additional commands. The
325 command is available for all objects. It prints
326 out a list of available commands and argument syntax conventions.
328 If no command is given, some default command is assumed.
331 or, if the objects of this class cannot be listed,
335 Exit status is 0 if command was successful, and 1 if there is a syntax error.
336 If an error was reported by the kernel exit status is 2.
342 Shows addresses assigned to all network interfaces.
347 Shows the current neighbour table in kernel.
352 Bring up interface x.
358 Bring down interface x.
368 was written by Alexey N. Kuznetsov and added in Linux 2.2.
371 .BR ip-addrlabel (8),
377 .BR ip-neighbour (8),
382 .BR ip-tcp_metrics (8),
387 .RB "IP Command reference " ip-cref.ps
389 Report any bugs to the Network Developers mailing list
390 .B <netdev@vger.kernel.org>
391 where the development and maintenance is primarily done.
392 You do not have to be subscribed to the list to send a message there.
395 Original Manpage by Michail Litvak <mci@owl.openwall.com>