Community discussions

MikroTik App
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

ping dst-address not my GW

Tue Sep 14, 2010 11:52 am

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_ ... _Scripting
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Tue Sep 14, 2010 1:18 pm

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?
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Tue Sep 14, 2010 1:40 pm

YES FORM MY NETWORK TO DSL192.168.X.X
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Tue Sep 14, 2010 1:45 pm

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?
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Tue Sep 14, 2010 6:47 pm

What is the gateway ip issued by your isp? That should be the ip of the DSL or cable modem
do you have two internet connections and gateways?
gateway=192.168.3.1
gateway=192.168.1.1
sure i have to connection i do use pcc and that simple why to route
wiki.mikrotik.com/wiki/Manual:PCC
How is your localnet configured? What ip subnets are you trying to route?
i want to to route tow dsl to my network
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Wed Sep 15, 2010 12:01 am

you don't have any default gateway in your 'main' routing table - that's why WebProxy cannot access the Internet
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 7:29 am

8) 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
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Wed Sep 15, 2010 1:18 pm

use 98.137.149.56 and 66.249.92.104 as gateways. all target-scopes should be 10
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 2:59 pm

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
Last edited by kazanova on Wed Sep 15, 2010 3:36 pm, edited 1 time in total.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:20 pm

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.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:29 pm

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_ ... _Scripting
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:39 pm

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_ ... _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.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:42 pm

no i want to use my tow DSL using PCC
and use http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting for failover
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:45 pm

not work if no internet but there is ping to dsl
"/ip route print detail". I'm NOT telepathist!
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:49 pm

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? :D
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:52 pm

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
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 3:56 pm

which interface is assigned 66.249.92.104 subnet?
add comment=google disabled=no distance=1 dst-address=66.249.92.104/32 gateway=192.168.3.1 scope=10 target-scope=10
which interface is assigned 98.137.149.56 subnet?
add comment=yahoo disabled=no distance=1 dst-address=98.137.149.56/32 gateway=192.168.1.254 scope=10 target-scope=10
If these ips are not in a subnet assigned to an interface on the router, the gateway will be unreachable.
i dont get so well but i think it always reachable that the problame
Hi Chupaka! Isn't this fun?
yes but it will more fune if solve this problem i think i work on it on this forum more that 15 days :d
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:00 pm

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

Please post "/ip address print".
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:03 pm

:D 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
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:07 pm

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
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:14 pm

so i should add it my ip liset :? i just think that route table use it for check if there is ping on it
should i add to to client interface ???
i will add and try
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:18 pm

NO! If those are google and yahoo ips, that will really mess things up. It looks like you can just remove those two routes. You want to use the two gateways you have, which are 192.168.3.1 and 192.168.1.1.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:19 pm

You want to use the two gateways you have, which are 192.168.3.1 and 192.168.1.1.
NO! If those are google and yahoo ips, that will really mess things up. It looks like you can just remove those two routes. You want to use the two gateways you have, which are 192.168.3.1 and 192.168.1.1.
sure what eles can i
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:21 pm

Do not use either of those public ips as gateways. According to the docs, They are supposed to be a dst-address, not a gateway.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:26 pm

/ip route
add distance=1 gateway=Host1 routing-mark=ISP1 check-gateway=ping
add distance=2 gateway=Host2 routing-mark=ISP1 check-gateway=ping

Let's suppose that we have two uplinks: GW1, GW2. It can be addresses of ADSL modems (like 192.168.1.1 and 192.168.2.1), or addresses of PPP interfaces (like pppoe-out1 and pptp-out1). Then, we have some policy routing rules, so all outgoing traffic is marked with ISP1 (which goes to GW1) and ISP2 (which goes to GW2) marks. And we want to monitor Host1 via GW1, and Host2 via GW2 - those may be some popular Internet websites, like Google, Yahoo, etc.

:? what??? who he mean here!!! like google and yahoo GW1 and GW2 no i think Host1 and Host2
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:31 pm

I think this is what the docs mean:
Replace Host1 (isp1) with 192.168.3.1
Replace Host2 (isp2) with 192.168.1.1

Now you have a failover for isp1 to isp2 if the connection fails.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:35 pm

i dont think that if that what will be be my GW

/ip route
add dst-address=Host1 gateway=GW1 scope=10
add dst-address=Host2 gateway=GW2 scope=10
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:37 pm

ARGH!..

guys, you are so fast :D

I'm lagging behind your posts %)

let me some time...

yep, SurferTim, it's a bit funny - because that Wiki article is written by me ))
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:41 pm

Hey Chupaka! If that is your article, I'll let you handle this! Thanks.
I think I may have not read that well myself. After a quick read, it is the failover for google or yahoo, not the isp.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:43 pm

as I said, your rules
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
should be like this:
add check-gateway=ping comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=98.137.149.56 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 scope=30 target-scope=10
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:44 pm

