Community discussions

MikroTik App
 
rossifw
just joined
Topic Author
Posts: 2
Joined: Tue Apr 28, 2020 6:28 am

Public IP Assignment

Sun Apr 18, 2021 5:28 pm

My ISP delivers more than 1 ip to me via DHCP.
How do I get another device on my network to request a public ip?

Schematic example attached
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19100
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Public IP Assignment

Sun Apr 18, 2021 9:22 pm

According to the wiki, on uses netmapping. However I have no experience with mutiple WANIPs from a single provider.
1:1 mapping

If you want to link Public IP subnet 11.11.11.0/24 to local one 2.2.2.0/24, you should use destination address translation and source address translation features with action=netmap.

/ip firewall nat add chain=dstnat dst-address=11.11.11.0/24 \
action=netmap to-addresses=2.2.2.0/24

/ip firewall nat add chain=srcnat src-address=2.2.2.0/24 \
action=netmap to-addresses=11.11.11.0/24

Who is online

Users browsing this forum: Bing [Bot], synchro and 108 guests