A mikrotik with DHCP server 192.168.0.1 in one building.
A mikrotik without DHCP on 192.168.0.21 in another building with multiple PC’s connected to it.
All the PC’s connected to 192.168.1.21 get there ip address from 192.168.1.1. So effectively its one big network on the 192.168.0.0
Ubiquiti Wireless nanobridge (192.168.1.11) is connected via lan to 192.168.1.21 in port 2 and is wirelessly connected to 192.168.1.1 via another ubiquiti nanobridge also in port 2.
What I would like to do is create a different subnet and have the 192.168.1.21 mikrotik change to 10.0.0.2 and provide DHCP to all of the devices directly connected to it via ports 3-5.
I dont want 192.168.1.0 range to be able to talk or broadcast to the 10.0.0.0 range. EXCEPT that all PC’s should be able to access a ONE pc on the new subnet. This device IP will be 10.0.0.52. This device should also be able to reach ALL 192.168.1.0 devices.
Both mikrotiks have their own DSL connection and dial out over PPPOE to a bridged modem.
So basically I would like to have the 10.0.0.0 range seperate from the 192.168.0.0 range except for allowing access to 10.0.0.52 and if the internet should fail on 10.0.0.0 range then it should failover to the 192.168.1.1 gateway. Although if someone cant answer the load balancing I would very much like to just get the two subnets working and solve the gateway issue later.
Setup a bridge with the ports you want, add your dhcp server to it.. Use a firewall to block the traffic you don’t want, and then configure your routes such that you have your main default and then a backup default.
Without trying to sound disrespectful, all you have done is explained my answer in English. I could do the same. I need someone to explain it in mikrotik. You have answered my question perfectly with everything required without helping me through the language of mikrotik. I thank you for your reply but need help implementing it on my rb750.
I can fill it out when I get on my laptop. I just can’t type that much on my phone. When I get to my laptop this afternoon I’ll post some more details.
Post your export so I can see exactly what your starting with.
This is a start… this doesn’t load balance or anything… just uses pppoe out as its internet connection and the firewall allows everything. You can modify to do exactly what you want.
/interface bridge
add name=bridge-remote
add name=bridge-local
/interface ethernet
set [ find default-name=ether1 ] name=ether1-gateway
set [ find default-name=ether2 ] name=ether2-remote
set [ find default-name=ether3 ] name=ether3-slave-master-local
set [ find default-name=ether4 ] master-port=ether3-master-local name=ether4-slave-local
set [ find default-name=ether5 ] master-port=ether3-master-local name=ether5-slave-local
/interface bridge port
add bridge=bridge-local interface=ether3-master-local
add bridge=bridge-local interface=wlan1
add bridge=bridge-remote interface=ether2-remote
/ip pool
add name=local-pool ranges=10.0.0.100-10.0.0.254
I reset my mikrotik and told it to restore your script on next boot.
I plugged everything into the correct ports but it is not connecting to the internet on either wan or giving me ip’s on local lan. Not sure what to do now?
It’s not 100% complete… It was just a starting point.. but it should at least give an IP on ports 3-5… can you export whats loaded and post it in code tags?
I decided after looking at your script that I was not going to learn anything just copying and pasting. So I reset my router with no default config and setup a working load balancing mikrotik setup.
Ether1 - Wan1
Ether2 - Wan2
Ether3 - Lan
Wlan - Bridged with Lan
Took me a while but I learnt a lot in the process!
Only one issue remains. I need PC’s that are behind WAN1 to be able to connect to 192.168.2.52 on Lan. This is basically a network with DHCP and not just a DSL modem. Everything on WAN1 needs access to 192.168.2.52 on LAN and vice versa.
The strawberry on top the cake would be having the mikrotik behind WAN1 have a similar setup to this mikrotik in that it would use it as a WAN connection too. I am hoping this is possible but guessing that VLANS would need to be created as there is only one wireless ubiquiti link between the two networks. Or EOIP? Lots of new networking ideas to discover and hopefully implement. These little mikrotiks are quite something! Like a kid on christmas day yesterday setting this all up.
Starting to think with the lack of replies that this may not be possible.
Hope I did not offend by not using your script. I tried to use and troubleshoot the the issues I was having and realised I did not really understand the script. That is why I started from scratch.