ip

Linux · Network · available in the simulator

What it does

Show and configure network interfaces, addresses, and routing.

Syntax

ip [objeto] [comando]

Options and parameters

  • addr

    Subcommand: show or configure IP addresses.

    ip addr show
  • link

    Subcommand: show or configure network devices.

    ip link set eth0 up
  • route

    Subcommand: inspect or modify the routing table.

    ip route
  • neigh

    Subcommand: show the neighbor cache (ARP table).

  • -br

    Brief output in table format.

    ip -br addr
  • -c

    Colorize output.

Usage examples

  • ip addr
  • ip route
  • ip addr show
  • ip link set eth0 up
  • ip -br addr

Notes and common mistakes

  • Replaces the legacy commands ifconfig, route, and arp.
Practise ip

Related commands