Subcommands (4)
Options (6)
booleanDisplay the `main` routing table
Example:
ip {{[r|route]}}booleanAdd a default route using gateway forwarding
Example:
sudo ip {{[r|route]}} {{[a|add]}} default via {{gateway_ip}}booleanDelete a static route
Example:
sudo ip {{[r|route]}} {{[d|delete]}} {{destination_ip}} dev {{ethX}}booleanShow which route will be used by the kernel to reach an IP address
Example:
ip {{[r|route]}} {{[g|get]}} {{destination_ip}}booleanDisplay a specific routing table
Example:
ip {{[r|route]}} {{[l|list]}} {{[t|table]}} {{table_number}}booleanDisplay a specific routing table
Example:
ip {{[r|route]}} {{[l|list]}} {{[t|table]}} {{table_number}}made by @shridhargupta | data from tldr-pages