David Efflandt wrote:
> What is output of: /sbin/route -n
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Ifce
192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 ppp0
> I imagine your routing conflicts, because you configured 3 interfaces with
> same network (netmask), and first route to 192.168.7.3 is eth0. The
> secret is to either split them in to different subnets or simply set
> netmask of eth0 and eth1 to 255.255.255.255,
done.
# ifconfig
eth0 inet addr:192.168.7.1 Bcast:192.168.7.255 Mask:255.255.0.0
(...)
eth1 inet addr:192.168.7.10 Bcast:192.168.7.255 Mask:255.255.0.0
(...)
eth2 inet addr:192.168.7.100 Bcast:192.168.7.255 Mask:255.255.255.0
(...)
lo inet addr:127.0.0.1 Mask:255.0.0.0
(...)
ppp0 inet addr:82.49.116.130 P-t-P:192.168.100.1 Mask:255.255.255.255
(...)
> with -host route to IP of PC
> on each:
>
> route add -host 192.168.7.2 dev eth0
> route add -host 192.168.7.3 dev eth1
done.
This is my `route -n` after changes:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Ifce
192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.7.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.7.3 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.7.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
192.168.7.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 ppp0
> Then enable proxy arp on eth2:
> echo 1 > /proc/sys/net/ipv4/conf/eth2
done.
# cat /proc/sys/net/ipv4/conf/eth2/proxy_arp
1
Great!
Now:
- the server can reach client_1 and client_2
- client_1 can reach 192.168.7.1,10,100
- client_2 can reach 192.168.7.1,10,100
...but client_1 can't reach client_2 and client_2 can't reach client_1.
Maybe I have to set up the bridge? Between eth0 and eth1?
I'm waiting your answer before trying the 'bridge' solution.
However, thank you very much for the time you've spent with me.
....and sorry for my bad english!
--
Odin_Eidolon