LinuxCommandLibrary

ip-route-show

Display subcommand for IP Routing table management.

TLDR

Display the routing table

$ ip route show
copy


Display the main routing table (same as first example)
$ ip route show [main|254]
copy


Display the local routing table
$ ip route show table [local|255]
copy


Display all routing tables
$ ip route show table [all|unspec|0]
copy


List routes from a given device only
$ ip route show dev [eth0]
copy


List routes within a given scope
$ ip route show scope link
copy


Display the routing cache
$ ip route show cache
copy


Display only IPv6 or IPv4 routes
$ ip [-6|-4] route show
copy

Copied to clipboard