How to get default gateway?
by ddenial from LinuxQuestions.org on (#4Z71D)
Hello All,
Assuming all configuration files have been messed-up, but you know an IP address with the subnet mask, is there a way to figure out the default gateway for that IP?
For example, I want to find out the default gateway for 192.168.122.111/24. I know in my case its 192.168.122.1, but is there a command or any other way?
Thanks


Assuming all configuration files have been messed-up, but you know an IP address with the subnet mask, is there a way to figure out the default gateway for that IP?
For example, I want to find out the default gateway for 192.168.122.111/24. I know in my case its 192.168.122.1, but is there a command or any other way?
Thanks