Re: 3 nics in linux box (iptables)

From: Jeremy (gtg120d_at_mail.gatech.edu)
Date: 04/28/05


Date: Thu, 28 Apr 2005 01:54:54 -0400

Jean-Francois Stenuit wrote:
> On Tue, 26 Apr 2005, Jeremy wrote:
>
>
>>Hello,
>>
>>I'm sure this has to be easy and I've been looking everywhere but
>>everything I've tried has come to no avail.
>>
>>I have a Fedora core 3 (2.6.11-1.14_FC3) machine with 3 nics (one
>>getting the internet(eth0) and the other two going out to two different
>>machines--a PC(eth1) and an XBOX(eth2)).
>>
>>Only eth1 gets internet--so if I put the PC or XBOX there each works
>>fine. But having either one hooked up to eth1 and the other hooked up
>>to eth2--eth2 does not get internet. The following are my files and
>>setups, hopefully I'm just doing something blantanly stupid.
>
>
> <snip>
>
>>------------------------------------------
>>eth1 config (on linux machine)
>>------------------------------------------
>>Address: 192.168.0.3
>>Subnet mask: 255.255.255.0
>>Default gateway address: $IP_OF_LINUX_BOX
>>
>>------------------------------------------
>>eth2 config (on linux machine)
>>------------------------------------------
>>Address: 192.168.10.3
>>Subnet mask: 255.255.255.0
>>Default gateway address: $IP_OF_LINUX_BOX
>
>
> First thing that come in mind : you don't need default gateway there. In
> any situation, you should only have one default gateway.
>
> Does 'netstat -rn' show only one '0.0.0.0' line ? If it displays more than
> one '0.0.0.0' destination, you're asking for trouble.
>
> It's quite unusual to find two NAT rules in an IPMASQ table. I personnaly
> never tried this. If the above does not solve your problem, drop me a note
> and I'll check the behaviour of the kernel in this particular case.
>

Thanks for responding.

Here's the output of netstat -rn
--------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags MSS W irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
128.61.me.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
0.0.0.0 128.61.me.1 0.0.0.0 UG 0 0 0 eth0

I'm not sure where the 4th entry (169.254.0.0) is from--that's the only
wierd looking thing to me. Do I need to remove it?

Thanks,
Jeremy



Relevant Pages

  • Re: Performance of NFS much lower on Linux kernel 2.6.17 then on Linux kernel 2.6.3?
    ... Linux machine to have some remote backup and storage facilities. ... A few years back I have installed a Mandrake 10.0 box with kernel ... Using exactly the same mount ... performance to and from the Mandriva box is around 8 MBytes/s. ...
    (comp.protocols.nfs)
  • Re: A proposal - binary
    ... In any licensing agreement between two ... and the kernel, so nothing about an ABI is inherantly GPL violating. ... A gateway page or vDSO provided by the hypervisor to the kernel. ...
    (Linux-Kernel)
  • Re: Cannot Set DMA via hdparm
    ... Hi Alex, ... > 2.4.28 Linux machine. ... It seems some experimental support for your chipset was added in later ... Could you try whether kernel 2.4.24 with the alim15x3 driver available ...
    (Linux-Kernel)
  • Re: Labview for Linux. File browser does not display all files.
    ... I attempted to recreate this behavior on a Linux machine here running a Kernel ... I believe that the LabVIEW 7.1.1 maintenance release/patch ... compile the LabVIEW directory (the LabVIEW mass compile command from the ...
    (comp.lang.labview)
  • Re: How to obtain a version number from a String?
    ... I know 'uname -r' would return the kernel version, ... Linux machine is through /etc/issue file. ... > prompt, then I'd suggest changing the prompt so it contains the ... > source of the strings you are trying to compare, ...
    (comp.lang.java.help)