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.
More on Networking, SSH & Scheduling
What does `ss` show, and which flags do you use?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat happens, step by step, when you run `curl https://example.com`?AdvancedWhich curl flags are most useful for debugging?BeginnerHow do you use `dig` for DNS troubleshooting?BeginnerWhat are /etc/hosts, /etc/resolv.conf and /etc/nsswitch.conf?Intermediate