Linux:
You'll need to open a Terminal. Depending on your Linux distribution, it can be located in the menu items at the top, or at the bottom of your screen. In this example, we will use Fedora. Click Applications > System Tools > Terminal.
When terminal is open, type the following command: ip route | grep default
The output of this should look something like the following:
joe$ ip route | grep default
default via 192.168.1.1 dev eth0 proto static
In this example, again, 192.168.1.1 is your default gateway (router) IP address.
For more information about this topic how to Find Your Gateway IP(linux/win/osx)how to Find Your Gateway IP(linux/win/osx).
