Hello,
I've got a dorm with ~ 150 students. The university is the internet provider and put a (I believe it is a router) device in. Fibre goes in, ethernet comes out.
So far, DHCP was enabled and giving out public IP addresses to the students.
The leases looked like 141.x.y.z/24 where z started at 20 and goes up to probably 254, GW is 141.x.y.1
So, in effect, the dorm has ~250 IP addresses from 141.x.y.1 to 141.x.y.254 while the router is 141.x.y.1
The university might cooperate when I approach them about changes being needed, but they will not enable any firewalling or give anyone access to the router.
Now, management wants the ability to block certain ports (p2p), see if someone is using too much bandwidth and/or the ability to temporarily block internet access for any device. Oh and of course, it needs to be cheap. So I found this sounds like a job for the edgerouter lite...
I put it behind the university router.
eth0 = WAN, 141.x.y.2
eth1 = students
eth2 = management (more on that later), 192.168.50.x/24
If I could/would give the students on eth1 a private network like 192.168.20.x/24, I would be done. But, and I admit, it makes some sense... If any student is misbehaving and a letter will come in with an IP address, management would like to see who is responsible. Using private IPs and NAT for the students would take that away, since all traffic would originate from erlite eth0 141.x.y.2
Therefore I would like to keep the public IPs for my students. And I tried with static routes. I realise before I did it probably will be hard, if not impossible to do, because I will have the same subnets (141.x.y.0/24) on two interfaces.
For now, I set it up with subnetting, so at the moment..
eth0 = 141.x.y.2/30 with gw 141.x.y.1
eth1 = 141.x.y.254/2, net 141.x.y.128/29 and dhcp giving out 129-253
eth2 = 192.168.50.1/24 management (still more later)
it works. but it wastes over 100 addresses that I would actually need since its more then 150 students. Granted, it is unlikely they all will be online at the same time, but then again, some may have more than one device. And leases do not get deleted the second someone goes offline. and and and - its not pretty enough.
Now, I realise, this may be silly and I am a noob. I admit, I am not a network technician, and I especially never did work with real routing protocols, public ip addresses. And I usually can setup simple static routes. And private address range is big, so I never had to really dive deep into this.
But now, now I am a bit out of my depth.
So, my question...
How can I get my students on eth1 to use 141.x.y.z/24 when the upstream gateway is on eth0 with 141.x.y.1 without losing the dpi or firewall possibilites?
I dont need NAT
I may be able to speak with the university to give me 141.x.y.z/23
How is it done in real life? I can not imagine every router on the internet burns a number of ip addresses.
I can feel I am missing something, but what...?!
Ah almost forgot. In fact, edit...
the management interface. management wants to access the er3lite webinterface to do stuff. They operate on a different network, use a different ISP. And they surprise surprise do not want the use a students computer or run in the cellar and plugin a cable. So I will use eth2, give it an IP in the other network, connect it to the other network and disable dhcp/dns for eth2. So the webinterface can be accessed via eth2, but the erlite3 wont be the gatway for that network... this is NOT a problem...
Thanks in advance
Catwiesel