After a quick read, it is the failover for google or yahoo, not the isp.
it IS for ISP =) google and yahoo are just hosts to test whether the Internet is accessible =)
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:47 pm

it IS for ISP =) google and yahoo are just hosts to test whether the Internet is accessible =)
That is trick! I like it. :D
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 4:59 pm

thxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Wed Sep 15, 2010 7:42 pm

iam sure i miss something here pleas can you explain it to me

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

i think that rule tell that every dst-address rute to my getway 192.168.3.1

i that right how could you change it to google IP. do i use google gatway know :S

and if you pleas explain simply rule by rule i like to understand rout more
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Wed Sep 15, 2010 8:31 pm

i think that rule tell that every dst-address rute to my getway 192.168.3.1
yep, and if 192.168.3.1 is pingable, then thaffic will be sent to that GW, even if ADSL line is down
i that right how could you change it to google IP. do i use google gatway know :S
gateway should be set to google IP so that check-gateway=ping can monitor remote host (google). and then the route is recursively resolved via the route to google, which has scope=10
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Mon Sep 27, 2010 1:58 pm

after many rest this rule not work

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

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

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

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

4 A S dst-address=0.0.0.0/0 gateway=98.137.149.56 interface=ether1 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="" check-gateway=ping gateway-state=unreachable distance=2 scope=30 target-scope=10

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

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

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

9 ADC dst-address=172.18.1.0/24 pref-src=172.18.1.1 interface=wlan2 distance=0 scope=10

10 ADC dst-address=192.168.1.0/24 pref-src=192.168.1.2 interface=ether1 distance=0 scope=10
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: ping dst-address not my GW

Mon Sep 27, 2010 2:58 pm

These route interfaces seem incorrect. Maybe Chupaka can explain. The 192.168.3.x net is on ether1, and 192.168.1.x is on ether2.
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
7 S ;;; google
dst-address=66.249.92.104/32 gateway=192.168.3.1 interface="" gateway-state=unreachable distance=1 scope=10 target-scope=10

8 A S ;;; yahoo
dst-address=98.137.149.56/32 gateway=192.168.1.254 interface=ether1 gateway-state=reachable distance=1 scope=10 target-scope=10
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Mon Sep 27, 2010 4:26 pm

so what exactly doesn't work? I can't even see a route to 192.168.3.1 in your last post :roll:
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Mon Sep 27, 2010 8:26 pm

so what exactly doesn't work?
if internet down (ping to goole down)and my dsl machine online (ping to my gatway ip replay)
I can't even see a route to 192.168.3.1 in your last post
maybe because i had disable the interface to cut the ping because there was internet on it
when i disable the interface the ping cut and the rule work
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Mon Sep 27, 2010 9:16 pm

so, it was with interface disabled? to make a diagnosis, I need to see the state when problem occurs...
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Mon Sep 27, 2010 10:51 pm

so, it was with interface disabled?
yes
to make a diagnosis, I need to see the state when problem occurs.
so soon

so thx to help
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Tue Sep 28, 2010 7:19 am

[admin@MikroTik] > ip rout pr 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 - prohi
0 A S dst-address=0.0.0.0/0 gateway=98.137.149.56 interface=ether1 check-gateway=ping gateway-state=recursive distance=1 scope=30 target-scope=10

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

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

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

4 S dst-address=0.0.0.0/0 gateway=98.137.149.56 interface=ether1 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=ether2 check-gateway=ping gateway-state=recursive distance=2 scope=30 target-scope=10

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=ether2 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=ether1 gateway-state=reachable distance=1 scope=10 target-scope=10

9 ADC dst-address=172.18.1.0/24 pref-src=172.18.1.1 interface=wlan2 distance=0 scope=10

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

11 ADC dst-address=192.168.3.0/24 pref-src=192.168.3.2 interface=ether2 distance=0 scope=10
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Tue Sep 28, 2010 12:18 pm

what version do you use?.. on my v3, v4 and v5 I can't found 'gateway-state' value - only 'gateway' or 'gateway-status' %) and 'gateway-status' is way more informational, than your 'gateway-state'...

is it v2.9 or v3 with 'routing' package? it's time to upgrade at least to v3 with 'routing-test'...
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Tue Oct 05, 2010 11:12 am

it now 3.30

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

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

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

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

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

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=ether2
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=ether1
gateway-state=reachable distance=1 scope=10 target-scope=10

9 ADC dst-address=172.18.1.0/24 pref-src=172.18.1.1 interface=wlan2
distance=0 scope=10

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

11 ADC dst-address=192.168.3.0/24 pref-src=192.168.3.2 interface=ether2
distance=0 scope=10
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: ping dst-address not my GW

Tue Oct 05, 2010 3:35 pm

v3 with 'routing-test'...
:)
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: ping dst-address not my GW

Tue Oct 05, 2010 9:07 pm

done
testing

Who is online

Users browsing this forum: No registered users and 102 guests