To view the routing table on a system, you can use the following commands depending on your operating system:
On Linux:
You can use the route command or the ip command.
-
Using
route:route -n -
Using
ip:ip route show
On Windows:
You can use the route command in the Command Prompt.
- Open Command Prompt and type:
route print
On macOS:
You can use the netstat command or the route command.
-
Using
netstat:netstat -rn -
Using
route:route -n get default
These commands will display the current routing table for your system.
