Hello
I need to control bandwidth for some servers that are physically located in a datacenter.
Example: 79.28.22.200 up 256kbit, down 128kbit.
Now the ISP bring my a range of public IPs like 79.28.22.0/24 and I assign the IPs statically to each server. They are connected together to a switch that have in one port the ISP connection. The bandwidth is managed very basically thought the switch limiting the speed of each port.
The idea is to use a mikrotik to do something better. The first option was to configure each server with a private address and map each private address to each public address thought the use of dst-nat (out public to private) & src-nat (out private to public). The main problem of this is that each server must have a private address.
So I think in splitting the network in something like:
There is any better way to do this? I don´t know what the datacenter have in the other point of our connection, i only plug a RJ45 to our switch to get connectivity.
Thanks for your help, and excuse for my english i´m spanish.
In my opinion routing is better than nating at 90% of cases. In your case think the best choice is avoid
nat because you can do all the filter on mikrotik and keep resources of your mikrotik box for queues and
other jobs.
Splitting /24 you will have the following subnets:
I don’t know how many servers you have, but split will generete lots of lower prefixes, per ex. if you have more than
10 server you cannot put all of them inside the other /30 or /29 prefix, so think the best choice is call to your ISP
and ask if they can spare a /30 to make the connection and route all /24 to your mikrotik through that new /30.