- Forums
- Networking
- How To Get Default Gateway In Linux
if you have a linux server, its often necessary to change your network settings from the command line [3499], Last Updated: Mon Jun 24, 2024
Webune Support
Sun Feb 28, 2010
0 Comments
391 Visits
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