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

Re: Routing problem with two ethernet cards?



Mike Richards schrieb:
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

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.

Hello,

you can't have two default gateways. So you will not reach the whole Internet over eth1. But if you just want to reach IP's with 214.74.132.X over eth1, then your routingtable should look like this:

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
214.74.132.0    214.74.132.17   255.255.255.0   UG    0      0       0 eth1
0.0.0.0         214.74.101.113  0.0.0.0         UG    0      0       0 eth0

With your line:
214.74.132.0    214.74.132.17   255.255.255.240 UG    0      0        0 eth1
you would just reach IP's in range 214.74.132.0 - 214.74.132.15; you wouldn't even reach your gateway. The correct line for that subnet is:
214.74.132.16   214.74.132.17   255.255.255.240 UG    0      0        0 eth1
you can reach IP's in range 214.74.132.16 - 214.74.132.31 with this line


Hope that helps!

Regards
Mirco


--
Mirco Sippel                          ,= ,-_-. =.  running on
email: msippel@mirsip.de             (( /)0 0(\_))   Debian
Webmaster von www.rsv-elgershausen.de `-'(. .)`-'  GNU / Linux
Moderator auf www.linux-welten.de         \_/      3.1 "sarge"



Reply to: