How to view routing table?

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.

  1. Using route:

    route -n
    
  2. Using ip:

    ip route show
    

On Windows:

You can use the route command in the Command Prompt.

  1. Open Command Prompt and type:
    route print
    

On macOS:

You can use the netstat command or the route command.

  1. Using netstat:

    netstat -rn
    
  2. Using route:

    route -n get default
    

These commands will display the current routing table for your system.

0 Comments

no data
Be the first to share your comment!