Show Default Gateway In Linux

RegisterLogin
Show Default Gateway In Linux
Post Description: to show your current default gateway in linux all you have to do is send this command
Tags: show, default, gateway, in, linux
This Post Was Posted On Feb 28, 2010 By Webune Support #3186
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
coud
#3830 1
how do you show your default gateway in the command line
Apr 20, 2010 Reply Report abuse
©2012 Webune Forums - Wed Dec 12, 2012 11:58 pm
Powered by: Webune Forums V3