Show routing tables

Show routes from all tables, including policy routing tables.

ip route show table all

tool
linux133 commands
tags
linuxnetwork

More linux commands

  • ip route add 10.0.0.0/8 via 192.168.1.1 dev eth0

    Add a static route. It is gone after a reboot.

  • ip neigh show

    Show the neighbour (ARP/NDP) cache with the reachability state of each entry.

  • ip -s link show eth0

    Show TX/RX bytes, errors and dropped packets for an interface.

  • dig +short A example.com @8.8.8.8

    Get A records through a specific DNS server.

  • dig +short -x 8.8.8.8

    Get the PTR record for an IP address.

all 133 linux commands