Hi
I Have a Setup where i have about 2000 Public LAN IP’s witch are routet on one single WAN IP.
Where i have a CCR1016-12S-1S+ as an router.
Eg.
First IP : 62.147.147.26/30
With additional IP underneath routing on the first IP.
195.129.71.0/24
195.130.71.0/24
195.131.71.0/24
195.132.71.0/24
195.133.71.0/24
And so on in 8 different subnets.
In this setup each user have a Public IP and their Equipment.
And then then eg have the following config.
IP : 195.129.71.2/24
GW : 195.129.71.1
Witch is working fine.
But now i need to break the IP’s info some smaller networks where i again route multiple LAN IP’s on one WAN IP.
Because i need to attach a Zyxel router where i don’t have the possibility to add 30 individual WAN IP’s.
So that i hope would be possible is that i can take one IP and route a lot other IP’s on that one IP like for the main connection itself.
Something like.
WAN IP : 195.135.71.2
Additional IP under that IP
195.135.71.3 to 195.135.71.33
So that i can make firewall routes and NAT the the Zywall for each Public LAN IP.
Ore so that all IP’s from 195.135.71.3 to 195.135.71.33 is getting routet to the IP 195.135.71.2
Ore how its fits in with the subnets i am aware that i will loose some IP’s because some would be uses for the network and broadcast addresses.
Hope its giving sense what i mean.
I thing i maybe could be to end op with something like this
IP Subnet WAN : 195.135.71.2/27
Subnet : 255.255.255.224
Gateway : 195.135.71.1
LAN Pool IP : 195.135.71.32/27
Start IP : 195.135.71.34
End IP : 195.135.71.62
Subnet : 255.255.255.224
Broadcast IP : 195.135.71.63
Gateway : 195.135.71.33
But i dont know how to Route those LAN IP’s to the one WAN IP.
few ways of doing it. depends on how your LAN is set up.
if you use PPPoE, simple, assign public IP to each user who needs public IP. keep the reset routed through one public IP.
if not, I guess you have to either
use mangle rule to mark routing per LAN IP, or group of LAN IP,
create route per “routing mark” towards the public IP you would like to assign
PPPoE is easier in my view
I am not using PPPoE
Its a big network for at Student dorm, where i have 9 VLAN’s one for each Dorm.
Where each student have a small router in each room a small HAP Lite.
And now for the last VLAN i want to have multiple IP’s for a Room, just like some ISP are doing.
Like this example i found on the internet where the use get 5 available Public LAN IP’s.
But dont know how to implement that in my network.
IP Address WAN: 35.34.33.70
SUBNET MASK : 255.255.255.252
GATEWAY : 35.34.33.69
LAN POOL IP : 35.34.33.88/ 29
START IP : 35.34.33.90
END IP : 35.34.33.94
BROADCAST IP : 35.34.33.95
SUBNET MASK : 255.255.255.248
GATEWAY :106.51.238.89