How to determine your gateway / router IP

You can use the route command to determine your gateway (router) IP:

me@pc ~ $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    2      0        0 eth0       UG    0      0        0 lo   U     0      0        0 eth0

Reference: How do I find out my Linux gateway / router IP address?

Last modified: 12/07/2013 Tags:

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top