Hello,
Recently i am trying to set up my Linux box as a router. It has two NICs which are working fine(to ping itself alive).
The first "eth0" has a static address of 202.x.180.72 which connects to my Switch then Intel router. The second "eth1" has a static address of 192.168.10.1 which is connected to a hub and consequently my internal network.
From the linux box router, I can ping the outside network througt out eth0, so i think the default gateway 202.x.180.65 setting is correct. However, I cannot get to the internet from the 192.168.10.0 net nor ping 202.x.180.0 (destination net unreachable), furthermore, i found that eth0 & eth1 can't even ping each other inside the linux box. I thought I had set up ip packet forwarding correctly (i did already "echo 1 > /proc/sys/net/ipv4/ip_forward"), but apparently not.
I think i am getting something wrong or some missing in the "route add" syntax.
Any help or suggestion would be appreciated!!
----------------------------------------
INTERNET
----------------------------------------
|
ROUTER 202.x.180.65
|
|
SWITCH
|
|
---------------------------------------
eth0:202.x.180.72
|
Linux Router
eth1:192.168.10.1
--------------------------------------
|
|
192.168.10.0 Network