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. |