Default Gateway Linux
- Forums
- Linux Hosting
- Default Gateway Linux
we will show you what command to use in your linux shell terminal to setup your default gateway should you need to change it. setting up the network configuration is pretty strait forward and the command for changing your network default gateway ip addres [1420], Last Updated: Mon Jun 24, 2024
Webune Support
Sun May 02, 2010
2 Comments
668 Visits
if you just purchased a linux dedicated linud with Webune we will show you what command to use in your linux shell terminal to setup your default gateway should you need to change it. setting up the network configuration is pretty strait forward and the command for changing your network default gateway ip address is very easy, just send this command when you are logged in as root:
# route add default gw 192.168.1.1
in the example above, we added 192.168.1.1 our out default gateway,
now you can just restart your network for the changes to take affect
# /etc/init.d/network restart
/etc/sysconfig/network-scripts/ifcfg-eth0