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] |
35 \fB\-n\fR[\fIetns\fR] name |
42 .BR "\-V" , " -Version"
43 Print the version of the
48 .BR "\-b", " \-batch " <FILENAME>
49 Read commands from provided file or standard input and invoke them.
50 First failure will cause termination of ip.
54 Don't terminate ip on errors in batch mode.
55 If there were any errors during execution of the commands, the application return code will be non zero.
58 .BR "\-s" , " \-stats" , " \-statistics"
59 Output more information. If the option
60 appears twice or more, the amount of information increases.
61 As a rule, the information is statistics or some time values.
64 .BR "\-d" , " \-details"
65 Output more detailed information.
68 .BR "\-l" , " \-loops " <COUNT>
69 Specify maximum number of loops the 'ip addr flush' logic
70 will attempt before giving up. The default is 10.
71 Zero (0) means loop until all addresses are removed.
74 .BR "\-f" , " \-family " <FAMILY>
75 Specifies the protocol family to use. The protocol family identifier can be one of
76 .BR "inet" , " inet6" , " bridge" , " ipx" , " dnet" , " mpls"
79 If this option is not present,
80 the protocol family is guessed from other arguments. If the rest
81 of the command line does not give enough information to guess the
84 falls back to the default one, usually
89 is a special family identifier meaning that no networking protocol
100 .BR "\-family inet6" .
105 .BR "\-family bridge" .
110 .BR "\-family decnet" .
120 .BR "\-family mpls" .
125 .BR "\-family link" .
128 .BR "\-o" , " \-oneline"
129 output each record on a single line, replacing line feeds
132 character. This is convenient when you want to count records
140 .BR "\-r" , " \-resolve"
141 use the system's name resolver to print DNS names instead of
145 .BR "\-n" , " \-net" , " \-netns " <NETNS>
148 to the specified network namespace
150 Actually it just simplifies executing of:
155 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
161 .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
166 executes specified command over all objects, it depends if command supports this option.
168 .SH IP - COMMAND SYNTAX
175 - protocol (IP or IPv6) address on a device.
179 - label configuration for protocol address selection.
183 - tunnel ethernet over IP (L2TPv3).
195 - watch for netlink messages.
199 - multicast routing cache entry.
203 - rule in multicast routing policy database.
207 - manage ARP or NDISC cache entries.
211 - manage network namespaces.
215 - manage the neighbor cache's operation.
219 - routing table entry.
223 - rule in routing policy database.
226 .B tcp_metrics/tcpmetrics
235 - manage TUN/TAP devices.
239 - manage IPSec policies.
242 The names of all objects may be written in full or
243 abbreviated form, for exampe
245 can be abbreviated as
253 Specifies the action to perform on the object.
254 The set of possible actions depends on the object type.
255 As a rule, it is possible to
256 .BR "add" , " delete"
261 ) objects, but some objects do not allow all of these operations
262 or have some additional commands. The
264 command is available for all objects. It prints
265 out a list of available commands and argument syntax conventions.
267 If no command is given, some default command is assumed.
270 or, if the objects of this class cannot be listed,
275 was written by Alexey N. Kuznetsov and added in Linux 2.2.
278 .BR ip-addrlabel (8),
284 .BR ip-neighbour (8),
289 .BR ip-tcp_metrics (8),
293 .RB "IP Command reference " ip-cref.ps
295 Report any bugs to the Network Developers mailing list
296 .B <netdev@vger.kernel.org>
297 where the development and maintenance is primarily done.
298 You do not have to be subscribed to the list to send a message there.
301 Original Manpage by Michail Litvak <mci@owl.openwall.com>