This morning i found a bit of a hack for my cable modem, which allowed me to use it in proper Bridged mode… previously, i had to give it an internal static ip, turn off the firewall and wifi, and enable DMZ. then point the DMZ to my RB750G. Anyway, i have done this for 2 modems, and then tweaked Router OS to use DHCP instead of static IPs for addresses… only problem is my PCC load balancing has stopped working… everything goes though one connection…
I have walked though the steps of PCC from the manual here (http://wiki.mikrotik.com/wiki/Manual:PCC) but it assumes static IPs and static routes… I have tried “tweaking” it, but with no luck. no traffic goes anywhere…
I have reset the config a few times to a known state that allows me internet access, but only though one connection, so i cant even post the config that wont work currently…
the only difference between my old setup and this is DHCP addresses for WAN 1 and 2, and also in /ip firwall mangle, there was a prerouting for dst-address of the old cable modem ips… they got an external IP, but when you connected, you connected to a 192.168 network. the RouterBoard ended up with an internal IP, and all traffic was DMZed to the RouterBoard…
only problem is that those IPs ( and ) are dynamic and can change at a moments notice… How do i set them to take the gateway IP from the WAN1 and WAN2 interface? I tried setting them to WAN1 and WAN2 (the names of the interfaces) but no traffic gets though…
I don’t understand why you can’t use static IP’s ? Either config the routers with static IP’s or tell DHCP to assign them the same IP’s based on their mac.
Its my ISP who are assigning IPs to the router… I cant tell them to give me a static IP (its a home account, they dont offer that) and i don’t control the DHCP server on their network…
oh, I see. In that case I have I similar situation, my ISP provides DSL with dynamic IP’s to my routers. The way I avoided this issue is I set both routers in PPPoE bridge mode and made the MK server do the login. Then I pointed the routes to the new PPPoE interfaces on the mikrotik. Since MK negotiates the connection it always knows the IP’s. You haven’t mentioned wether your internet is DSL or not but if it is, this should resolve your problem.
the connections are cable modem, and both IPs are “given” to the RouterBoard. it has 2 public IP addresses. I tried setting the default router to WAN1 and WAN2, but with no luck… only when i set the default routers to the IPs of the gateways on the WAN will it work… but i am still having the problem of getting new IPs… i need to change the config each time… not a problem if i am on the network, but if i am out of the office, big issues…
how do you discover those IP’s ? can they be fetched through scripting ? You could have a script that detects if the lines are down and attempts to retrieve the new IP’s to update the routes.
at the moment, i discover the IPs by logging into the router, going to the addresses tab and looking for the IPs. i then copy and paste them into the correct location… no automation… that’s what i am looking for! i am fairly new to all this routerOS stuff, so any help would be, well, helpful!
So the router’s internal IP is static if you use it to login right ? Or if its assigned by RouterOS’s dhcp, you can tell it to assign the same address to the router through its mac, then you could use that IP as your gateway.
The router has a static IP (internal facing… 192.168.0.250) and 2 public IPs (WAN1 and WAN2) which are DHCP assigned by the DHCP server in my cable company…
The gateway i am looking for is on WAN1 or WAN2, which is used by RouterOS for load balancing…
oh i think I understand now, I thought you were logging into an external router (other than routerboard). You should be able to do this through scripting if the routerboard is the one receiving the IP’s. My scripting is abit fuzzy but I believe what you should be able to do is fetch the IP address using the get command. Print the IP address list, find the indexes for both wan’s, those shouldn’t change. Then simply setup a script with a couple of variables receiving [get (index) address] for each WAN. Once you have the IP’s you can update your routes with them through the same script. You could schedule that script to run regularly, or perhaps employ netwatch.