Finding your Router IP (Default Gateway IP) Using the Command Line
There are many ways to find default gateway IP in Linux. If you have the iproute2 package installed, then you may use the ip command, simply run:$ ip route show
default via 10.0.0.138 dev enp3s0
10.0.0.0/24 dev enp3s0 proto kernel scope link src 10.0.0.6
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 enp3s0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp3s0
$ netstate -rn
$ cat /proc/net/arp
traceroute google.com