OS Manuals

/usr/bin/ip

IP Routing Utilities

From iproute2 7.3.0-r0 (os), captured 2026-11-05 by running ip --help (exit 255). permalink

Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
       ip [ -force ] -batch filename
where  OBJECT := { address | addrlabel | fou | help | ila | ioam | l2tp | link |
                   macsec | maddress | monitor | mptcp | mroute | mrule |
                   neighbor | neighbour | netconf | netns | nexthop | ntable |
                   ntbl | route | rule | sr | stats | tap | tcpmetrics |
                   token | tunnel | tuntap | vrf | xfrm }
       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
                    -h[uman-readable] | -iec | -j[son] | -p[retty] |
                    -f[amily] { inet | inet6 | mpls | bridge | link } |
                    -4 | -6 | -M | -B | -0 |
                    -l[oops] { maximum-addr-flush-attempts } | -echo | -br[ief] |
                    -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
                    -rc[vbuf] [size] | -n[etns] name | -N[umeric] | -a[ll] |
                    -c[olor]}
Options (26)
OptionDescriptionSource
-V, -VersionPrint the version of the ip utility and exit.man
-h, -human, -human-readableoutput statistics with human readable values followed by suffix.man
-b, -batch FILENAMERead commands from provided file or standard input and invoke them.man
-forceDon't terminate ip on errors in batch mode.man
-s, -stats, -statisticsOutput more information.man
-d, -detailsOutput more detailed information.man
-l, -loops COUNTSpecify maximum number of loops the 'ip address flush' logic will attempt before giving up.man
-f, -family FAMILYSpecifies the protocol family to use.man
-4shortcut for -family inet.man
-6shortcut for -family inet6.man
-Bshortcut for -family bridge.man
-Mshortcut for -family mpls.man
-0shortcut for -family link.man
-o, -onelineoutput each record on a single line, replacing line feeds with the '' character.man
-r, -resolveuse the system's name resolver to print DNS names instead of host addresses.man
-n, -netns NETNSswitches ip to the specified network namespace NETNS.man
-N, -NumericPrint the number of protocol, scope, dsfield, etc directly instead of converting it to human readable name.man
-a, -allexecutes specified command over all objects, it depends if command supports this option.man
-t, -timestampdisplay current time when using monitor option.man
-ts, -tshortLike -timestamp, but use shorter format.man
-rc, -rcvbuf SIZESet the netlink socket receive buffer size, defaults to 1MB.man
-iecprint human readable rates in IEC units (e.g. 1Ki = 1024).man
-br, -briefPrint only basic information in a tabular format for better readability.man
-j, -jsonOutput results in JavaScript Object Notation (JSON).man
-p, -prettyThe default JSON format is compact and more efficient to parse but hard for most users to read.man
-echoRequest the kernel to send the applied configuration back.man
Exit status (2) from the manual page
0command was successful
1there is a syntax error

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.