LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2005, 10:40 AM   #1
jschoolc
LQ Newbie
 
Registered: Aug 2005
Location: USA
Distribution: Fedora Core 3
Posts: 5

Rep: Reputation: 0
Triple-homed default card?


Hi all,

I'm trying to set up a small cluster of FC3 machines to perform some protocol research. Each of the machines has three network cards, eth0, eth1 and eth2.

On every computer, eth0 is physically connected to a NAT router, and uses an assigned IP address (no DHCP). eth1 & eth2 are connected to isolated internal networks.

My issue:
On some computers, when I try and ping an outside IP address (accessible via the router), I have no issues. On others, however, ping tries to use eth1 or eth2, and of course can't find the address since these networks are isolated - I get a "Destination Host Unreachable" error. If I try to specify the interface using ping -I eth0, I get "Operation not permitted".

Basically, the big problem with this is that I'm trying to download code from an external CVS, and on the computers that can't ping the server, I can't connect to CVS either.

How do I specifiy which ethernet card to use as default? What am I missing here?

Thanks!
 
Old 08-08-2005, 01:54 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You're missing the kernel routing table.

As root, type 'route' to see your existing table. Make the ones that don't work look like the ones that do.
 
Old 08-08-2005, 03:45 PM   #3
jschoolc
LQ Newbie
 
Registered: Aug 2005
Location: USA
Distribution: Fedora Core 3
Posts: 5

Original Poster
Rep: Reputation: 0
Yeah, that solves it. Thanks!

How do I make the changes to the kernel routing table global and permanent? It reverts every time I reboot.
 
Old 08-08-2005, 03:47 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Honestly, I'm not sure how Fedora has its init scripts structured. If you have an /etc/rc.local or /etc/rc.d/rc.local or something along those lines, try putting it at the end of it.
 
Old 08-08-2005, 05:07 PM   #5
jschoolc
LQ Newbie
 
Registered: Aug 2005
Location: USA
Distribution: Fedora Core 3
Posts: 5

Original Poster
Rep: Reputation: 0
I ended up altering these files:

/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth2

so that eth1 & eth2 no longer have a specified gateway. Problem solved.
 
Old 08-08-2005, 08:37 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
cool. Glad its working for you.
 
  


Reply



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
DNS trouble w/ triple-homed box psychobyte Linux - Networking 1 11-28-2005 04:07 PM
Triple-homed default interface? jschoolc Linux - Newbie 3 08-08-2005 04:03 PM
Multi homed gateway nukenstien Linux - Networking 4 02-10-2005 10:07 AM
Dual-homed machine gubak Linux - Newbie 4 07-28-2004 01:53 AM
How do I change the default splash screen for Red Hat 9.0?? Triple boot ques. also. viper770 Linux - Newbie 2 03-17-2004 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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