Find Gateway on Linux

Table of Contents

For quick reference: how do I find my gateway on linux? (Needed to access your router’s web interface)

$ netstat -nr
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 wlan0
    172.17.0.0      0.0.0.0         255.255.0.0     U         0 0          0 docker0
    192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 wlan0
Tory Anderson avatar
Tory Anderson
Full-time Web App Engineer, Digital Humanist, Researcher, Computer Psychologist