Originally published at: https://www.cyberciti.biz/faq/how-to-find-gateway-ip-address/
How do I find out my gateway IP for a computer or a network device that allows or controls access to another computer or network under Linux / UNIX-like operating systems? How can I find out my Linux Gateway / Router IP address using the CLI?