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! |
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. :) |
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. |
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.
|
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. |
cool. Glad its working for you.
|
All times are GMT -5. The time now is 10:26 AM. |