What’s the problem?
Three servers, three NVRs, three controllers: they all leave the factory with the same address, for example 192.168.1.1. For some reason you can’t change it: the maker’s software wants it that way, the installer is long gone, or it’s simply not your gear. But you have to reach all three, from the same PC, on the same LAN.
Connected to any switch it’s chaos: to the question “who is 192.168.1.1?” three of them answer, and the PC talks a bit with one and a bit with another. With a MikroTik in place of the switch you see them instead as 192.168.1.11, .12, and .13, without touching either the servers or the PC, and without leaving the LAN.
In the examples the PC is 192.168.1.100 on ether1, the three servers are on ether2, ether3, and ether4. A CRS switch or a router with several ports is fine.
How does the trick work?
Two tools, one per layer:
- the bridge NAT answers ARP in place of the servers: when the PC asks “who is
.12?”, it answers “server 2”, with server 2’s real MAC. From that moment the PC sends the packets for.12straight to server 2; - the IP NAT changes the destination from
.12to.1while the packet crosses the bridge, so the server recognizes it as its own. On the way back the router puts the address right again, and the PC sees.12answer.
The bridge NAT alone isn’t enough: it changes the MAC addresses, never the IP ones, and the server would drop a packet for .12. The IP NAT alone doesn’t either: without someone to answer ARP, the PC wouldn’t know who to send the packets to. Together they do the job.

