The ip command is a powerful network management tool included in the iproute2 package and available by default in most Linux distributions. It is used to manage network interfaces, assign or delete IP addresses, view and modify routing tables, and manage the ARP cache.
Critical Caveats:
- Persistence: Changes made via the
ip command are temporary and will be lost after a system reboot. To make changes permanent, you must modify the system configuration files. - Permissions: Modifying network settings requires superuser privileges (
root or sudo).
# General syntax
ip [ OPTIONS ] OBJECT { COMMAND | help }