Static routing

Hello everybody! I have got a little bit problem:

I am now learning the routing, started with static routing. I tried this:http://wiki.mikrotik.com/wiki/Manual:Simple_Static_Routing

The problem is the following:in Lan1:PC, Lan2: Laptop can not communicate.

The 2 Routerboard (172.16.1.1-172.16.1.2) is communicate fine.

From the laptop i can ping both RBs, but can not communicate in the Lan 1’s PC.

The distant adress and gateway is configured.

What is it would the problem?

Can you attach some connection schema?

My setup is the following:

RB 750 GL:172.16.1.1/30=ether2
RB 751U-2HnD:172.16.1.2/30=ether1

RB 750 GL:10.10.10.1/24=ether3:this is the Lan1 with PC:10.10.10.2/24

RB 751U-2HnD:192.168.5.1/24=ether2 this is the Lan2 with Laptop:192.168.5.2/24

In this case i don’t need Internet,i just want to learning the static routing,and then the dynamic routing.

The problem is the laptop and the pc can not communicate.But seems to be everything properly configured.

The connection the RB 750 GL and RB 751U-2HnD between is working fine.

RB 750 GL:dst-address=192.168.5.0/24 gateway=172.16.1.2

RB 751U-2HnD:gateway=172.16.1.1

On RB 751U-2HnD, add static route to 10.10.10.0/24

/ip route
add dst-address=10.10.10.0/24 gateway=172.16.1.1 disabled=no distance=10

Still i can not ping the PC:10.10.10.2/24

Can you ping PC:10.10.10.2 for RB 750 GL?

Yes,i can,working fine that connection too

Post the routing tables of both routers

How can i post picture?

Type

/ip route print

into a terminal window. Then copy and paste the output to the forum

[trackboy@Laci Mikrotik 750 GL] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 ADS 0.0.0.0/0 192.168.1.1 0
1 ADC 10.10.10.0/24 10.10.10.1 ether3 0
2 ADC 172.16.1.0/30 172.16.1.1 ether2 0
3 ADC 192.168.1.0/24 192.168.1.120 ether1 0
4 A S 192.168.5.0/24 172.16.1.2 1
5 S 192.168.5.0/24 172.16.1.2 10

[trackboy@Laci Mikrotik 751U-2HnD] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 A S 0.0.0.0/0 172.16.1.1 1
1 A S 10.10.10.0/24 172.16.1.1 1
2 S 10.10.10.0/24 172.16.1.1 10
3 ADC 172.16.1.0/30 172.16.1.2 ether1 0
4 ADC 192.168.5.0/24 192.168.5.1 ether2 0

The two routes to 10.10.10.0/24 here are actually not needed because the default route already points at the same remote address:

0 A S 0.0.0.0/0 172.16.1.1 1
1 A S 10.10.10.0/24 172.16.1.1 1
2 S 10.10.10.0/24 172.16.1.1 10

but on the other router you have:

0 ADS 0.0.0.0/0 192.168.1.1 0

You need an entry to pass traffic for non-locally attached networks to 172.16.1.2 - i.e. the other router. One way would be to change the entry above to address 172.16.1.2 as the gateway.

And how should i set this?

That existing entry is dynamic (see D flag below) - do you have the router connected to a DHCP source?


0 ADS 0.0.0.0/0 192.168.1.1 0

You could set the default router on each router to be the other router - but that will cause packets to loop when they are not destined for any of the locally attached networks.

A better idea is to add the routes for the locally attached networks on router B to router A’s routing table (gateway being router B’s IP address) and add the routes for the locally attached networks on router A to router B’s routing table (gateway being router A’s IP address).

Yes,my RB 750 GL get 192.168.1.120 from my friend router via 1 km Wifi connection,but in this case i don’t need internet connection,only the static routing,but i am beginner in routing,and i don’t know,how is should set these things as you said

Check, if the laptop can ping router RB750, but on this address: 10.10.10.1. If yes routing is OK. You must look for problem locally on the PC or laptop. What’s the default route on PC and laptop? PC - 10.10.10.1, laptop - 192.168.5.1?

There are some interesting things:Ib both RB seems to be everything ok,the networks reachable.

From the laptop i can reach both RB,i can ping them,i can enter via winbox or webfig.

But on the PC there is another situation,i can ping 10.10.10.1,that is the gateway for the PC.

But still i can not communicate with the Laptop or vice versa PC

I very appreciate your help,i am a beginner in Mikrotik devices

If you can ping 10.10.10.1(ip address on ether3 RB750GL) from your laptop, and
can ping 192.168.5.1 (ip address on ether2 RB751U-2HnD) from PC, this means that the static routing work OK.
You need check firewall setting on your PC and laptop. For example, a firewall in Windows blocks by default ICMP and other requests from others subnets.

Does the attached drawing look like your network goals?

Respectfully,

ISO
TB-Static-Rts.pdf (218 KB)