ping dst-address not my GW

this is my ip route and all work fine

/ip route
add check-gateway=ping comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=route-to-isp1 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=route-to-isp1 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=route-to-isp2 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=route-to-isp2 scope=30 target-scope=10

if i try to ping something like yahoo i get …no route to host…
/ip route
add dst-address=98.137.149.56/32 gateway=192.168.1.1 scope=10 target-scope=10 comment=“yahoo” disabled=no
add dst-address=66.249.92.104/32 gateway=192.168.3.1 scope=10 target-scope=10 comment=“google” disabled=no
add gateway=98.137.149.56 routing-mark=route-to-isp1 scope=30 target-scope=30 check-gateway=ping disabled=no
add gateway=66.249.92.104 routing-mark=route-to-isp2 scope=30 target-scope=30 check-gateway=ping disabled=no
add distance=10 gateway=66.249.92.104 routing-mark=route-to-isp1 scope=30 target-scope=30 check-gateway=ping disabled=no
add distance=10 gateway=98.137.149.56 routing-mark route-to-isp2 scope=30 target-scope=30 check-gateway=ping disabled=no



While trying to retrieve the URL http://www.youtube.com/watch?v=GilAr3R4SOs:
• Network is unreachable
Your cache administrator is webmaster.


and i had try this one, same if i change dst-address nothing work
http://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting

What is the gateway to the internet? That should be issued by your isp.
What is the reason for the default routes (destination 0.0.0.0/0) to localnet (192.168.x.x) addresses? Are you trying to route your network?

YES FORM MY NETWORK TO DSL192.168.X.X

What is the gateway ip issued by your isp? That should be the ip of the DSL or cable modem. I recommend getting a basic setup working first, then add the rest of those routes.

Do you have two internet connections and gateways?

How is your localnet configured? What ip subnets are you trying to route?







sure i have to connection i do use pcc and that simple why to route
wiki.mikrotik.com/wiki/Manual:PCC

i want to to route tow dsl to my network

you don’t have any default gateway in your ‘main’ routing table - that’s why WebProxy cannot access the Internet

:sunglasses: i see that but i just do as ex
so should it look like that
but what about scop?and distance

/ip route
add check-gateway=ping comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=30 target-scope=10

add dst-address=98.137.149.56/32 gateway=192.168.1.1 scope=10 target-scope=10 comment=“yahoo” disabled=no
add dst-address=66.249.92.104/32 gateway=192.168.3.1 scope=10 target-scope=10 comment=“google” disabled=no
add gateway=98.137.149.56 routing-mark=route-to-isp1 scope=30 target-scope=30 check-gateway=ping disabled=no
add gateway=66.249.92.104 routing-mark=route-to-isp2 scope=30 target-scope=30 check-gateway=ping disabled=no
add distance=10 gateway=66.249.92.104 routing-mark=route-to-isp1 scope=30 target-scope=30 check-gateway=ping disabled=no
add distance=10 gateway=98.137.149.56 routing-mark route-to-isp2 scope=30 target-scope=30 check-gateway=ping disabled=no

use 98.137.149.56 and 66.249.92.104 as gateways. all target-scopes should be 10

not work if no internet but there is ping to dsl

/ip route

add check-gateway=ping comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.3.1 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.1.254 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=66.249.92.104 routing-mark=route-to-isp2 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=2 dst-address=0.0.0.0/0 gateway=98.137.149.56 routing-mark=route-to-isp2 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=2 dst-address=0.0.0.0/0 gateway=66.249.92.104 routing-mark=route-to-isp1 scope=30 target-scope=10
add check-gateway=ping comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=98.137.149.56 routing-mark=route-to-isp1 scope=30 target-scope=10
add comment=google disabled=no distance=1 dst-address=66.249.92.104/32 gateway=192.168.3.1 scope=10 target-scope=10
add comment=yahoo disabled=no distance=1 dst-address=98.137.149.56/32 gateway=192.168.1.254 scope=10 target-scope=10

So there are four gateways?
66.249.92.104
98.137.149.56
192.168.3.1
192.168.1.254

You might want to post “/ip firewall mangle”. The routing marks may be the challenge.

