- Forums
- Linux Hosting
- How Do I Change My Default Gateway Linux
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 [1327], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Mon Jan 11, 2010
1 Comments
480 Visits
Welcome to Webune
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
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
https://www.webune.com/forums/how-do-i-change-my-default-gateway-linux.html