How Do I Change My Default Gateway Linux
RegisterLogin
How Do I Change My Default Gateway Linux
Post Description: About Changing Your Default Getaway In A Linux Server Computer It Shows You How Do I Change My Default Gateway With The Linux Shell Command Terminal Console
Tags: How, Do, I, Change, My, Default, Gateway, Linux
This Post Was Posted On Jan 11, 2010 By Webune Tutorials #3040
Post Description: About Changing Your Default Getaway In A Linux Server Computer It Shows You How Do I Change My Default Gateway With The Linux Shell Command Terminal Console
Tags: How, Do, I, Change, My, Default, Gateway, Linux
This Post Was Posted On Jan 11, 2010 By Webune Tutorials #3040
How Do I Change My Default Gateway Linux by Webune Tutorials
Webune offers Linux Dedicated Servers -
Dedicated servers is a more powerful and affective way to manage your online web content. if you wish to upgrade your current hosting to a dedicated linux server, sign up today!!!
if you have a Webune Linux Dedicated server please follow the steps below. Webune offers Redhat, Centos, Fedora and more choices, even custom installations.
To change the dafault gateway in a linux box, first you will need to login to your server as superuser. if you are unuser what your superuser account is, please contact us. otherwise continue.
now that you are logged in as root, the network configuration setting are located in the network file, this is were you can find the default gateway settings so send this command to edit the network file:
SHELL COMMAND:
nano /etc/sysconfig/network
NOTE: i am using nano as my text editor. however, if you wish, you can use vi as a substitute.
the file should look something like this:
NETWORKING=yes
HOSTNAME=host.domain.com
GATEWAY=192.168.1.1
HOSTNAME=host.domain.com
GATEWAY=192.168.1.1
as you can see from my configuration, my default gateway is set to 192.168.1.1 - now you can change it, after you have made the changes, restart your network with this commmand:
SHELL COMMAND:
/etc/init.d/network restart
done. thats it, this is how you setup your default gateway in linux/unix. as you can see, changing your default gateway is easy with these steps
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
hostman
#3829 1
question: does changing the defualt gateway on a linux box require a reboot
answer: no
thanks, i see all you have to do is restart the network interfaces
answer: no
thanks, i see all you have to do is restart the network interfaces
Apr 20, 2010 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 11:00 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3