I have ISP IP’s x.x.x.160 – x.x.x.176, and I need setup router to give this IP’s also to my local network through Public interface.
How to setup both interfaces Local and Public networks to work with same IP’s?
Yes, you are correct.
Assing public address to the remote interface, client will use local address, router perfroms address translation from public to local and vice versa.
There is also other way.
The network mask from your provider is x.x.x.160/28
You can devide the network into two small ones with mask 29 each:
x.x.x.160/29
x.x.x.168/29
The first one use with WAN interface and second one with LAN interface.
Then put a proper gateway from provider in your route table (which is actually made)
Then you can use 5 ip in your network.
You lose some ips but it works also.
Or better still, breakdown your /28 IPs as follows:
x.x.x.160/29
x.x.x.168/30
x.x.x.172/30
Use one of the /30 range on your wan. You are now free to assign the remaining /30 and /29 range on your lan interface. This way, you have 6 IPs to assign to your clients. No NAT, only routing.
skillful
I try put differents ranges: ISP have x.x.131.1/24 (in Public my address was x.x.131.160/24), but on Local interface i try to pur x.x.131.161/28