i have working config with my customers with pppoe which is: customers ->pppoe server (gtw) → main gtw(isp1)
i got another main router with another isp2 to get hybrid network on pppoe server(gtw), first isp1 have own ip class and isp2 also own.
everything working fine with: first isp1 : default route to main gtw(isp1) that ip class is not marked in mangle(everything is static routing)
adding second isp like: prerouting all classess and mark routing and then default route with that mark in routing table
everything works fine i checked with traceroute, every ip class goes to their gtw but problem is:
when isp1 is down i dont have dns service for name resolving in isp2 network.
config for dns for customers is in dhcp server and dhcp served 4 dns (2 from isp1 and 2 from isp2)
in ip-> dns on MT primary is dns from isp1 and secondary is from isp2
ping is working well, so routing mark is working for isp (skype,etc working) everything which dont required name resolving.
so, once again first network dont have routing mark ,only default route and second network have routing mark via specific gtw
i thinking that something is about routing mark, i mean do i must also marking fist network or do some scripting for default route enable/disable when first isp is down(because option ping gtw in routing table dont work because both network have their main gtw a front isp)
It may be the router OS is not changing the default gateway it uses. If you didn’t set it to change gateways with the failure, dns will probably fail. Login to the router and “fail” the connection (power down the modem or unplug the cable). Can you ping remote ips from the router OS? If that works, can you “/ping www.yahoo.com”?
dont have a problem with ping ip address, it pinging because i go via isp2(i have internet with isp2) but i dont have resolving
cannot be sure that all resolving goes via first isp and everything else (data transfer , chat and etc)goes where to routing table tells.
map:
----------------------------> first router(isp1-ip class1)-internet (WHEN this go down, loosing resolvning but i have ping via isp2 )
router(customers-gtw)
----------------------------> second router(isp2-ip class2)-internet
when isp1 is down, client pc in command prompt nslookup command cannot find any dns is alive) 4 dns from dhcp server obtain earlier
to get clear picture once again:
ip route 0.0.0.0/0 dst-ad. x.x.x.x to isp1
ip route 0.0.0.0/0 dst-ad. z.z.z.z to isp2 routing-mark=ips-for-isp2
when everything work routing ips is ok and dns is ok.(if isp1 down, routing ips for isp2 is ok but i dont have dns resolving)
is it possible that i have resolving via default route, via isp1 (first line above)?
also i try to disable first line in routing table but not result.(because option “ping gtw” is not working for me, next gtw hop is alive)
maybe i must playing with default route fail over script, i mean put 2 default route and up/down script with netwatch (ping google.com)
Do you have a masquerade for each gateway “out-interface=etherX” in “/ip firewall nat”?
not working with private ip pools
static routing, public ips
Solved!!
failover script for 2 default routes and ping www.google.com!