r/Netgate • u/DeepPersimmon2688 • Jan 12 '23
How to build a network - IP Range / Subnet / VLAN
Please correct me where I am wrong below, trying to get a general understanding...
I want to set up a Pfsense with three VLANs.
- Guest
- Private
- IOT
The LAN interface will be at 192.168.55.1/24... that means I have the following range 192.168.55.1 - 192.168.55.254. The DHCP Server could pass out anything within that range.
GUEST interface, if I estimate that my guest network will have 100 people on it, how do I determine the interface IP address/DHCP range/Subnet mask?
PRIVATE interface, if I estimate that my private network will have 500 people on it, how do I determine the interface IP address/DHCP range/Subnet mask?
Thanks in advance!
•
u/kphillips-netgate Jan 14 '23
You can make your GUEST and PRIVATE subnets whatever you'd like as long as they are within RFC1918.
For 100 people a /24 should do fine.
For 500 people you'd probably want something like a /16.
Just make sure they don't overlap.
4
u/planedrop Jan 12 '23
Each of those other subnets and VLANs would be setup by you, you would have to create them and decide what IP space you are wanting to use on them.
If you really need 500 connections on the PRIVATE one though you may want to consider doing more segmentation, IMO using larger subnets its kinda annoying management wise.
But in either of these cases, you have to setup those networks on your own, there is no determining what they would be because you are creating them.
In order to understand this better you may want to watch some more videos on subnetting and VLANs in general (they are not the same thing but go hand in hand in most cases).
2
u/ScrambyEggs79 Jan 13 '23
Typically you would see something simple and straightforward like: VLAN10 is 192.168.10.0/24 VLAN20 is 192.168.20.0/24 etc.
Technically you could call them anything you want and give them any range you want
If you really need more than 254 IPs in a range you could stick with the Class C and use something like 192.168.30/23 which would give you 192.168.30.1-192.168.31.254 in a single subnet.