LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-31-2005, 01:16 PM   #1
Moonman
Member
 
Registered: May 2004
Posts: 37

Rep: Reputation: 15
Gateway setting for dual NIC cards?


I can't find how to set a gateway for a second nic on a RH AS 2.1 system. Can anyone clue me in.

Thx,

Last edited by Moonman; 01-31-2005 at 04:56 PM.
 
Old 02-01-2005, 07:46 AM   #2
AlexJ123
LQ Newbie
 
Registered: Jan 2005
Location: South Africa
Distribution: Redhat
Posts: 11

Rep: Reputation: 0
Hi
take out the gateway entry from /etc/sysconfig/network and enter the diffrent entries into /etc/sysconfig/network-scripts/ifcfg-ethXXX where XXX is the number of the diffrent NICS

I am not to sure as I never did this but give it a go.....
Let me know if this worked
 
Old 02-01-2005, 08:58 AM   #3
Duudson
Member
 
Registered: Dec 2004
Distribution: RHEL3, FC3
Posts: 53

Rep: Reputation: 15
Why would you configure two default gateways?
 
Old 02-02-2005, 12:23 AM   #4
AlexJ123
LQ Newbie
 
Registered: Jan 2005
Location: South Africa
Distribution: Redhat
Posts: 11

Rep: Reputation: 0
If you are on only one subnet then you can use the /etc/sysconfig/network file but if you are using 2 diffrent subnets then /etc/sysconfig/network-scripts/ifcfg-ethXXX file will be the way to go
 
Old 02-02-2005, 01:28 AM   #5
Duudson
Member
 
Registered: Dec 2004
Distribution: RHEL3, FC3
Posts: 53

Rep: Reputation: 15
Default gateway is used when no other route to host is known, so basically you can have only one default gateway.
 
  


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 up routes - box with two nic cards josh_mcqueen Linux - Networking 2 07-21-2005 08:53 AM
**Help Needed for configuring Dual NIC Cards** Intel E7210 (Canterwood ES) Chipset Arc4ne Linux - Networking 4 07-16-2004 08:37 AM
configuring dual NIC cards Kris_mayco Linux - Hardware 2 08-21-2003 02:19 PM
Setting up Redhat squid gateway with dual NICs wrathyimp Linux - Networking 13 06-12-2003 11:54 PM
two nic cards configuration for gateway red1526 Linux - Networking 3 03-06-2002 04:44 PM

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

All times are GMT -5. The time now is 01:49 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