How to check for the gateway in Ubuntu

Use the route or ip command to get default routing table for Ubuntu Linux. Open the terminal and type the following command: route -n Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         169.144.12.1    0.0.0.0         UG    0      0        0 wlan0 169.144.12.0    0.0.0.0         255.255.252.0   U     2      0        …