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

Routing problem with two ethernet cards?



This isn't exactly a firewall problem, but after searching through the
archives this group seemed to be the most likely place to find an
answer.

I'm having a problem configuring two ethernet cards on the same
machine (eth0 and eth1), both with public IP addresses but on
different subnets.

The first card works like a charm, but I cannot get anything to send
out of the second card. The second card apparently will *receive* some
data, but nothing is going out of it. I'm beginning to think it may be
a routing problem.

Here is what 'ifconfig' shows (IP addresses have been changed to
protect the innocent):

eth0      Link encap:Ethernet  HWaddr 00:A0:D1:E0:74:49
          inet addr:214.74.101.116  Bcast:214.74.101.255  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10893116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12493393 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3868304880 (3689.1 Mb)  TX bytes:4112061528 (3921.5 Mb)
          Interrupt:16

eth1      Link encap:Ethernet  HWaddr 00:A0:D1:E0:74:AE
          inet addr:214.74.132.20  Bcast:214.74.132.255  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:107 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6848 (6.6 Kb)  TX bytes:0 (0.0 b)
          Interrupt:17


And here is the output of 'route -n':

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
214.74.101.112  0.0.0.0         255.255.255.240 U     0      0        0 eth0
214.74.132.16   0.0.0.0         255.255.255.240 U     0      0        0 eth1
0.0.0.0         214.74.101.113  0.0.0.0         UG    0      0        0 eth0


As you can see above, eth1 has something for RX packets/bytes, but
nothing for TX. A ping to the eth0 IP address works fine, but a ping
to the eth1 address never comes back.

I've tried manually adding a gateway for eth1, ending up with the
following 'route -n' output:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
214.74.101.112  0.0.0.0         255.255.255.240 U     0      0        0 eth0
214.74.132.0    214.74.132.17   255.255.255.240 UG    0      0        0 eth1
214.74.132.16   0.0.0.0         255.255.255.240 U     0      0        0 eth1
0.0.0.0         214.74.101.113  0.0.0.0         UG    0      0        0 eth0

Obviously that didn't work though, or else I wouldn't be posting.

Can anyone see what the problem might be here? I searched for hours
trying to find sample output of a working configuration, but to no
avail. I feel like it's something simple I'm just overlooking.

Thanks,
Mike



Reply to: