Discover how the ip command lets you inspect and control Linux networking directly from the shell. 27.03.2026 | reading time: 2 min The `ip` command is the Swiss army knife for Linux networking: use it to list interfaces, assign addresses, control routes and inspect neighbor entries straight from the terminal, and gain direct control when a GUI fails. A Real Fix in Minutes Scenario: a fresh VM boots with no address on the interface and no default route; assign an address, bring the interface up and add a route with the commands and expected output shown below. ```bash sudo ip addr add 192.168.10.5/24 dev eth0 sudo ip link set dev eth0 up ip addr show eth0 ```Output: ```text 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff inet 192.168.10.5/24 brd 192.168.10.255 scope global eth0 valid_lft forever preferred_lft forever ```Then add a default gateway and verify the route: ```bash sudo ip route add default via 192.168.10.1 dev eth0 ip route show ```Output: ```text default via 192.168.10.1 dev eth0 proto static metric 100 192.168.10.0/24 dev eth0 proto kernel scope link src 192.168.10.5 ``` Unlocking Advanced Features Beyond addresses and routes, `ip` exposes link state and statistics via `ip -s link`, neighbor discovery via `ip neigh`, policy routing via `ip rule` and namespaces via `ip netns`; use `ip monitor` to watch changes live and combine options like `scope`, `proto` and `metric` for deterministic routing behavior. Tools That Pair Well `ip` is often used alongside other utilities: use `ss` to inspect socket state, `tc` to shape traffic and `ethtool` to query NIC capabilities; scripts commonly mix `ip` and these tools to automate network setup and diagnostics. Next Steps for Mastery Practice the commands on a throwaway VM, explore `ip` subcommands and namespaces, and then deepen your knowledge with structured study—consider pursuing CompTIA Linux+ or LPIC-1 and intensive exam prep at bitsandbytes.academy to turn hands-on skill into certification. Join Bits & Bytes Academy First class LINUX exam preparation. network utilities troubleshooting scripting infrastructure