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 " | " addr " | " addrlabel " | " route " | " rule " | " neigh " | "\
23 ntable " | " tunnel " | " tuntap " | " maddr " | " mroute " | " mrule " | "\
24 monitor " | " xfrm " | " netns " | " l2tp " | " tcp_metrics " }"
29 \fB\-V\fR[\fIersion\fR] |
30 \fB\-s\fR[\fItatistics\fR] |
31 \fB\-r\fR[\fIesolve\fR] |
32 \fB\-f\fR[\fIamily\fR] {
33 .BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
34 \fB\-o\fR[\fIneline\fR] }
40 .BR "\-V" , " -Version"
41 Print the version of the
46 .BR "\-b", " \-batch " <FILENAME>
47 Read commands from provided file or standard input and invoke them.
48 First failure will cause termination of ip.
52 Don't terminate ip on errors in batch mode.
53 If there were any errors during execution of the commands, the application return code will be non zero.
56 .BR "\-s" , " \-stats" , " \-statistics"
57 Output more information. If the option
58 appears twice or more, the amount of information increases.
59 As a rule, the information is statistics or some time values.
62 .BR "\-d" , " \-details"
63 Output more detailed information.
66 .BR "\-l" , " \-loops " <COUNT>
67 Specify maximum number of loops the 'ip addr flush' logic
68 will attempt before giving up. The default is 10.
69 Zero (0) means loop until all addresses are removed.
72 .BR "\-f" , " \-family " <FAMILY>
73 Specifies the protocol family to use. The protocol family identifier can be one of
74 .BR "inet" , " inet6" , " bridge" , " ipx" , " dnet"
77 If this option is not present,
78 the protocol family is guessed from other arguments. If the rest
79 of the command line does not give enough information to guess the
82 falls back to the default one, usually
87 is a special family identifier meaning that no networking protocol
98 .BR "\-family inet6" .
103 .BR "\-family bridge" .
108 .BR "\-family decnet" .
118 .BR "\-family link" .
121 .BR "\-o" , " \-oneline"
122 output each record on a single line, replacing line feeds
125 character. This is convenient when you want to count records
133 .BR "\-r" , " \-resolve"
134 use the system's name resolver to print DNS names instead of
137 .SH IP - COMMAND SYNTAX
144 - protocol (IP or IPv6) address on a device.
148 - label configuration for protocol address selection.
152 - tunnel ethernet over IP (L2TPv3).
164 - watch for netlink messages.
168 - multicast routing cache entry.
172 - rule in multicast routing policy database.
176 - manage ARP or NDISC cache entries.
180 - manage network namespaces.
184 - manage the neighbor cache's operation.
188 - routing table entry.
192 - rule in routing policy database.
195 .B tcp_metrics/tcpmetrics
204 - manage TUN/TAP devices.
208 - manage IPSec policies.
211 The names of all objects may be written in full or
212 abbreviated form, for exampe
214 can be abbreviated as
222 Specifies the action to perform on the object.
223 The set of possible actions depends on the object type.
224 As a rule, it is possible to
225 .BR "add" , " delete"
230 ) objects, but some objects do not allow all of these operations
231 or have some additional commands. The
233 command is available for all objects. It prints
234 out a list of available commands and argument syntax conventions.
236 If no command is given, some default command is assumed.
239 or, if the objects of this class cannot be listed,
244 was written by Alexey N. Kuznetsov and added in Linux 2.2.
247 .BR ip-addrlabel (8),
253 .BR ip-neighbour (8),
258 .BR ip-tcp_metrics (8),
262 .RB "IP Command reference " ip-cref.ps
264 Report any bugs to the Network Developers mailing list
265 .B <netdev@vger.kernel.org>
266 where the development and maintenance is primarily done.
267 You do not have to be subscribed to the list to send a message there.
270 Original Manpage by Michail Litvak <mci@owl.openwall.com>