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

Please HELP: def gateway problem on eth0 and eth1



hello people,

I'm using debian potato 2.2r5 on compaq proliant server with kernel 2.4.19 compiled by hand.
all runs fine until i added a second ethernet controller to address 2 different networks.
both controllers are Intel 100 Mb ( eepro100 as a module)

the 2 controllers are found by the kernel.  eth0 already existent and the new as eth1.

my /etc/network/interfaces looks like :

iface eth0 inet static
        address 192.202.193.135
        netmask 255.255.255.0
        network 192.202.193.0
        broadcast 192.202.193.255
        gateway 192.202.193.1

iface eth1 inet static
        address 11.199.194.165
        netmask 255.255.255.224
        network 11.199.194.160 
        broadcast 11.199.194.192 
        gateway 11.199.194.161 

my route table looks like :

root@myhost: route -n
Kernel IP routing table
Destination         Gateway                 Genmask         Flags Metric Ref  Use Iface
11.199.194.160  0.0.0.0               255.255.255.224   U      0      0        0   eth1
192.202.193.0    0.0.0.0               255.255.255.0       U      0      0        0   eth0
0.0.0.0                192.202.193.1   0.0.0.0                   UG   0      0        0   eth0
0.0.0.0                11.199.194.161 0.0.0.0                   UG   0      0        0   eth1

as we can see there a now 2 default gateways.

Now the problem:

When i run /etc/init.d/networking restart  the config is updated and interfaces reconfigured correctly but they stop responding ( i mean interface eth0 receives traffic but
nothing goes outside) i did somme tests with tcpdump. 
i think is cause of there are 2 def gateways  and the kernel don't know on which one he must respond !?

ifaces are setted 100 Mb/FDX and switch is in autonegociate mode.

What i need is the 2 infaces working and to address the 2 differents networks with the right gateway.

Any idea ?





Reply to: