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