Modify route table
I am setting up a new server, how can i add the default gateway route entry? what file need to be modified? Thx.
|
Kind of depends on your distro ? Its usually set in the startup scripts with some distros. You can also set it with this command:
route add default gw [ip address] man route for more details. |
If you use RedHat as distro check /etc/sysconfig/network and add GATEWAY=... to it or edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add GATEWAY=... to that file :)
|
All times are GMT -5. The time now is 07:07 PM. |