how to use public ip and local ip in same ethernet ?

i have x86 machine where i installed routeros version 4.5 and i buy 1 Mbps bandwidth with 16 usable hosts.
My customer behind Mikrotik and wants 256 kbps bandwidth with public ip to use internet.
How can i provide this service to my customer.Please see the image that i attached.
problem.gif

You can’t give him the IP directly since it isn’t routed IP space. You need to NAT. Destination NAT is explained in the wiki NAT manual. There’s also a manual for simple queues, which will explain how to rate limit.

Make sure that you customer always gets the same ips and then map each of his ips with a real one.

add action=src-nat chain=srcnat comment="Static IPs Outgoing Nat" disabled=\
    yes out-interface=ether2-pppoe src-address=192.168.0.100 to-addresses=\
    202.xx.xx.20 
add action=dst-nat chain=dstnat comment="Static IPs Incoming Nat" disabled=\
    yes dst-address=202.xx.xx.20 in-interface=ether2-pppoe to-addresses=\
    192.168.0.100

Create a set of rules for each static ip you give him

If mikrotiks wan ip is belongs to the same subnet as your real ips, add all your real ips to mikrotik’s wan interface.
This works for me
As far as bandwidth is concerned, you will have to use queues