Definition:

  • show / manipulate routing, network devices, interfaces and tunnels
  • example: ip link set eth1 up/down

Synopsis:

  • ip [ OPTIONS ] OBJECT { COMMAND | help }
  • ip [ -force ] -batch filename

List of objects:

  • link
    • set
  • address
  • | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm | netns | l2tp | tcp_metrics | token | macsec | vrf | mptcp | ioam }

List of OPTIONS:

  • { -V[ersion]
  • | -h[uman-readable]
  • | -s[tatistics]
  • | -d[etails] | -r[esolve] | -iec | -f[amily] { inet | inet6 | link } | -4 | -6 | -B | -0 | -l[oops] { maximum-addr-flush-attempts } | -o[neline] | -rc[vbuf] [size] | -t[imestamp] | -ts[hort] | -n[etns] name | -N[umeric] | -a[ll] | -c[olor] | -br[ief] | -j[son] | -p[retty] }

List of command

  • add, delete and show (or list ) objects, but some objects do not allow all of these operations or have some additional commands
  • help is availble for all