Community discussions

MikroTik App
 
mariogrip
just joined
Topic Author
Posts: 2
Joined: Sat Dec 17, 2016 1:58 am

Link public ip to local ones

Sat Dec 17, 2016 2:16 am

Hi all,

I have been trying for several days to get my block of public IPs to work with no luck...

I got this mail from my ISP, they said that "We have now routed 62.XX.X.1/29 as second subnet (gw 62.XX.X.1) and we have 1:1 nat your ip 172.16.XX.2 to 62.XX.X.3 and routed the subnet 62.XX.X.64/26 to 62.XX.X.3 (your wan ip)" (roughly translated from Norwegian). First of all i'm not 100% what they mean with that...

I have been trying to setup "src-nat" but that does not seem to work. I followed this guide: http://wiki.mikrotik.com/wiki/How_to_li ... Local_ones.
My mikrotik routers ip is 172.16.XX.2 (/24) and the gateway is 172.16.XX.1.

Anyone have any idea how I can do this?
 
tr00g33k
Frequent Visitor
Frequent Visitor
Posts: 89
Joined: Sun Mar 29, 2015 3:58 pm

Re: Link public ip to local ones

Sat Dec 17, 2016 4:02 pm

Hi all,

I have been trying for several days to get my block of public IPs to work with no luck...

I got this mail from my ISP, they said that "We have now routed 62.XX.X.1/29 as second subnet (gw 62.XX.X.1) and we have 1:1 nat your ip 172.16.XX.2 to 62.XX.X.3 and routed the subnet 62.XX.X.64/26 to 62.XX.X.3 (your wan ip)" (roughly translated from Norwegian). First of all i'm not 100% what they mean with that...

I have been trying to setup "src-nat" but that does not seem to work. I followed this guide: http://wiki.mikrotik.com/wiki/How_to_li ... Local_ones.
My mikrotik routers ip is 172.16.XX.2 (/24) and the gateway is 172.16.XX.1.

Anyone have any idea how I can do this?
First:"We have now routed 62.XX.X.1/29 as second subnet (gw 62.XX.X.1)

Now you can set on interface that connect to your ISP and have IP 172.16.xx.2 any IP inside 62.xx.x1/29 except .xx.x.1 that was routed to you.

Your default route should be:
/ip route add dst-address=0.0.0.0/0 gateway=62.XX.X.1
Second:and we have 1:1 nat your ip 172.16.XX.2 to 62.XX.X.3

Evrything that comes from your IP 172.16.xx.2 even LAN`s NATed through whis IP are going to show out to the world as 62.XX.X.3, and evrything that comes from internet to IP 62.XX.X.3 will get to your IP 172.16.xx.2, than you can do anything you want whit this packets.

Third: and routed the subnet 62.XX.X.64/26 to 62.XX.X.3

And you can set on interface that connect to your ISP any IP from segment 62.XX.X.64/26

If your translation is correct, this should be how i would explain my self this email.

Who is online

Users browsing this forum: Google [Bot], VirtualEvan and 97 guests