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
sure i have to connection i do use pcc and that simple why to routegateway=192.168.1.1
i want to to route tow dsl to my networkHow is your localnet configured? What ip subnets are you trying to route?
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.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
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
"/ip route print detail". I'm NOT telepathist!not work if no internet but there is ping to dsl
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
i dont get so well but i think it always reachable that the problameIf these ips are not in a subnet assigned to an interface on the router, the gateway will be unreachable.
yes but it will more fune if solve this problem i think i work on it on this forum more that 15 days :dHi Chupaka! Isn't this fun?
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
sure what eles can iYou 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.
should be like this: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=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
it IS for ISP =) google and yahoo are just hosts to test whether the Internet is accessible =)After a quick read, it is the failover for google or yahoo, not the isp.
That is trick! I like it.it IS for ISP =) google and yahoo are just hosts to test whether the Internet is accessible =)
yep, and if 192.168.3.1 is pingable, then thaffic will be sent to that GW, even if ADSL line is downi think that rule tell that every dst-address rute to my getway 192.168.3.1
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=10i that right how could you change it to google IP. do i use google gatway know :S
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
if internet down (ping to goole down)and my dsl machine online (ping to my gatway ip replay)so what exactly doesn't work?
maybe because i had disable the interface to cut the ping because there was internet on itI can't even see a route to 192.168.3.1 in your last post
yesso, it was with interface disabled?
so soonto make a diagnosis, I need to see the state when problem occurs.
v3 with 'routing-test'...