Hello my friends,
Merry Christmas to all of you, and I hope you have a great weekend..!
I have the following scenario:
I have MikroTik CCR2004 with two WAN connections:
WAN-1 connected to Ether-1 from ONU-1
WAN-2 connected to Ether-13 from ONU-2
For WAN-1, I have two public IP addresses, and I am using both of them. I assigned the IPs as follows:
ether-1 = xxx.xx.xx.85 ether-1 = xxx.xx.xx.84
I have also assigned SRC NAT rules for both IPs to the following two bridges that use this IPs
Bridge-1 = 192.168.0.1/24 Bridge-2 = 10.0.0.0/24
For WAN-2, I have also two public IP addresses, but I am using only one of them:
ether-13 = xxx.xx.xx.123
I have assigned a SRC NAT rule for the following bridge and I want it to use this public IP.
Bridge-3 = 172.16.0.1/24 All public IPs in WAN -1- and WAN -2- have the same gateway.
The problem is that I am unable to get Bridge-3 subnet to connect to the internet.
You can see the configuration file for more details. ccr2004.rsc (11 KB)
Merry Christmas to you too! I have only skimmed your configuration but I think the problem is that you have used a routing rule for scr-address 172.16.0.0/24 which looks ONLY at the Server 2 routing table (“action=lookup-only-in-table”). Problem is there is no route configured for Server 2 routing table so nothing is basically reachable.
Thank you for your attention. No, there is a route configuration for Server 2, but I changed the name in the file above. Now I’ve corrected the name as it should be.
My problem was that I forgot to add ether13 to the WAN address list table. However, I still have an issue: I am not sure if all the other traffic from Bridge 1 and Bridge 2 is also using ether13, which I don’t want to happen.
It shouldn’t but this is easy to check anyway. Hook up a pc and issue traceroute or tracert and check the hops. Or simpler, go a browser and type what is my ip address. You should see different public ip addresses when connecting to different bridges. For example, when using bridge x it shows x.x.x.x and when using bridge y it shows y.y.y.y or whatever. This means the traffic goes out a different interface
First thing. check your configuration, whenever there is a “*” (asterisk followed by a (hex) number, it is a reference to something that was deleted/moved/renamed and that RoS cannot find anymore, it is a placeholder for something that was there but doesn’t exist anymore:
Then, a few semi-random notes:
ether13 is not in interface-list LAN or WAN.
your way of naming things is confusing, personally I would call things in the same order, and - if possible - avoid spaces (as they imply the use of double quotes, and this before or later will bite you back when using CLI), these:
I would rename them:
bridge1-Wifi ->bridge_Wifi_0
“bridge2-Server -1-” → bridge_Server_1
“bridge3-Server -2-” → bridge_Server_2
Your routes and routing tables/rules are a mess because they make reference to fib’s that either do not exist or are empty.
Here again, be consistent in naming, like:
Thank you for your advice jaclaz. I have changed the real names of all my interfaces, routing tables, and rules for security reasons, as they refer to actual server names. That’s why you see “ERP” and “Manifest” used as placeholders. Despite that, my focus remains on the main configuration.
My current issue is: how can I ensure that Bridge 1 and Bridge 2 exclusively use the WAN-1 bandwidth and route, while Bridge 3 exclusively uses the WAN-2 bandwidth and route?
Assuming that you can choose LAN addresses and have bridge1 and bridge2 in two contiguous subnets, you can instead use a /23 in routing rule and have only two tables, I would try something like:
I will soon ask some questions here as I am actively searching for a similar goal. In my case, I think I need to tinker more with the routes, and I will use yours now as inspiration, but I have the same “problem” as you. The public IPs WANs are from the same ISP and have the same gateway. Mine are even PPoEs so even with profiles I end up not being able to select gateway, which is a generic 10.0.0.1.
Disabling one or another PPOEs solves the routes I have in place but my goal actually is to separate (isolate if possible) 1 ISP1 + 1 bridge1 + 1 DHCP1 from the other 1 ISP2 + 1 bridge2 + 1 DHCP2, no load balancing, no failover, trying to keep it very simple.
Having the same ISPs gateway can be your problem too.