Hi,
I'm trying to use tinycore base (current) with kernel 3.8.13 as a router to connect two networks (10.0.2.0/23 and 192.168.1.0/24). The router is running tinycore an can reach devices in both networks. "ping 192.168.1.100" works. The Router has two NICs connected as follows:
client.local <---- 10.0.2.0/23 ----> [ eth0 (10.0.2.11): router.local : eth1 (192.168.1.10) ] <----- 192.168.1.0/24 -----> Smartphone.local (192.168.1.100)
On the Router I've added two static routes for both interfaces:
route add -net 10.0.2.0 netmask 255.255.254.0 dev eth0
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth1
and on the client.local I've added the
route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.0.2.11
When I try to ping the smartphone from the client this won't work (100% lost). I've tried tracert 192.168.1.100 which reaches 10.0.2.11 on the first hop but times out after that. So I guess the routing from the client to the router works but fails when reacing the router.
I've read to set echo 1 > /proc/sys/net/ipv4/ip_forward but this doesn't change anything. Any ideas what I'm doing wrong?