[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Networking Problem



Matt Perry wrote:

On Sun, 1 Aug 2004, Jonathan Barnes wrote:


Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 eth0

eth0 is assigned 10.0.0.2 and is connected to the first firewall in my network
eth1 is assigned 10.1.1.1 and is connected to my private LAN, they are both separate Realtek 8139 NIC's


I think that's your problem. The routing table doesn't have an entry for the 10.1.1.0 network so your ping responses are being sent to the default gateway, 10.0.0.1.

Take down eth1 and then check the entry for it in /etc/network/interfaces.
I have a feeling that the entry for eth1 looks the same as for eth0 and
that it needs to be fixed.  It should look like:

iface eth1 inet static
        address 10.1.1.1
        netmask 255.255.255.0
        network 10.1.1.0
        broadcast 10.1.1.255

Let me know what happens.


Strangely enough, my routing table now looks like this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.1.1.0        0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 eth0

All i can remember doing it taking down interfaces and bringing them up again. The problem hasn't changed tho.

also here is my /etc/network/interfaces

auto lo
iface lo inet loopback
> auto eth0
iface eth0 inet static
        address 10.0.0.2
        netmask 255.255.255.0
        network 10.0.0.0
        broadcast 10.0.0.255
        gateway 10.0.0.1
> auto eth1
iface eth1 inet static
        address 10.1.1.1
        netmask 255.255.255.0
        network 10.1.1.0
        broadcast 10.1.1.255

which results in:

eth0      Link encap:Ethernet  HWaddr 00:A0:0C:C4:78:53
          inet addr:10.0.0.2  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:156781 errors:0 dropped:0 overruns:0 frame:0
          TX packets:131043 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15686921 (14.9 MiB)  TX bytes:28326872 (27.0 MiB)
          Interrupt:10 Base address:0xd000

eth1      Link encap:Ethernet  HWaddr 00:05:1C:13:5C:8D
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:17535 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1682595 (1.6 MiB)  TX bytes:332159 (324.3 KiB)
          Interrupt:11 Base address:0xb800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11156 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11156 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:677759 (661.8 KiB)  TX bytes:677759 (661.8 KiB)

I think i might just have to do a rebuild and transport everything back over :( I really would like to know what it is tho, even just out of curiosity.



Reply to: