How To Get Default Gateway In Linux

RegisterLogin
How To Get Default Gateway In Linux
Post Description: if you have a linux server, its often necessary to change your network settings from the command line
Tags: how, to, get, default, gateway, in, linux
This Post Was Posted On Feb 28, 2010 By Webune Support #3187
Welcome to Webune Support

Webune Provide Linux Dedicated Servers!!!

if you have a linux server, its often necessary to change your network settings from the command line

to show your current default gateway in linux all you have to do is send this command:

SHELL COMMAND:
route


then you will get and output that looks like this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         10.0.0.254      0.0.0.0         UG    0      0        0 eth0
 
Leave Your Comments
©2011 Webune Forums - Mon Dec 19, 2011 7:13 am
Powered by: Webune Forums V3