Router after Mikrotik

Hi all,

My scenario is the following:

<< Internet >>
  |
  | wan
+----------+
|          | 172.16.2.0/24 via 172.16.1.2
| MIKROTIK | 172.16.3.0/24 via 172.16.1.2
|          |
+----------+
  | lan 172.16.1.1/24
  |
  | wan 172.16.1.2/24
+-----------+
| Debian OS | 172.16.3.0/24 via 172.16.2.2
| Server    | def gw 172.16.1.1
+-----------+
  | lan 172.16.2.1/24
  |
  | wan 172.16.2.2/24
+-------------+
| 3com router | def gw 172.16.2.1
+-------------+
  | lan 172.16.3.1/24
  |
  | 172.16.3.x/24 def gw 172.16.3.1
+---------+
| Clients |
+---------+


# oct/31/2008 19:06:21 by RouterOS 3.15

/ip route
add comment="Default Gateway" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=x.x.x.x scope=30 target-scope=10
add comment="" disabled=no distance=1 dst-address=172.16.2.0/24 gateway=172.16.1.2 scope=30 target-scope=10
add comment="" disabled=no distance=1 dst-address=172.16.3.0/24 gateway=172.16.2.2 scope=30 target-scope=30

/interface ethernet
set 0 arp=enabled auto-negotiation=yes cable-settings=default comment="" disable-running-check=yes disabled=no full-duplex=yes mac-address=00:0D:88:68:8A:98 mtu=1500 name=wan speed=100Mbps
set 1 arp=enabled auto-negotiation=yes cable-settings=default comment="" disable-running-check=yes disabled=no full-duplex=yes mac-address=00:0D:88:68:8A:99 mtu=1500 name=lan speed=100Mbps

/ip address
add address=x.x.x.x/28 broadcast=x.x.x.x comment="" disabled=no interface=wan network=x.x.x.x
add address=172.16.1.1/24 broadcast=172.16.1.255 comment="" disabled=no interface=lan network=172.16.1.0

On Mikrotik I can ping Debian (no firewall, no nat), but can’t ping the router neither the clients. On Debian I can ping everybody. Why? Is there a way to make Mikrotik reach everybody?

Thanks in advance,
Ben

Look at that line:

add comment="" disabled=no distance=1 dst-address=172.16.3.0/24 gateway=172.16.2.2 scope=30 target-scope=30

it should be 172.16.1.2

Regards,
KT

I tried that, no success.
Any other idea?

Thanks

try to ping from mikrotik to 172.16.2.1/24 and 172.16.2.2/24

how is the result ?
if u can ping 172.16.2.1 but can not ping 172.16.2.2, theni think u should check tour 3com router configuration

Yes, from Mikrotik I can ping 172.16.2.1 but not 172.16.2.2. But, I can ping 172.16.2.2 from the Debian Server. That’s why I didn’t think about a router’s problem.

FIXED. Can’t believe I did such a newbie mistake.
On Debian Server I forgot to enable ip forwarding:

echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_dynaddr

:blush: