LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-13-2004, 11:01 PM   #1
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
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,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the default gateway permanently hcclnoodles Linux - Newbie 5 09-26-2005 04:15 AM
How to change defualt gateway interface banner Linux - Networking 1 05-08-2005 11:47 AM
can't change tcp_sack permanently kentri9 Linux - Networking 1 10-30-2004 05:20 PM
adobe acrobat: change defualt print script true_atlantis Linux - Software 2 10-11-2004 03:28 AM
Setting gateway permanently through console on MD9.2 RyanAT Linux - Newbie 1 11-26-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration