This looks easy on paper but it gives me a headache. An ISP gives a /29 subnet.
Let's say 1.1.1.1/29 is a GW and port eth1 in my Mikrotik has an IP 1.1.1.2/29.
Ports eth2,3,4,5 are LAN network with multiple devices connected. I would like two of them (10.0.0.7,10.0.0.8 ) to use other IPs from the /29 range (1.1.1.3/29 and 1.1.1.4/29) and the rest of hosts to use 1.1.1.2
So in theory I add all /29 IPs to my WAN interface (so eth1 has 1.1.1.2/29, 1.1.1.3/29 and 1.1.1.4/29)
I also create two rules in NAT for each host:
Code: Select all
/ip firewall nat add chain=dstnat dst-address=1.1.1.3 action=dst-nat to-addresses=10.0.0.7
/ip firewall nat add chain=srcnat src-address=10.0.0.7 action=src-nat to-addresses=1.1.1.3