Linux - Command to find gateway ip, How to find gateway ip address of my machine?

Command to find gateway ip

To find gateway IP address
netstat -ar
/sbin/route
Both the command will print the same result. Output:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         192.168.1.10     0.0.0.0        UG    0      0        0 eth0
here the default gateway Ip address is 192.168.1.10

The topic on Linux - Command to find gateway ip is posted by - Ravi

Hope you have enjoyed, Linux - Command to find gateway ipThanks for your time

Tech Bluff