Interview Prep/Linux/Networking, SSH & Scheduling

Which `ip` commands replace ifconfig, route and arp?

BeginnerConceptNetworking, SSH & Scheduling
Answer
ip -br addr            # interfaces and IPs (brief)
ip link set eth0 up
ip addr add 10.0.1.10/24 dev eth0
ip route               # routing table
ip route get 8.8.8.8   # which route/interface/source IP would be used
ip neigh               # ARP/neighbour table

ifconfig, route and arp come from the deprecated net-tools package. Changes made with ip are not persistent; use netplan, NetworkManager (nmcli) or systemd-networkd for that.

All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling