How To Configure Default Gateway In Linux

RegisterLogin
How To Configure Default Gateway In Linux
Post Description: f you have a linux server, its often necessary to change your network settings from the command line
Tags: how, to, configure, default, gateway, in, linux
This Post Was Posted On Feb 28, 2010 By Webune Support #3185
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

so to change your default gateway from the shell terminal console, you can use the route command, for example, lets say i want to set my default gateway to 192.168.1.1 i would send this command:

route add default gw 192.168.1.1


now restart your network for the changes to take affect

/etc/init.d/network restart


done

hope that helps
Leave Your Comments
©2012 Webune Forums - Sun Dec 16, 2012 12:10 pm
Powered by: Webune Forums V3