Designing and Documenting a Small Office Network
Bring the course together: gather requirements, choose the topology and devices, plan VLANs and a VLSM addressing scheme, design Wi-Fi, security and services (DHCP, DNS, NAT), add redundancy and monitoring, and document the result so someone else can run it. Then allocate subnets for a real requirement list in code.
1. A design process
Good networks come from a repeatable process, not from buying equipment and plugging it in.
- Requirements: who and what must be connected?
- Design: topology, addressing, VLANs, wireless, security, services.
- Select and procure equipment and services.
- Implement with a plan, a test, and a rollback.
- Document and hand over.
- Operate, monitor and improve.
This lesson walks through a design for a fictional office of about 100 staff, a guest Wi-Fi, IP phones, and a small server room, then lets you generate the addressing plan in code.
2. Gather requirements
| Question | Example answer |
|---|---|
| Users and devices | 100 staff (laptops, phones), 20 IP phones, 8 printers, 10 servers, 40 guests at peak |
| Applications | Cloud email and storage, VoIP, video calls, an on-prem file server, a line-of-business app |
| Bandwidth | Mostly internet and cloud; 300 Mbps business fibre plus LTE backup |
| Availability | Office hours, but the internet link is business critical: second link, UPS on core gear |
| Security and compliance | Guests isolated, staff separated from servers, card payments need a segmented network, logging |
| Growth | 30 percent more staff in 2 years |
| Constraints | Budget, space, power, existing cabling, support skills |
| Locations | One office, two floors, remote workers via VPN |
Write these down and have the owner agree. Everything later is justified by them.
3. The logical design
Topology: an extended star. A pair of core/distribution layer 3 switches (or one plus a spare) with access switches on each floor, and a firewall/router at the edge with two ISPs. For ~100 users a collapsed core is enough.
VLAN and subnet plan (one subnet per VLAN):
| VLAN | Purpose | Hosts needed | Allocation |
|---|---|---|---|
| 10 | Staff | 100 | /25 (126 usable) |
| 20 | Guest Wi-Fi | 50 | /26 (62 usable) |
| 30 | Voice | 20 | /27 (30 usable) |
| 99 | Management | 10 | /28 (14 usable) |
| 40 | Servers | 10 | /28 |
| 50 | IoT/printers | 10 | /28 |
VLSM: allocating variable-sized subnets
Variable Length Subnet Masking gives each subnet a size that fits its need, instead of using one mask everywhere. The procedure:
- List each subnet’s required hosts and add 2 (network and broadcast addresses).
- Round up to a power of two: that sets the prefix length (for 100 hosts: 102 needs 128 addresses, a /25).
- Sort from largest to smallest.
- Allocate sequentially from the start of the block, aligning each subnet on a multiple of its own size.
- Check there is no overlap and that the block is big enough.
- Leave a reserved, unallocated range for growth.
From 10.20.0.0/24: staff 10.20.0.0/25, guest 10.20.0.128/26, voice 10.20.0.192/27, management 10.20.0.224/28. The lab does exactly this.
Choose a private range (RFC 1918) that does not clash with other sites or VPN users: avoid the very common 192.168.0.0/24 and 192.168.1.0/24, which collide with home networks when staff use a VPN. Use a consistent scheme (for example the third octet equals the VLAN number) so addresses are easy to read.
Addressing conventions
- Gateway is the first usable address (
.1) in each subnet. - Static addresses for infrastructure (switches, APs, printers, servers) in a reserved portion; DHCP pool for clients in the rest, with reservations for devices that need fixed addresses.
- IPv6: plan a /64 per VLAN if your provider gives a prefix, and run dual-stack or at least do not break it.
4. Services and security
- DHCP per VLAN (on the layer 3 switch, firewall or a server) with a relay if centralised; options for gateway, DNS and the voice VLAN’s TFTP/provisioning server.
- DNS: internal resolver forwarding to reliable public resolvers, or the domain controller’s DNS if you run Active Directory.
- NAT at the edge for outbound; port forwards only where required (preferably none: use VPN or cloud services).
- Firewall policy between VLANs: staff to servers allowed on needed ports; guests to internet only; voice to the phone system; management reachable only from admin devices; default deny.
- Wi-Fi: WPA3 or WPA2-Enterprise for staff, isolated guest SSID with a captive portal or voucher, IoT on its own VLAN; plan APs by survey (see the wireless lessons).
- Remote access: VPN with MFA, or ZTNA.
- Switch hardening: management VLAN, SSH, disable unused ports, port security or 802.1X, STP edge protection, DHCP snooping.
- Time: NTP to all devices; logging to a central syslog server.
- Backups of device configurations and critical data; UPS for core equipment.
5. Redundancy and capacity
Decide what failure the business can accept:
- Internet: two links (fibre plus LTE or a second provider) with failover.
- Core: a spare switch, or two switches with stacked/MLAG uplinks from each access switch.
- Power: UPS with enough runtime to shut down gracefully.
- Wi-Fi: overlapping APs so one failure leaves coverage.
- Capacity: size uplinks for peak (for example 1 Gbps access, 10 Gbps core uplinks), PoE budget for phones and APs, and 30 to 50 percent address and port headroom.
6. Documentation
Documentation is part of the product. A new engineer should be able to operate the network from it. Keep:
- Logical diagram: devices, VLANs, subnets, routing, internet links, VPNs.
- Physical diagram and rack layouts: cabinets, patch panels, ports, cable labels.
- IP and VLAN plan: subnets, gateways, DHCP ranges, reservations, static assignments.
- Inventory: device models, serial numbers, firmware versions, locations, warranty and support.
- Configurations: backed up automatically and version-controlled.
- Procedures: how to add a user or VLAN, replace a switch, restore a backup, escalate.
- Contacts and contracts: ISP circuits and support numbers, vendors.
- Credentials: stored in a password manager or vault with access control; never in the diagram or a spreadsheet.
- Change log: what changed, when, by whom, why, and how to roll back.
Keep documents next to the work (a wiki, repository or tool such as NetBox) and update them as part of every change.
7. Implementation and handover
- Staging: configure and test equipment before it goes live; prepare config templates.
- Change plan: a window, a step-by-step list, who does what, verification tests, rollback.
- Testing: link speeds and errors, DHCP in each VLAN, inter-VLAN routing and blocked paths, Wi-Fi coverage and roaming, failover (pull the primary link), VPN, backups restore.
- Training and handover: show staff how to report problems; agree support hours and escalation.
- Review after go-live: monitor for a week, fix issues, update the documentation.
8. Hands-on: build the addressing plan
Use ipaddress to implement VLSM.
plan_vlsm(block, requirements):requirementsmaps a name to the number of hosts. Allocate in descending order of size; each subnet must hold the hosts plus 2 (a /30 is the minimum), be aligned on its natural boundary, and fit inblock(raiseValueErrorif it does not). Return{name: "network/prefix"}as text.gateway(subnet): the first usable host address as text.usable_hosts(subnet): number of usable host addresses (addresses minus 2).overlaps(subnets):Trueif any two networks in the list overlap.
A year later the guest VLAN needs 120 hosts but the /26 holds only 62 usable addresses. What are your options and how could the original plan have helped?
Renumber the guest VLAN into a larger block (for example a /25), using a reserved unallocated range left in the plan, and update DHCP, the firewall rules, documentation and any static references in a planned change window; or shorten the DHCP lease time as an interim measure for transient guests, or split guests across two VLANs. Leaving growth space (or allocating a larger guest block up front) and a reserved range would have made this a simple, low-disruption change.
Can You Explain It?
Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.
- Walk through the design process for a 100-person office, from requirements to handover.
- Explain VLSM and why subnets are allocated largest first on natural boundaries.
- List the documents you would hand to a new engineer and what each contains.
9. Key takeaways
- Requirements first: users, applications, bandwidth, availability, security, growth and budget drive the design.
- Use an extended star with VLANs per function, VLSM addressing with growth space, and a consistent plan.
- Provide services and security by design: DHCP, DNS, NAT, default-deny firewalling, isolated guest and IoT, hardened devices, monitoring and backups.
- Build in redundancy where the business cannot tolerate failure, and test failover.
- Document everything (diagrams, IP plan, inventory, configs, procedures) and keep secrets in a password manager.
🧪 Want to practise this on your own computer? See how to set up your lab →