Community discussions

MikroTik App
 
Sledo
just joined
Topic Author
Posts: 7
Joined: Mon Nov 22, 2010 8:34 pm

How can i assign Public addresses to private clients ??

Thu Jul 28, 2011 9:57 am

Hi experts.
My question. I have a public IP pool adresses. How can i assign public IP to private clients without using NAT?
Regards.
 
Ivoshiee
Member
Member
Posts: 483
Joined: Sat May 06, 2006 4:11 pm

Re: How can i assign Public addresses to private clients ??

Thu Jul 28, 2011 10:05 am

Yes, if you be able to bridge your internal clients to your wan side.
 
jtroybailey
Member Candidate
Member Candidate
Posts: 176
Joined: Thu Oct 07, 2010 10:24 am
Location: Brisbane, Australia

Re: How can i assign Public addresses to private clients ??

Thu Jul 28, 2011 10:08 am

I assume that you have a current static ip and have been issued with a pool of ip addresses (in a different subnet to your current static ip). if so all you need to do is assign one of the addresses in the pool to your interface and then the rest of the addresses to the clients.
 
User avatar
aacable
Member
Member
Posts: 435
Joined: Wed Sep 17, 2008 11:58 am
Location: ISLAMIC Republic of PAKISTAN
Contact:

Re: How can i assign Public addresses to private clients ??

Thu Jul 28, 2011 11:08 am

Hi experts.
My question. I have a public IP pool adresses. How can i assign public IP to private clients without using NAT?
Regards.
Maybe something like this will help you, just for idea

First you should exclude your public IP from Default masquerading rule.

Just for example. To complete your task, you may ahve 3 Interfaces.

1 LAN interface,
1 WAN interface for Local IP nating (Default Masq Rule),
1 WAN for PUBLIC IP routing.

Further you have to add one mangle rule to mark public IP packets like this
/ip firewall mangle add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=public_ip passthrough=no protocol=tcp src-address= 1.1.1.1

and in route section , add gateway for these marked public ip like this
ip route add check-gateway=ping comment="Public IP Route" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=[ISP Gateway] routing-mark=public_ip
For public routing you should request to your ISP to route your IP pool on your 2nd public IP Address also.


HTH,
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: How can i assign Public addresses to private clients ??

Thu Jul 28, 2011 6:35 pm

It depends on your setup, and how you get that pool of IP addresses.

Is your subnet routed to you, or does it only exist on the WAN of your router? If it's routed, it's just a matter of assigning the subnet and the pool of public IP addresses to the LAN of your router.

If it's only on the WAN, thing get sticky and ugly. You'll need to contact your ISP and see if you turning on proxy-arp on your WAN will mess things up for them. If not, there is a proxy-arp hack that you can do to accomplish this.

I think this is the thread that describes how to do it:
http://forum.mikrotik.com/viewtopic.php?f=2&t=37963
 
Sledo
just joined
Topic Author
Posts: 7
Joined: Mon Nov 22, 2010 8:34 pm

Re: How can i assign Public addresses to private clients ??

Fri Jul 29, 2011 9:56 am

First of all thanks for your answers.

Let me explain how is my configuration.
Eth 1= Wan IP xxx.xxx.xxx.xxx (first pool)
Eth 2= lan Ip (some clients of this pool has NAT rule 1:1 to use one Ip from xxx.xxx pool.
Eth 3= lan Ip too.
Internet provider has been assigned me another pool of public IP for ex. ccc.ccc.ccc.ccc
I wonder to create a DHCP server wit this public pool to serve clients from Eth 3

Thanks a lot for your help.
Regards.
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: How can i assign Public addresses to private clients ??

Fri Jul 29, 2011 6:30 pm

If your ISP is routing that new block of IP addresses to you via your current subnet, then yes. Assign one of the IPs to the MikroTik on your LAN interface to become the default gateway for the clients, and set up the DHCP server. The MikroTik is a router, it will route between subnets and interfaces out of the box. Adjust firewall rules accordingly.
 
Sledo
just joined
Topic Author
Posts: 7
Joined: Mon Nov 22, 2010 8:34 pm

Re: How can i assign Public addresses to private clients ??

Wed Aug 03, 2011 6:19 am

Gentlemens, your coments were very useful to me.
Thanks a lot.
 
tamilmaran
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Mon Sep 05, 2011 9:36 pm

Re: How can i assign Public addresses to private clients ??

Sun Jul 01, 2012 8:05 pm

my isp gave the ip address as follow:
Ip: 14.102.69.2
mask: 255.0.0.0
gateway:14.102.69.1

Extra Public IP pool :
Ip series :14.102.69.33 - 64
subnet: :255.255.255.224
Gateway: 14.102.69.32
my expected config is given below:
expected config.jpg
i didnt configure my mikrotik in router mode, till now i used as ap in bridge mode only.
now i want to use it as a isp router.
my isp wont support for mikrotik routers.
experts help to get out my config. issue...
Thanks in advance.
You do not have the required permissions to view the files attached to this post.
 
Ivoshiee
Member
Member
Posts: 483
Joined: Sat May 06, 2006 4:11 pm

Re: How can i assign Public addresses to private clients ??

Mon Jul 02, 2012 1:17 am

If you have configured the Linux then it is the same with the MT - the same functionality is there and you just have to map them over. You must break your question up into little pieces as anyone is hardly willing to post you a working configuration out of air.
 
tamilmaran
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Mon Sep 05, 2011 9:36 pm

Re: How can i assign Public addresses to private clients ??

Mon Jul 02, 2012 6:41 am

I want to input the wan link into eth0 and get the main and extra public ip in same eth 1 port via connecting switch.
I dont have idea how to configure. Particularly get two different subnets in same eth1 port.

Who is online

Users browsing this forum: anav, burnduck, djvabe, Mr47, pmcsill and 119 guests