# internale lan netmap

**URL:** <https://forum.mikrotik.com/t/internale-lan-netmap/139346>\
**Category:** General\
**Created:** [May 8, 2020, 7:31pm UTC](https://forum.mikrotik.com/t/internale-lan-netmap/139346 "2020-05-08T19:31:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleab](https://forum.mikrotik.com/letter_avatar/aleab/32/6_449c533f586939b6e5f246632a46421f.png) [@aleab](https://forum.mikrotik.com/u/aleab)\
**Post date:** [May 8, 2020, 7:31pm UTC](https://forum.mikrotik.com/t/internale-lan-netmap/139346/1 "2020-05-08T19:31:53Z")

</div>

Hello,  
i have a very simple configuration.  
so quick set ether1 WAN DHCP from isp , ether2-5 LAN with ip 192.168.88.1  
DHCP 2-100

some devices in LAN have DHCP ip , other static ip with 192.168.88.0/24.

can i setup a netmap or other function (ex dstnat o srcnat) to call my devices with another class?  
example to print i setup printer on my server with ip 192.168.88.5  
but i would setup with 192.168.89.5  
and for all other devices i would when i call 192.168.89.0/24 respond 192.168.88.0/24 in transparent mode, without config every device.

is it possible setup a rule in mikrotik?

thank you in advance

---

<div class="post-metadata">

**Author:** ![sindy](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/sindy/32/55716_2.png) [@sindy](https://forum.mikrotik.com/u/sindy)\
**Post date:** [May 8, 2020, 8:18pm UTC](https://forum.mikrotik.com/t/internale-lan-netmap/139346/2 "2020-05-08T20:18:34Z")

</div>

Yes, _action=netmap_ rules in chains _src-nat_ and _dst-nat_ of _/ip firewall nat_ do exactly this. Just bear in mind that if you want “transparent” traffic, i.e. that connections could be established in either direction, you must have the appropriate rule in both chains, as it is still a NAT handling, i.e. it is assigned to a connection when the firewall handles its very first packet.

---

<div class="post-metadata">

**Author:** ![aleab](https://forum.mikrotik.com/letter_avatar/aleab/32/6_449c533f586939b6e5f246632a46421f.png) [@aleab](https://forum.mikrotik.com/u/aleab)\
**Post date:** [May 9, 2020, 6:49am UTC](https://forum.mikrotik.com/t/internale-lan-netmap/139346/3 "2020-05-09T06:49:01Z")

</div>

ok thank you fo reply.

so it’s correct use this rules (both direction)

> /ip firewall nat add chain=dstnat dst-address=192.168.89.0/24 action=netmap to-addresses=192.168.88.0/24  
> /ip firewall nat add chain=srcnat dst-address=192.168.88.0/24 action=netmap to-addresses=192.168.89.0/24

or i add other rules?

i will try…  
thank you

---

<div class="post-metadata">

**Author:** ![sindy](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/sindy/32/55716_2.png) [@sindy](https://forum.mikrotik.com/u/sindy)\
**Post date:** [May 9, 2020, 7:13am UTC](https://forum.mikrotik.com/t/internale-lan-netmap/139346/4 "2020-05-09T07:13:00Z")

</div>

You may want to restrict those rules only to traffic incoming or outgoing via a particular interface or from/to a particular remote address (or address range, or address list), but yes, the baseline rules are these.

---

<div class="post-metadata">

**Author:** ![aleab](https://forum.mikrotik.com/letter_avatar/aleab/32/6_449c533f586939b6e5f246632a46421f.png) [@aleab](https://forum.mikrotik.com/u/aleab)\
**Post date:** [May 9, 2020, 8:53am UTC](https://forum.mikrotik.com/t/internale-lan-netmap/139346/5 "2020-05-09T08:53:03Z")

</div>

ok, thank you. i have a “normal” lan with more devices but is a single class, so for now i don’t need to setup particular interface or remote address.

i will try this and then post if works.

thank you again

---

<div class="post-metadata">

**Author:** ![aleab](https://forum.mikrotik.com/letter_avatar/aleab/32/6_449c533f586939b6e5f246632a46421f.png) [@aleab](https://forum.mikrotik.com/u/aleab)\
**Post date:** [June 26, 2020, 9:48am UTC](https://forum.mikrotik.com/t/internale-lan-netmap/139346/6 "2020-06-26T09:48:15Z")

</div>

work perfect  
thank you
