Options (5)
booleanDisplay the `main` routing table
Example:
ip {{[r|route]}} {{[l|list]}}booleanDisplay the `main` routing table
Example:
ip {{[r|route]}} {{[l|list]}}booleanDisplay the main routing table (same as first example)
Example:
ip {{[r|route]}} {{[l|list]}} {{[t|table]}} {{main|254}}booleanList routes within a given scope
Example:
ip {{[r|route]}} {{[l|list]}} {{[s|scope]}} linkbooleanDisplay the routing cache
Example:
ip {{[r|route]}} {{[l|list]}} {{[c|cache]}}Examples (8)
Display the `main` routing table
ip [r|route] [l|list]Display the main routing table (same as first example)
ip [r|route] [l|list] [t|table] main|254Display the local routing table
ip [r|route] [l|list] [t|table] local|255Display all routing tables
ip [r|route] [l|list] [t|table] all|unspec|0List routes from a given device only
ip [r|route] [l|list] dev ethXDisplay the routing cache
ip [r|route] [l|list] [c|cache]Display only IPv6 or IPv4 routes
ip -6|-4 [r|route]made by @shridhargupta | data from tldr-pages