Community discussions

MikroTik App
 
jarosoup
Long time Member
Long time Member
Topic Author
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Multiple static IPs on one interface

Sun Aug 22, 2004 11:23 am

I was curious if there is a hard set limit to the number of static IP addresses set to a given interface? Or, if not, a practical limit? I'd like to allow multiple (>20) public IPs to NATed clients on a NATed network. Is there a more elegant way to do this with MT?
 
signal
newbie
Posts: 33
Joined: Thu Aug 19, 2004 4:44 am

Sun Aug 22, 2004 6:20 pm

I think you would need 20 individual statments. It would be nice if it supported the ability to dst-nat entire networks., so you could dst-nat network a.a.a.0/29 to b.b.b.0/29 with one statment. Then a.a.a.1 would be natted to b.b.b.2, and a.a.a.2 would be natted to b.b.b.2 etc.
 
jarosoup
Long time Member
Long time Member
Topic Author
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Sun Aug 22, 2004 7:33 pm

Thanks for the reply. I've already figured out how to make it work, I'm just wondering if a MT box could handle say, a whole class C of public statics assigned to one interface which are NATed to the internal private network. Performance is what I'm really concerned about.

EDIT: To add to the question above...along with all of the statics, I'm also wondering if adding another different subnet to the internal interface and mapping the statics to those would cause any problems (while continueing to have the first subnet which serves IPs via DHCP)? I've got it working this way currently, and it runs fine. Just worried about load once this puppy is in place on a network.
 
signal
newbie
Posts: 33
Joined: Thu Aug 19, 2004 4:44 am

Sun Aug 22, 2004 8:03 pm

Personally, I don't see load as a problem.

Whether your masquerading 2000 people behind 1 address, or your one to one mapping 256 IP's outside to 256 IP's inside, a translation is a translation. It is not uncommon for translation tables of routers to have thousands or tens of thousands of mappings. From what I understand, the MT is very optimized router, and so I think the stuff your describing would be considered minimal effect on performance. You can always check /system resources to look at the cpu load.
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Mon Aug 23, 2004 12:43 pm

To signal: you should be able to src-nat or dst-nat whole networks (including a.a.a.0/29 to b.b.b.0/29). google for netfilter (iptables) DNAT and SNAT for more indepth information.

Who is online

Users browsing this forum: Abdelhadi, b4rgodus, FezzFest and 122 guests