instead of host addresses.
-n, -netns <NETNS>
switches ip to the specified network namespace NETNS. Actually it just simplifies executing of:
ip netns exec NETNS ip [ OPTIONS ] OBJECT { COMMAND | help }
to
ip ‐n[etns] NETNS [ OPTIONS ] OBJECT { COMMAND | help }
-N, -Numeric
Print the number of protocol, scope, dsfield, etc directly instead of converting it to human readable name.
-a, -all
executes specified command over all objects, it depends if command supports this option.
-c[color][={always|auto|never}
Configure color output. If parameter is omitted or always, color output is enabled regardless of stdout state. If parameter is auto, stdout is checked to be a terminal before enabling color output. If parameter
is never, color output is disabled. If specified multiple times, the last one takes precedence. This flag is ignored if -json is also given.
Used color palette can be influenced by COLORFGBG environment variable (see ENVIRONMENT).
-t, -timestamp
display current time when using monitor option.
-ts, -tshort
Like -timestamp, but use shorter format.
-rc, -rcvbuf<SIZE>
Set the netlink socket receive buffer size, defaults to 1MB.
-iec print human readable rates in IEC units (e.g. 1Ki = 1024).
-br, -brief
Print only basic information in a tabular format for better readability. This option is currently only supported by ip addr show , ip link show & ip neigh show commands.
-j, -json
Output results in JavaScript Object Notation (JSON).
-p, -pretty
The default JSON format is compact and more efficient to parse but hard for most users to read. This flag adds indentation for readability.
-echo Request the kernel to send the applied configuration back.
IP ‐ COMMAND SYNTAX
OBJECT
address
‐ protocol (IP or IPv6) address on a device.
addrlabel
‐ label configuration for protocol address selection.
ioam ‐ manage IOAM namespaces and IOAM schemas.
l2tp ‐ tunnel ethernet over IP (L2TPv3).
link ‐ network device.
maddress
‐ multicast address.
monitor
‐ watch for netlink messages.
mptcp ‐ manage MPTCP path manager.
mroute ‐ multicast routing cache entry.
mrule ‐ rule in multicast routing policy database.
neighbour
‐ manage ARP or NDISC cache entries.
netns ‐ manage network namespaces.
ntable ‐ manage the neighbor cache’s operation.
route ‐ routing table entry.
rule ‐ rule in routing policy database.
stats ‐ manage and