Interview Prep/Networking/Command-Line Tools & Diagnostics

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.

All Networking questions Roadmap: Networking for DevOps

More on Command-Line Tools & Diagnostics