Linux networking · Interfaces and routes
Show the routing table
List routes, including the default gateway.
ip route
Official Linux networking documentation
More interfaces and routes commands
- Show IP addresses
- Show interface state
- Find which route a destination uses
- Find your public IP address
- Show the ARP table
- Add an IP address temporarily
All interfaces and routes commands · Linux networking cheatsheet