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"
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 link" .
123 .BR "\-o" , " \-oneline"
124 output each record on a single line, replacing line feeds
127 character. This is convenient when you want to count records
135 .BR "\-r" , " \-resolve"
136 use the system's name resolver to print DNS names instead of
140 .BR "\-n" , " \-net" , " \-netns " <NETNS>
143 to the specified network namespace
145 Actually it just simplifies executing of:
150 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
156 .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
161 executes specified command over all objects, it depends if command supports this option.
163 .SH IP - COMMAND SYNTAX
170 - protocol (IP or IPv6) address on a device.
174 - label configuration for protocol address selection.
178 - tunnel ethernet over IP (L2TPv3).
190 - watch for netlink messages.
194 - multicast routing cache entry.
198 - rule in multicast routing policy database.
202 - manage ARP or NDISC cache entries.
206 - manage network namespaces.
210 - manage the neighbor cache's operation.
214 - routing table entry.
218 - rule in routing policy database.
221 .B tcp_metrics/tcpmetrics
230 - manage TUN/TAP devices.
234 - manage IPSec policies.
237 The names of all objects may be written in full or
238 abbreviated form, for exampe
240 can be abbreviated as
248 Specifies the action to perform on the object.
249 The set of possible actions depends on the object type.
250 As a rule, it is possible to
251 .BR "add" , " delete"
256 ) objects, but some objects do not allow all of these operations
257 or have some additional commands. The
259 command is available for all objects. It prints
260 out a list of available commands and argument syntax conventions.
262 If no command is given, some default command is assumed.
265 or, if the objects of this class cannot be listed,
270 was written by Alexey N. Kuznetsov and added in Linux 2.2.
273 .BR ip-addrlabel (8),
279 .BR ip-neighbour (8),
284 .BR ip-tcp_metrics (8),
288 .RB "IP Command reference " ip-cref.ps
290 Report any bugs to the Network Developers mailing list
291 .B <netdev@vger.kernel.org>
292 where the development and maintenance is primarily done.
293 You do not have to be subscribed to the list to send a message there.
296 Original Manpage by Michail Litvak <mci@owl.openwall.com>