- Forums
- Linux Systems
- Network Tutorial - How To Find Default Gateway In Linux
this post will show you how to find default gateway in linux server if you want to know what command to use [3065], Last Updated: Sat May 18, 2024
wallpaperama
Thu Jan 14, 2010
0 Comments
2879 Visits
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