WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: build static route between two networks  (Read 2155 times)

Offline meka

  • Newbie
  • *
  • Posts: 12
build static route between two networks
« on: July 15, 2014, 01:21:06 PM »
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:
Code: [Select]
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:
Code: [Select]
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
Code: [Select]
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?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: build static route between two networks
« Reply #1 on: July 15, 2014, 01:30:34 PM »
What routes does the smart phone have?