LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Change defualt gateway permanently (https://www.linuxquestions.org/questions/red-hat-31/change-defualt-gateway-permanently-204746/)

mrpc_cambodia 07-13-2004 11:01 PM

Change defualt gateway permanently
 
In my Redhat 9.0 linux system, i have 2 network cards. below are the configurations of my 2 network cards.

network card #1:
ip:192.168.0.72
subnet mask:255.255.255.0
gateway:192.168.0.254

network card #2:
ip:192.168.1.1
subnet mask:255.255.255.0
gateway:192.168.1.254

Everytimes i boot the system up, the default gateway for my system is always 192.168.1.254 which is taken from the configuration of my #2 network card.

I want to change the default gateway to 192.168.0.254. i can do that using "route add default gw 192.168.0.254" but after i reboot the system, all my changes get lost.

So can u please help me with this ?


Thanks ahead,


All times are GMT -5. The time now is 10:12 PM.