Page 1 of 1
How to route public IP without NAT
Posted: Sat Dec 20, 2014 4:30 pm
by endlessroot
I have two interfaces on my mikrotik: WAN and Local
I get x.x.x.54/32 ip address assigned by my ISP for the WAN interface on the mikrotik.
ISP routed one x.x.x.80/28 block to me, with gateway 46.254.128.49, how can I assign IP addresses from that /28 block to devices behind the local interface without nat?
I tried adding to the local interface x.x.x.81/28 and added a static route with dst. Address x.x.x.80/28 Gateway: x.x.x.49
When i setup device with static ip x.x.x.82 gw:x.x.x.81 I can only ping the mikrotik gateway 81 and nothing beyond that.
Thanks for your time
![Smile :)](./images/smilies/icon_smile.gif)
Re: How to route public IP without NAT
Posted: Sun Dec 28, 2014 4:39 pm
by endlessroot
Seriously? No one?
Re: How to route public IP without NAT
Posted: Sun Dec 28, 2014 8:18 pm
by kmok1
Did you set a default route?
Re: How to route public IP without NAT
Posted: Mon Dec 29, 2014 2:24 am
by Quindor
On a quick overview you just give your router the x.x.x.54/32 IP addresses and the gateway of your external provider router interface.
Then, put an IP of the x.x.x.81/28 range on one of your Local ports and set the rest of the IP addresses to your clients (manual or DHCP). Make sure the 'internal' IP you picked is listed as their gateway. It will route all traffic without any rules or NAT. NAT is not needed because your router know's which IP's are behind it and so does your provider router.
So a client will hop from it's own IP to it's gateway (your router) and then then your router will send it to it's gateway, the provider router. That way, everything knows where to go!
Hopefully this helps you with your problem!
Re: How to route public IP without NAT
Posted: Mon Dec 29, 2014 6:57 pm
by endlessroot
It didn't work, I already tried that. The ISP tells me everything is normal from their end.
Re: How to route public IP without NAT
Posted: Mon Dec 29, 2014 7:35 pm
by Quindor
It didn't work, I already tried that. The ISP tells me everything is normal from their end.
Can you ping something on the internet from the routerboard itself?
Re: How to route public IP without NAT
Posted: Mon Dec 29, 2014 10:49 pm
by wima
I have two interfaces on my mikrotik: WAN and Local
I get x.x.x.54/32 ip address assigned by my ISP for the WAN interface on the mikrotik.
ISP routed one x.x.x.80/28 block to me, with gateway 46.254.128.49, how can I assign IP addresses from that /28 block to devices behind the local interface without nat?
I tried adding to the local interface x.x.x.81/28 and added a static route with dst. Address x.x.x.80/28 Gateway: x.x.x.49
When i setup device with static ip x.x.x.82 gw:x.x.x.81 I can only ping the mikrotik gateway 81 and nothing beyond that.
Thanks for your time
![Smile :)](./images/smilies/icon_smile.gif)
something strange here. If your ISP assigned x.x.x.54/32 as your WAN link, why they're give 46.254.128.49 as your gateway for another block subnet, in this case x.x.x.80/28
if your WAN ip is x.x.x.54/32, i assume your default gateway is x.x.x.53/32, and your ISP should route x.x.x.80/28 via your WAN IP. After this done, all you have todo is put one of x.x.x.80/28 on your local interface, and this will be default gateway for your public IP devices.