192.168.3.1 my dsl gateway
192.168.1.1 my dsl gateway
the other is yahoo and google
like this
http://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting

I think you may have misunderstood the setup described there. You want to use GW1 for everything except google and yahoo, and those go out GW2, correct? Then those ips need to be the dst-address, not the gateway.

add dst-address=0.0.0.0/0 gateway=192.168.3.1
add dst-address=66.249.92.104 gateway=192.168.1.1
add dst-address=98.137.149.56 gateway=192.168.1.1

If I have the ips backwards, feel free to exchange them.

no i want to use my tow DSL using PCC
and use http://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting for failover

“/ip route print detail”. I’m NOT telepathist!

Oh! Then on your router:
which interface is assigned 66.249.92.104 subnet?
which interface is assigned 98.137.149.56 subnet?
If these ips are not in a subnet assigned to an interface on the router, the gateway will be unreachable.

Hi Chupaka! Isn’t this fun? :smiley:

right now i has no internet to ether1(dsl1) but i have ping to dsl2(192.168.3.1)

[admin@MikroTik] > ip route pri detail without-paging
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
0 A S dst-address=0.0.0.0/0 gateway=98.137.149.56 interface=ether2 check-gateway=ping gateway-state=recursive distance=1 scope=30 target-scope=10
routing-mark=route-to-isp1

1 A S dst-address=0.0.0.0/0 gateway=192.168.3.1 interface=ether1 check-gateway=ping gateway-state=reachable distance=1 scope=30 target-scope=10

2 S dst-address=0.0.0.0/0 gateway=192.168.1.254 interface=ether2 check-gateway=ping gateway-state=reachable distance=2 scope=30 target-scope=10

3 S dst-address=0.0.0.0/0 gateway=66.249.92.104 interface=ether1 check-gateway=ping gateway-state=recursive distance=1 scope=30 target-scope=10
routing-mark=route-to-isp2

4 A S dst-address=0.0.0.0/0 gateway=98.137.149.56 interface=ether2 check-gateway=ping gateway-state=recursive distance=2 scope=30 target-scope=10
routing-mark=route-to-isp2

5 S dst-address=0.0.0.0/0 gateway=66.249.92.104 interface=ether1 check-gateway=ping gateway-state=recursive distance=2 scope=30 target-scope=10
routing-mark=route-to-isp1

6 ADC dst-address=10.10.10.0/24 pref-src=10.10.10.1 interface=wlan2 distance=0 scope=10

7 A S ;;; google
dst-address=66.249.92.104/32 gateway=192.168.3.1 interface=ether1 gateway-state=reachable distance=1 scope=10 target-scope=10

8 A S ;;; yahoo
dst-address=98.137.149.56/32 gateway=192.168.1.254 interface=ether2 gateway-state=reachable distance=1 scope=10 target-scope=10

9 ADC dst-address=192.168.1.0/24 pref-src=192.168.1.2 interface=ether2 distance=0 scope=10

10 ADC dst-address=192.168.3.0/24 pref-src=192.168.3.2 interface=ether1 distance=0 scope=10









i dont get so well but i think it always reachable that the problame

yes but it will more fune if solve this problem i think i work on it on this forum more that 15 days :d

I know it is a little frustrating for you. We are trying to help. :smiley:

Please post “/ip address print”.

:smiley: i know thx
and that my ip address

Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK BROADCAST INTERFACE

0 ;;; DSL2
192.168.1.2/24 192.168.1.0 192.168.1.255 ether2
1 ;;; DSL1
192.168.3.2/24 192.168.3.0 192.168.3.255 ether1
2 ;;; client
10.10.10.1/24 10.10.10.0 10.10.10.255 wlan2

But the two public address subnets you are using for a gateway are not assigned to an interface. These:

0 A S dst-address=0.0.0.0/0 gateway=98.137.149.56 interface=ether2 check-gateway=ping gateway-state=recursive distance=1 scope=30 target-scope=10
routing-mark=route-to-isp1
(snip)
5 S dst-address=0.0.0.0/0 gateway=66.249.92.104 interface=ether1 check-gateway=ping gateway-state=recursive distance=2 scope=30 target-scope=10
routing-mark=route-to-isp1