Show routing tables
Show routes from all tables, including policy routing tables.
ip route show table all
- tool
- linux133 commands
More linux commands
-
ip route add 10.0.0.0/8 via 192.168.1.1 dev eth0Add a static route. It is gone after a reboot.
-
ip neigh showShow the neighbour (ARP/NDP) cache with the reachability state of each entry.
-
ip -s link show eth0Show TX/RX bytes, errors and dropped packets for an interface.
-
dig +short A example.com @8.8.8.8Get A records through a specific DNS server.
-
dig +short -x 8.8.8.8Get the PTR record for an IP address.