1 .TH IP 8 "20 Dec 2011" "iproute2" "Linux"
3 ip \- show / manipulate routing, devices, policy routing 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 |
52 \fB\-br\fR[\fIief\fR] }
58 .BR "\-V" , " -Version"
59 Print the version of the
64 .BR "\-h", " \-human", " \-human-readable"
65 output statistics with human readable values followed by suffix.
68 .BR "\-b", " \-batch " <FILENAME>
69 Read commands from provided file or standard input and invoke them.
70 First failure will cause termination of ip.
74 Don't terminate ip on errors in batch mode.
75 If there were any errors during execution of the commands, the application return code will be non zero.
78 .BR "\-s" , " \-stats" , " \-statistics"
79 Output more information. If the option
80 appears twice or more, the amount of information increases.
81 As a rule, the information is statistics or some time values.
84 .BR "\-d" , " \-details"
85 Output more detailed information.
88 .BR "\-l" , " \-loops " <COUNT>
89 Specify maximum number of loops the 'ip address flush' logic
90 will attempt before giving up. The default is 10.
91 Zero (0) means loop until all addresses are removed.
94 .BR "\-f" , " \-family " <FAMILY>
95 Specifies the protocol family to use. The protocol family identifier can be one of
96 .BR "inet" , " inet6" , " bridge" , " ipx" , " dnet" , " mpls"
99 If this option is not present,
100 the protocol family is guessed from other arguments. If the rest
101 of the command line does not give enough information to guess the
104 falls back to the default one, usually
109 is a special family identifier meaning that no networking protocol
120 .BR "\-family inet6" .
125 .BR "\-family bridge" .
130 .BR "\-family decnet" .
140 .BR "\-family mpls" .
145 .BR "\-family link" .
148 .BR "\-o" , " \-oneline"
149 output each record on a single line, replacing line feeds
152 character. This is convenient when you want to count records
160 .BR "\-r" , " \-resolve"
161 use the system's name resolver to print DNS names instead of
165 .BR "\-n" , " \-netns " <NETNS>
168 to the specified network namespace
170 Actually it just simplifies executing of:
175 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
181 .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
186 executes specified command over all objects, it depends if command supports this option.
189 .BR "\-c" , " -color"
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.
215 .SH IP - COMMAND SYNTAX
222 - protocol (IP or IPv6) address on a device.
226 - label configuration for protocol address selection.
230 - tunnel ethernet over IP (L2TPv3).
242 - watch for netlink messages.
246 - multicast routing cache entry.
250 - rule in multicast routing policy database.
254 - manage ARP or NDISC cache entries.
258 - manage network namespaces.
262 - manage the neighbor cache's operation.
266 - routing table entry.
270 - rule in routing policy database.
273 .B tcp_metrics/tcpmetrics
278 - manage tokenized interface identifiers.
286 - manage TUN/TAP devices.
290 - manage IPSec policies.
293 The names of all objects may be written in full or
294 abbreviated form, for example
296 can be abbreviated as
304 Specifies the action to perform on the object.
305 The set of possible actions depends on the object type.
306 As a rule, it is possible to
307 .BR "add" , " delete"
312 ) objects, but some objects do not allow all of these operations
313 or have some additional commands. The
315 command is available for all objects. It prints
316 out a list of available commands and argument syntax conventions.
318 If no command is given, some default command is assumed.
321 or, if the objects of this class cannot be listed,
325 Exit status is 0 if command was successful, and 1 if there is a syntax error.
326 If an error was reported by the kernel exit status is 2.
332 Shows addresses assigned to all network interfaces.
337 Shows the current neighbour table in kernel.
342 Bring up interface x.
348 Bring down interface x.
358 was written by Alexey N. Kuznetsov and added in Linux 2.2.
361 .BR ip-addrlabel (8),
367 .BR ip-neighbour (8),
372 .BR ip-tcp_metrics (8),
377 .RB "IP Command reference " ip-cref.ps
379 Report any bugs to the Network Developers mailing list
380 .B <netdev@vger.kernel.org>
381 where the development and maintenance is primarily done.
382 You do not have to be subscribed to the list to send a message there.
385 Original Manpage by Michail Litvak <mci@owl.openwall.com>