Get Router IP on Linux and Unix

There are multiple ways on how you can get your router IP on Linux operating systems. If are running a Linux Desktop Environment open a Terminal Window first. Typically it is located in Applications->System Tools->Terminal.

Get Router IP with “ip route” tool

  • Open terminal window.
  • Type “ip route” or “ip r” and press Enter.
  • Look for a line starting with “default”. It will contain your router IP address.

You can also use grep command to filter for “default” by issuing a “ip route | grep default” command.

Get Router IP with “route” tool

  • Open terminal window.
  • Type “route” and press Enter.
  • Look for a “Gateway” column. It will contain your router IP address.