welcome to wallpaperama

we help webmaster like you manage their websites by providing free answers to tech questions

today we are going to talk about how you can find the default gateway in a linux server

if you are familiar with windows, its pretty easy,

but if you have a server with only the command terminal, you don't have those fancy icons that you can click with your mouse. but that doesn't mean that windows is better, because with one simple command in the linux shell, you can find out.

here is the command you can use for finding the default gateway ip address in a linux box:

cat /etc/sysconfig/network


pretty easy right.

note: i tested this command in redhat distributions like fedora and centos.

let me know if you tried it on another distribution and if worked.

thanks