Step 1: what are the servers’ MACs?
You need each server’s MAC: usually it’s on the label. Otherwise connect them to the MikroTik and look at which port each MAC appears on:
/interface bridge host print where !local
In the examples: server 1 AA:AA:AA:00:00:01, server 2 AA:AA:AA:00:00:02, server 3 AA:AA:AA:00:00:03. Put in yours.
Step 2: how do I connect the ports?
All four ports in the same bridge, but with the servers kept apart from one another:
/interface bridge add name=bridge-lan
/interface bridge port
add bridge=bridge-lan interface=ether1 hw=no
add bridge=bridge-lan interface=ether2 horizon=1 hw=no
add bridge=bridge-lan interface=ether3 horizon=1 hw=no
add bridge=bridge-lan interface=ether4 horizon=1 hw=no
horizon=1: ports with the same horizon don’t talk to each other. The three servers don’t see one another, so they don’t fight over the address, but they all see the PC;hw=no: on a CRS switch, the traffic the switch chip forwards on its own never reaches the CPU, and so neither the bridge NAT nor the firewall sees it. Withhw=noit goes through the CPU. On a router without a switch chip the parameter changes nothing.
I checked it on a real CRS switch, with a Prestera chip, with a camera in place of a server: with hw=no the camera answers on the new address, ping and web page; with hw=yes the ARP still works, but the packets are delivered by the chip without going through the NAT, and nothing answers.
And the switch’s port isolation (/interface ethernet switch port-isolation), instead of horizon? On the lab switch it works only for the traffic the chip forwards: with hw=no it’s ignored, and the “isolated” port goes back to talking with everyone. Here the work is done by the CPU, so you need horizon, which applies to the CPU’s bridge.
⚠️ Warning: if you’re connected to the MikroTik from one of these ports, you lose the connection for a moment. Work from another port, or from WinBox over MAC.
Step 3: how do I answer ARP in place of the servers?
One bridge NAT rule per server. It’s a tailored proxy ARP: it answers only for that address, and with the MAC you decide.
/interface bridge nat
add chain=dstnat mac-protocol=arp arp-opcode=request arp-dst-address=192.168.1.11/32 \
action=arp-reply to-arp-reply-mac-address=AA:AA:AA:00:00:01 comment="server 1"
add chain=dstnat mac-protocol=arp arp-opcode=request arp-dst-address=192.168.1.12/32 \
action=arp-reply to-arp-reply-mac-address=AA:AA:AA:00:00:02 comment="server 2"
add chain=dstnat mac-protocol=arp arp-opcode=request arp-dst-address=192.168.1.13/32 \
action=arp-reply to-arp-reply-mac-address=AA:AA:AA:00:00:03 comment="server 3"
Why not the interface’s classic proxy ARP (arp=proxy-arp)? Because it would answer with the MikroTik’s MAC, and the MikroTik would then have to route the packets: that’s the other way, the one at the end of the article. Here instead the PC talks directly with the servers, and the MikroTik stays a switch. The arp-reply action is described in the MikroTik manual: Bridging and Switching.
Check the addresses .11, .12, and .13: they must be free on the PC’s network. The Dojo IP calculator tells you whether they’re in the same subnet.
Step 4: how do I change the IP address inside the bridge?
By default the bridged traffic doesn’t go through the IP firewall: the bridge just forwards it. We make it go through, and then we add a single NAT rule for all three:
/interface bridge settings set use-ip-firewall=yes
/ip firewall nat add chain=dstnat dst-address=192.168.1.11-192.168.1.13 \
action=dst-nat to-addresses=192.168.1.1 comment="tre server"
One rule is enough because the choice of server was already made by the ARP: the packet for .12 is already addressed to server 2’s MAC, the NAT just has to fix the IP. Without use-ip-firewall it doesn’t work: in the lab, turning it off, the ping dropped to zero and the counters on the servers stayed still.
Step 5: how do I check that each address leads to the right server?
From the PC:
ping 192.168.1.11
ping 192.168.1.12
ping 192.168.1.13
arp -a
arp -a must show .11, .12, and .13 with the MACs of the three servers, a different one per address. But them answering isn’t enough: open each one’s web page and check that they’re three different devices. In the lab I sent 3, 4, and 5 pings to the three addresses, and on each server exactly 3, 4, and 5 arrived. Same with the web pages: 1, 2, and 3 connections, each to its own server.
On the MikroTik the counters tell you who worked:
/interface bridge nat print stats
/ip firewall nat print stats
A curiosity you’ll see: in the PC’s ARP table 192.168.1.1 also appears, with the MAC of one of the servers. It’s normal: the servers, to answer, ask “who is .100?”, and the PC notes down who asked. It does no harm, as long as you don’t try to use .1 directly.
And if I don’t want to tie myself to the MACs?
If a server breaks and you replace it, the MAC changes and its step 3 rule has to be updated. If you prefer a solution that doesn’t depend on the MACs, there’s the routed way: each server on a port outside the bridge, the MikroTik taking .11, .12, and .13 on the PC side and one routing table per server, chosen by the mangle.
/ip address add address=192.168.1.11/24 interface=bridge-lan
/ip address add address=192.168.1.250/32 network=192.168.1.1 interface=ether2
/routing table add name=srv1 fib
/ip route add dst-address=192.168.1.1/32 gateway=ether2 routing-table=srv1
/ip firewall mangle add chain=prerouting dst-address=192.168.1.11 action=mark-routing new-routing-mark=srv1
/ip firewall nat add chain=dstnat dst-address=192.168.1.11 action=dst-nat to-addresses=192.168.1.1
/ip firewall nat add chain=srcnat out-interface=ether2 action=masquerade
Above is server 1; for the others you repeat with .12/ether3/srv2 and .13/ether4/srv3, first removing the three ports from the bridge. I tested this one too in the lab, with the same result. The difference: the servers see everything arrive from the MikroTik (192.168.1.250) instead of from the PC, and the three 192.168.1.1 are no longer on the same LAN as the PC. Tables and mark-routing are explained in the MikroTik manual: Policy Routing. And watch out: without the mangle it seems to work, because all three addresses answer, but in the lab all the pings ended up on the same server.
What do I check before putting it into production?
- the NAT isn’t done in the chip: the switch rules (
/interface ethernet switch rule) can divert traffic to the CPU or change its port and VLAN, but they don’t rewrite either MAC or IP. Hardware NAT exists only on some larger Prestera switches, and only for routed traffic with fasttrack; the CRS3xx switches, like the one in my lab, don’t have it. I also tried leaving the ports in hardware and sending only the servers’ traffic to the CPU with a switch rule: it doesn’t work; - everything goes through the CPU:
use-ip-firewallmakes all the bridge’s traffic go through the firewall, andhw=notakes the work away from the switch chip. For management, web pages, and cameras it’s perfectly fine; for moving gigabytes of backup it’s not. Keep in the bridge only the ports you need; - as soon as you can, the real solution remains changing the servers’ addresses. This is a cure, not the design;
- the MikroTik in the middle is the point to protect: if you haven’t done it yet, follow the Basic hardening of a MikroTik router.
Tested in the lab on PNETLab with a CHR running RouterOS 7.24.5 (stable): a Debian 12 client as the PC and three CHRs with the same address as the servers, connected over three separate VLANs in place of the three ports. With the bridge NAT: ping and HTTP toward the three addresses, each reaching the right server (verified with the counters on the servers), and the test without use-ip-firewall, which doesn’t work. With the routing: same result, and the test without the mangle, with all the traffic ending up on the first server. On a CRS switch with a Prestera chip and RouterOS 7.24.5 and a camera as a server: the bridge NAT trick working with hw=no and not with hw=yes, port isolation effective only with hw=yes, switch rules with redirect-to-cpu not sufficient.
Frequently asked questions
How do I reach several devices with the same IP address on the same LAN?
With a MikroTik in place of the switch: the bridge NAT answers ARP for a different address for each device (action=arp-reply with the device’s MAC), and with use-ip-firewall=yes a dst-nat rule brings the destination back to the real address. The devices’ ports must be kept apart with horizon.
Is the bridge NAT alone enough?
No. The bridge NAT changes only the MAC addresses: the device would receive a packet for an IP that isn’t its own and would drop it. You also need the IP NAT, which sees the bridged traffic only with use-ip-firewall=yes.
Why do CRS switches need hw=no?
Because the traffic forwarded by the switch chip doesn’t reach the CPU, and so it doesn’t go through either the bridge NAT or the IP firewall. With hw=no on the ports involved the CPU forwards it.
Can I use the switch’s port isolation instead of horizon?
Not in this case. Port isolation works in the switch chip and is ignored when the ports are hw=no; the NAT trick requires the traffic to go through the CPU, where horizon does the isolation.
Do I have to change anything on the servers or the PC?
No. The PC sees three normal addresses on its network; the servers see the PC arrive with its real address and answer it directly.



