ping routing-table error, manual gateway issue

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

wan1 is ppp interface?
otherwise if it is Ethernet like interface, it is not going to work properly as gateway.

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?

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.

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

:frowning:
Anyone helps please