I too have been looking at this rather wierd setup and it violates all
principles of nets and subnets.

1. 192.168.0.x with a mask of 255.255.0.0 is a Class B subnet and is wrong.
(yes it can be used but it will clash)

2. 192.168.0.x with a mask of 255.255.255.0 is a Class C subnet and is correct

3. 192.168.1.x with a mask of 255.255.255.0 is also correct BUT a
completely different subnet.

4. 192.168.0.x with a mask of 255.255.255.128 (for example) is yet again a
completely different and valid subnet.

In all four cases, the routing MUST be handle separately.

In the case below, the mask on the eth0 interface below is wrong. It should
be 255.255.255.0 in this case.

Separate routes have to be setup for each of the interfaces.
route add -net 192.168.0.0 -netmask 255.255.255.0 dev/gw eth0 (or equiv
command)
route add -net 192.168.1.0 -netmask 255.255.255.0 dev/gw eth1

And this will work.

Bruce.


>Javier Castillo wrote:
>
>> > > > >       I read that linux 2.2 can do automatix proxy arp, so if I
>>have two
>> > > > > interfaces in my linux box:
>> > > > >
>> > > > >       eth0: 192.168.0.1/16
>> > > > >       eth1: 192.168.1.1/24
>> > > > >
>> > > > >       if for example, 192.168.0.25(a windows which is
>>configurated with a
>> > > > > 16bits netmask)  tries to ping to
>> > > > > 192.168.1.10, my linux box will reply to arp request from my
>>windows??.
>> > > >
>> > > > Yes.
>> > >
>> > >       If so, why my linux box does not answer that arp request.
>> > >
>> > >       Do I have to setup some "/proc/sys/net...." before??. I did
>>think that
>> > > /proc/sys/net/ipv4/all/proxy_arp = 1 was enought :(
>> >
>> > For me, it was.
>> >
>> > What do "ifconfig" and "route -n" show?
>
>[snipped]
>
>I can't see anything obviously wrong there. My first suspicion would
>be that it's the overlapping netblocks that are causing the problem
>(192.168.1.1/24 is a subset of 192.168.0.1/16).
>
>Reconfiguring your subnets so that they don't overlap might fix it; it
>could also avoid problems in the future.
>
>--
>Glynn Clements <[EMAIL PROTECTED]>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-net" in
>the body of a message to [EMAIL PROTECTED]



-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to