Community discussions

MikroTik App
 
lukkes
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Mon Jun 16, 2008 2:12 am
Location: Venezuela
Contact:

ping routing-table error, manual gateway issue

Sat Aug 27, 2011 4:36 am

hello forum, i got a problem when i try to set automatic the gateway for a route when i set a interface as a gateway the ping with routing table parameter doesn't work, but when i set the gateway manually it works perfect, this is the scenario
---------------------
with this config:

;;; route wan1
dst-address=0.0.0.0/0 gateway=wan1 gateway-status=wan1 reachable check-gateway=ping distance=1 scope=30 target-scope=10 routing-mark=wan1_route

the command

/ping http://www.google.com routing-table=wan1_route

give me time out...!

---------------------
with this other config:

;;; route wan1
dst-address=0.0.0.0/0 gateway=186.190.32.1 gateway-status=186.190.32.1 reachable check-gateway=ping distance=1 scope=30 target-scope=10 routing-mark=wan1_route

the command

/ping http://www.google.com routing-table=wan1_route

the ping give me response normaly..

some ideas..?

thanks
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: ping routing-table error, manual gateway issue

Mon Aug 29, 2011 3:23 pm

wan1 is ppp interface?
otherwise if it is Ethernet like interface, it is not going to work properly as gateway.
 
lukkes
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Mon Jun 16, 2008 2:12 am
Location: Venezuela
Contact:

Re: ping routing-table error, manual gateway issue

Mon Aug 29, 2011 3:33 pm

Thanks for your help..


it's ethernet adsl, really it's a 8 wan balancer, it's strange cause 7 of them works fine, i double check that all the routes are identical, only change the routing mark and the wan gateway..

why you say that it's not working good? so what it's the correct way to make a router with a ethernet dhcp adsl internet conection?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: ping routing-table error, manual gateway issue

Mon Aug 29, 2011 3:38 pm

why you say that it's not working good? so what it's the correct way to make a router with a ethernet dhcp adsl internet conection?

gateway=interface is not going to work on Ethernet interface.
Set add-default-route=yes on DHCP client to receive default gateway from DHCP server.
 
lukkes
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Mon Jun 16, 2008 2:12 am
Location: Venezuela
Contact:

Re: ping routing-table error, manual gateway issue

Mon Aug 29, 2011 3:58 pm

Yes, you're right, but remember that the gateway i'm talking about are the gateway created manually for the balancing, the routes with specific routing-mark, understand?

in other side, all ethernet has marked the in dhcp client the option add-default-route with differents distance, so when one gateway become unrecheable, mikrotik setup another one, this works perfectly...

thanks again
 
lukkes
Member Candidate
Member Candidate
Topic Author
Posts: 177
Joined: Mon Jun 16, 2008 2:12 am
Location: Venezuela
Contact:

Re: ping routing-table error, manual gateway issue

Tue Sep 27, 2011 11:50 pm

:(
Anyone helps please

Who is online

Users browsing this forum: fadelliz78, nichky and 59 guests