How do you view and manage interfaces and addresses with `ip`?
BeginnerConceptCommand-Line Tools & Diagnostics
Answer
ip -br addr # brief addresses
ip link show
ip link set eth0 up
ip addr add 10.0.1.50/24 dev eth0
ip route show
ip neigh
ip from iproute2 replaces ifconfig, route and arp. Changes made this way are not persistent; use netplan, NetworkManager or systemd-networkd.
More on Command-Line Tools & Diagnostics
How do you check if a remote port is open?BeginnerHow do you list listening ports and the processes that own them?BeginnerWhat does `ping` tell you and what does it not?BeginnerHow does traceroute work and how do you read the output?BeginnerWhat is mtr and why is it better than traceroute?IntermediateHow do you query DNS with dig and read the answer?Beginner