Sobes.tech
Junior — Middle

Have you used the ip command to perform any tasks?

sobes.tech AI

Answer from AI

The ip command is used for managing network interfaces and routes in Linux. For example, it can be used to view current IP addresses of interfaces (ip addr show), add or remove IP addresses, enable or disable interfaces (ip link set dev eth0 up/down), and configure routes (ip route add). It is a modern replacement for the outdated ifconfig and route commands.

Example output of interface IP addresses:

ip addr show

Example of adding an IP address to an interface:

sudo ip addr add 192.168.1.100/24 dev eth0

Thus, the ip command allows flexible management of network configuration at the kernel level.