|
| 1 | +--- |
| 2 | +title: 'IPv4 Subnetting & VLAN Design For A Small Branch Office' |
| 3 | +date: 2026-05-27T00:00:00-06:00 |
| 4 | +lastmod: 2026-02-18 |
| 5 | +summary: "" |
| 6 | +draft: true |
| 7 | +tags: ["networks"] |
| 8 | +--- |
| 9 | + |
| 10 | +## Summary |
| 11 | +--- |
| 12 | + |
| 13 | +I've wanted to notate some design that I've learned throughout the past two |
| 14 | +years for IPv4 subnetting. Think of this as kind of a template for a |
| 15 | +small office. I will go over the scenario and discuss some things to take into |
| 16 | +consideration with this design. But, apart from that. This should mostly just |
| 17 | +act as a template for future subnet designs. |
| 18 | + |
| 19 | +This will not discuss the full spectrum of architecture as far as building the |
| 20 | +network is concerned. It wont even go into detail on the infrastructure it's |
| 21 | +connecting to. This note is solely to act as a subnetting and VLAN template for |
| 22 | +either branch or small office. |
| 23 | + |
| 24 | +## Scenario |
| 25 | +--- |
| 26 | + |
| 27 | +This office doesn't host any services for other offices. These services are |
| 28 | +provided from the VPN tunnel it's attached to. It's just an office for |
| 29 | +users to come to in order to complete their work. There could be any number of |
| 30 | +departments in this office. Customer service, sales, marketing, and maybe even |
| 31 | +IT staff. This is just a branch of the existing network. So there is |
| 32 | +infrastrucutre that still exists. |
| 33 | + |
| 34 | +Though from the VPN tunnel(s) the office will be supplied with the following |
| 35 | +services. |
| 36 | + |
| 37 | +- iBGP routing |
| 38 | +- DHCP |
| 39 | +- DNS |
| 40 | +- NTP |
| 41 | +- A few internal applications hosted by the company. |
| 42 | + |
| 43 | +If anyone is interested in the infrastructure being installed however. Provided |
| 44 | +is a little list of materials. Just to provide a basic picture of what we have |
| 45 | +to work with. |
| 46 | + |
| 47 | +- 1x 12U Network Rack |
| 48 | +- 1x Firewall |
| 49 | +- 1x 48-Port POE 1 Gigabit Switch |
| 50 | +- 1x 24-port patch pannel |
| 51 | +- 1x 48-port patch pannel (For any growth) |
| 52 | +- 2x Wireless Access Points |
| 53 | +- 1x Rack moutned UPS |
| 54 | + |
| 55 | +Some of the requirements of this small office include: |
| 56 | + |
| 57 | +- Up to 20 - 30 users with corporate laptops and desktops. |
| 58 | +- A network to separate non corporaate devices like employee cell phones and |
| 59 | + other devices. |
| 60 | +- Wireless network will be needed for corporate traffic. |
| 61 | +- Wireless network will be needed for untrusted traffic. |
| 62 | +- There will be 5 - 8 cameras installed for surveillance. |
| 63 | +- There will be 2 badge controllers installed for door access. |
| 64 | +- There will be desk phones that need to be on their own network. |
| 65 | +- Management network for the network gear. (i.e. Firewall, Switches, UPS, and |
| 66 | + Wireless Access Points) |
| 67 | +- Printing and Scanning will be needed for documents. |
| 68 | +- A small loopback management subnet for managing the firewall. |
| 69 | + |
| 70 | +## Subnetting & VLANs |
| 71 | +--- |
| 72 | + |
| 73 | +In this network there is a `/16` block that is used for the coprorate branch |
| 74 | +networks. In case anyone was wondering that provides about 64 subnets in total |
| 75 | +so there can be up to `64` `/22` subnets. The `/22` subnet is useful because it |
| 76 | +provides `4` subnets. This provides everything needed for the corporate network |
| 77 | +within the branch office. Another `/24` subnet will be added to the network for |
| 78 | +untrusted traffic. |
| 79 | + |
| 80 | +### Subnets |
| 81 | +--- |
| 82 | + |
| 83 | +I will get the untrusted subnet out of the way because this is going to be |
| 84 | +segmented from the rest of the network using firewall rules and possibly within |
| 85 | +a VRF by itself. (This of course depends on if your router supports it) |
| 86 | + |
| 87 | +Note that the corporate network should not know about this. The firewall may |
| 88 | +even handle DHCP for this subnet as well. |
| 89 | + |
| 90 | +- **Untrusted Subnet:** 172.16.0.0/24 |
| 91 | + |
| 92 | +Now that's out of the way. The corporate network is next. I will provide the |
| 93 | +subnet template and then later I will explain it's usecases later. |
| 94 | + |
| 95 | +- **Corporate Network:** 10.12.64.0/22 |
| 96 | + - **Operations:** 10.12.64.0/24 |
| 97 | + - **Network Mgmt:** 10.12.64.0/27 |
| 98 | + - **Surveillance:** 10.12.64.128/28 |
| 99 | + - **Door Access:** 10.12.64.192/29 |
| 100 | + - **Print:** 10.12.64.200/29 |
| 101 | + - **Firewall Mgmt Loopback:** 10.12.64.254/32 |
| 102 | + - **Data:** 10.12.65.0/24 |
| 103 | + - **Wireless:** 10.12.66.0/24 |
| 104 | + - **Voice:** 10.12.67.0/24 |
| 105 | + |
| 106 | +#### Corporate Network 10.12.64.0/22 |
| 107 | + |
| 108 | +The subnet `10.12.64.0/22` is just the foundational block I'm working with here. |
| 109 | +This is useful to know for things like summarized routes. Although the networks |
| 110 | +would be housed in here. |
| 111 | + |
| 112 | +The primary function of having this available is route summarization so I'm |
| 113 | +not filling my advertised routes with a bunch of routes. Peers will see this |
| 114 | +network and know they can route traffic to the router hosting that network and |
| 115 | +not have to worry about the rest. |
| 116 | + |
| 117 | +- Network: 10.12.64.0 |
| 118 | +- Subnet Mask (CIDR): 255.255.252.0 (/22) |
| 119 | + |
| 120 | +#### Operations 10.12.64.0/24 |
| 121 | + |
| 122 | +Operations `10.12.64.0/24` is another placeholder network just intended to |
| 123 | +display the heiarchy of the network. This can also be used |
| 124 | + |
| 125 | +- Network: 10.12.64.0 |
| 126 | +- Subnet Mask (CIDR): 255.255.255.0 (/24) |
| 127 | + |
| 128 | +#### Network Mgmt 10.12.64.0/27 |
| 129 | + |
| 130 | +This subnet `10.12.64.128/28` |
| 131 | + |
| 132 | +#### Surveillance 10.12.64.0/22 |
| 133 | + |
| 134 | +This subnet `10.12.64.128/28` |
| 135 | + |
| 136 | +#### Corporate Network 10.12.64.0/22 |
| 137 | + |
| 138 | +This subnet `10.12.64.128/28` |
| 139 | + |
| 140 | +#### Corporate Network 10.12.64.0/22 |
| 141 | + |
| 142 | +This subnet `10.12.64.128/28` |
| 143 | + |
| 144 | +#### Corporate Network 10.12.64.0/22 |
| 145 | + |
| 146 | +This subnet `10.12.64.128/28` |
| 147 | + |
| 148 | +#### Corporate Network 10.12.64.0/22 |
| 149 | + |
| 150 | +This subnet `10.12.64.128/28` |
| 151 | + |
| 152 | +### VLANs |
| 153 | +--- |
| 154 | + |
| 155 | +- **Untrusted Subnet:** 1726 |
0 commit comments