Interesting Requirement!!

Hi,
Any one has solution to the following requirement?

I have a cyber cafe. I got 10 ips from my ISP. i.e, 192.168.20.31-192.168.20.40
Now I need those 10 ip to merge 1 ip so that i can get 128 kbps x 10 ip = 1280 kbps bandwidth.

[yes, you may think that why i need this?? coz. my isp take extra money if i take 256 kbps or 512 or 1280 kbps bandwidth. i.e, 128kbps = $10. so 10x10 = $100. but if i take 1280kbps then i need to pay $400]

Any idea?? please reply.

Thanks
Chap.

http://wiki.mikrotik.com/wiki/Manual:PCC

I concur with fewi, just wanted to comment that now we know where all of the IPv4 addresses are going :smiley:

Thank You fewi.

From your link i understand that this is possible with multiple gateways. But in my case it is same gateway.

chap

Does that mean you just need to spread over 10 IPs what you NAT to? And the ISP will rate limit you based on IP address, not line?

If so, that’s perfectly doable, too.

Assuming interfaces named WAN (192.168.31.0/24 with all your ISP assigned IPs configured) and LAN (10.0.0.1/24) that would be something like this for 3 IPs, you can scale it up to 10 yourself:

/ip address
add address=192.168.20.31/24 interface=WAN
add address=192.168.20.32/24 interface=WAN
add address=192.168.20.33/24 interface=WAN
add address=10.0.0.1/24 interface=LAN

/ip firewall mangle
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses:3/0 action=mark-connection new-connection-mark=to_IP1
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses:3/1 action=mark-connection new-connection-mark=to_IP2
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-addresses:3/2 action=mark-connection new-connection-mark=to_IP3

/ip firewall nat
add chain=srcnat out-interface=WAN connection-mark=to_IP1 action=src-nat to-address=192.168.20.31
add chain=srcnat out-interface=WAN connection-mark=to_IP2 action=src-nat to-address=192.168.20.32
add chain=srcnat out-interface=WAN connection-mark=to_IP3 action=src-nat to-address=192.168.20.33

PCC really has nothing to do with load balancing as such, or with circuits, or gateways: it’s just a way to predictably identify connections broken up into segments. What you then do with the identified connections is up to you. You can route them to different places, NAT them to different IPs, whatever.

Hold on…

Do you have 10 separate connections each with a different IP, or do you have a single connection with 10 IPs routed to it?

The requirement is really interesting ask ur ISP to give 1280 with compression as he must be doing for 128 kbps. may be he don’t have 1280 with compression . they r 1:1 lines