Home / Notes / Small Office Network Setup
NOTES · SMALL OFFICE / RETAIL NETWORK BUILD

Small Office Network from Scratch: Router, Switch and Wireless in One Pass

A worked deployment for a small store network — a customer Wi-Fi peak of roughly 200 devices and about 20 staff on wired and wireless — using a Huawei AR6300 router as the Internet gateway, an S5731-S switch for VLANs, DHCP and access control, and an AC6605 wireless controller for guest and staff Wi-Fi, brought up in the order that actually avoids rework: VLANs first, then the gateway, then DHCP, then wireless.

By the AtlasCommTech engineering team — 13 years of carrier & enterprise network deployments · Updated July 2026

Why the Order of Operations Matters

Get the sequence wrong here and you end up re-touching every box in the stack at least once.

This is a three-box small-store build: a Huawei AR6300 router as the Internet-facing gateway, an S5731-S switch doing the VLAN, DHCP and access-control work, and an AC6605 wireless controller running two separate SSIDs — one for customers, one for staff — across a set of AP6050DN access points. It's sized for a store with a customer Wi-Fi peak around 200 devices and roughly 20 staff on wired and wireless combined, which is enough scale that "just plug it all in and configure whatever's in front of you" reliably produces rework.

What follows is the configuration in the order that avoids that rework — VLANs, then the gateway, then DHCP, then wireless — with the CLI taken directly from the underlying configuration files, five gotchas this exact configuration quietly depends on, and how to actually confirm each piece is working rather than just assuming it is.

Topology and Data Plan

One gateway, one switch, one wireless controller — six VLANs between them.

Internet AR6300Gateway · NAT + PPPoE S5731-SSwitch · VLANs + DHCP + ACL VLAN103 · 10.103.1.0/24 AC6605Wireless controller VLAN100 9× AP6050DNSSID guest (Portal) · SSID employee (WPA2) Staff wired PCVLAN2200 · 192.168.220.0/24 VLAN2200 Guest: VLAN2000 Staff Wi-Fi: VLAN2100

Diagram labels are kept in English for engineering clarity.

VLAN Plan

VLANRoleNotes
VLAN100AC / management linkThe AC's wireless-management VLAN — also what the switch uses to talk to the AC.
VLAN102Access point VLANThe VLAN the AP6050DN units sit in; DHCP option 43 here points every AP at the AC.
VLAN103Switch-to-router uplinkCarries traffic between the S5731-S switch and the AR6300 gateway.
VLAN2000Guest wireless accessCustomer Wi-Fi, Portal-authenticated, rate-limited per client.
VLAN2100Staff wireless accessEmployee Wi-Fi, WPA-WPA2 authenticated, no rate limit.
VLAN2200Staff wired accessThe wired desktop in this example.

Addressing

InterfaceAddressRole
AR6300 Dialer1 (WAN)PPPoE-negotiatedInternet-facing interface; the address comes from the ISP.
AR6300 Vlanif110.103.1.2/24LAN-side gateway facing the switch.
S5731-S Vlanif10010.100.1.1/24Gateway for the AC / management VLAN.
S5731-S Vlanif10210.102.1.1/24Gateway + DHCP for the AP VLAN.
S5731-S Vlanif10310.103.1.1/24Uplink toward the AR6300 gateway.
S5731-S Vlanif2000192.168.200.1/24Gateway + DHCP for guest Wi-Fi.
S5731-S Vlanif2100192.168.210.1/24Gateway + DHCP for staff Wi-Fi.
S5731-S Vlanif2200192.168.220.1/24Gateway + DHCP for the wired desktop.
AC6605 Vlanif10010.100.1.2/24The AC's own management / source address.

Devices and Software Versions in This Example

DeviceRoleSoftware version
AR6300Internet gatewayV300R019C10
S5731-SAccess / aggregation switchV200R019C10
AC6605Wireless controllerV200R019C10
AP6050DNAccess point (×9)V200R019C00

Configuration Order: VLANs, Gateway, DHCP, Wireless

Each stage below only works because the previous one is already in place — that's why the order matters.

  1. Create every VLAN and its VLANIF address on the switch first, before anything is trunked toward the AC or routed toward the gateway.
  2. Bring up the gateway: PPPoE dial-out, NAT outbound, and a static route back to each VLAN sitting behind the switch.
  3. Turn on DHCP on the switch for every VLAN a client actually sits in — the AP VLAN, both wireless VLANs, and the wired VLAN.
  4. Configure the wireless controller last: two SSIDs, two authentication methods, one shared set of access points.
  5. Verify guest and staff traffic behave the way the ACL and authentication design intend, not just that Wi-Fi "shows connected".

1. VLANs First

Every VLAN in this deployment is created and given its VLANIF address on the S5731-S switch before anything is trunked toward the AC or routed toward the AR6300 gateway.

[S5731-S] vlan batch 100 102 to 103 2000 2100 2200
#
interface Vlanif100
 ip address 10.100.1.1 255.255.255.0
#
interface Vlanif102
 ip address 10.102.1.1 255.255.255.0
#
interface Vlanif103
 ip address 10.103.1.1 255.255.255.0

2. The Gateway — PPPoE, NAT and the Routes Back to Every VLAN

AR6300 is the only device in this design that talks to the Internet directly. It dials out over PPPoE, applies NAT outbound so every private VLAN can share that single public address, and carries a static route back to each VLAN sitting behind the switch.

#
acl name GigabitEthernet0/0/0 2999
 rule 5 permit
#
interface Dialer1
 link-protocol ppp
 ppp chap user admin
 ppp ipcp dns admit-any
 ppp ipcp dns request
 ip address ppp-negotiate
 dialer user arweb
 dialer bundle 1
 dialer number 1 autodial
 dialer-group 1
 nat outbound 2999
#
interface Vlanif1
 ip address 10.103.1.2 255.255.255.0
#
interface GigabitEthernet0/0/0
 pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/0/2
 portswitch
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
ip route-static 10.102.1.0 255.255.255.0 10.103.1.1
ip route-static 192.168.200.0 255.255.255.0 10.103.1.1
ip route-static 192.168.210.0 255.255.255.0 10.103.1.1
ip route-static 192.168.220.0 255.255.255.0 10.103.1.1

The PPP CHAP/PAP cipher password lines and the dialer-rule block are omitted from this excerpt — set your own PPPoE credentials and dialer-rule 1 ip permit as usual.

3. DHCP — Four Pools, One Switch

The switch, not the router, hands out addresses on every VLAN a client can actually sit in: the AP VLAN, both wireless VLANs, and the wired VLAN.

[S5731-S] dhcp enable
#
interface Vlanif102
 dhcp select interface
 dhcp server dns-list 114.114.114.114
 dhcp server option 43 sub-option 3 ascii 10.100.1.2
#
interface Vlanif2000
 ip address 192.168.200.1 255.255.255.0
 dhcp select interface
 dhcp server dns-list 114.114.114.114
#
interface Vlanif2100
 ip address 192.168.210.1 255.255.255.0
 dhcp select interface
 dhcp server dns-list 114.114.114.114
#
interface Vlanif2200
 ip address 192.168.220.1 255.255.255.0
 dhcp select interface
 dhcp server dns-list 114.114.114.114

4. Wireless — Two SSIDs, Two Authentication Methods

AC6605 runs two SSIDs on the same set of access points: guest, Portal-authenticated and rate-limited, and employee, WPA-WPA2 authenticated with no rate limit.

[AC6605] portal local-server ip 10.100.1.3
[AC6605] portal local-server url 10.100.1.3
[AC6605] portal local-server https ssl-policy default_policy port 20000
#
[AC6605] authentication-profile name guest
[AC6605-authentication-profile-guest] portal-access-profile guest
[AC6605-authentication-profile-guest] authentication-scheme guest
#
[AC6605] portal-access-profile name guest
[AC6605-portal-access-profile-guest] portal local-server enable
#
wlan
 traffic-profile name guest
  rate-limit client up 1000
  rate-limit client down 2000
 security-profile name guest
 security-profile name employee
  security wpa-wpa2 psk pass-phrase Example@123 aes-tkip
 ssid-profile name guest
  ssid guest
 ssid-profile name employee
  ssid employee
 vap-profile name guest
  service-vlan vlan-id 2000
  ssid-profile guest
  security-profile guest
  traffic-profile guest
  authentication-profile guest
 vap-profile name employee
  service-vlan vlan-id 2100
  ssid-profile employee
  security-profile employee

The WPA-WPA2 pass-phrase shown is the source example's own placeholder — always set a unique pass-phrase of your own.

5 Gotchas This Configuration Actually Hides

Every one of these lives inside a single line of the configuration above — easy to miss, expensive to debug blind.

1. Leave VLAN 1 Allowed on a Trunk and Every AP Port Bridges Onto It

SYMPTOMWireless clients associate fine, but devices land on VLANs you didn't expect, or an AP won't settle onto the VLAN you planned for it.

CAUSEBy default, a Huawei switch trunk port allows VLAN 1 and treats it as the native VLAN. Left at its defaults, untagged traffic — and anything that happens to match VLAN 1 — rides along on every AP-facing or AC-facing trunk, right next to the VLANs you intentionally isolated.

FIXEvery AP-facing and AC-facing trunk in this deployment explicitly removes VLAN 1 and sets both a PVID and an explicit allowed-VLAN list.

[S5731-S-GigabitEthernet0/0/1] port link-type trunk
[S5731-S-GigabitEthernet0/0/1] port trunk pvid vlan 102
[S5731-S-GigabitEthernet0/0/1] undo port trunk allow-pass vlan 1
[S5731-S-GigabitEthernet0/0/1] port trunk allow-pass vlan 102 2000

2. Forget DHCP Option 43 and the AP Never Finds the Controller

SYMPTOMAn AP powers up on the AP VLAN, pulls an IP address, but never registers to the AC — it just sits there.

CAUSEThe AP and the AC (Vlanif100, 10.100.1.2) are on different VLANs and subnets, so the AP has no way to discover the AC's address by broadcast alone — that address has to be handed to it inside the DHCP response.

FIXThe DHCP pool serving the AP VLAN carries the AC's address as DHCP option 43, sub-option 3, so every AP gets it automatically the moment it gets an IP address.

[S5731-S-Vlanif102] dhcp select interface
[S5731-S-Vlanif102] dhcp server dns-list 114.114.114.114
[S5731-S-Vlanif102] dhcp server option 43 sub-option 3 ascii 10.100.1.2

3. Guest Isolation Lives on a VLAN ACL, Not an Interface ACL

SYMPTOMAn ACL gets added to the trunk port carrying guest traffic, expecting it to block guest-to-staff traffic — and it doesn't behave the way an interface ACL normally would.

CAUSEIn this design, guest isolation is enforced by binding the ACL to VLAN 2000 itself, not to a physical interface — it has to catch guest traffic no matter which physical port the guest device happens to be associated through.

FIXDefine the deny rules in a named ACL, then bind it with traffic-filter vlan 2000 inbound — not on any single GigabitEthernet interface.

[S5731-S] acl name vlan2000 3999
[S5731-S-acl4-advance-vlan2000] rule 5 deny ip source 192.168.200.0 0.0.0.255 destination 192.168.220.0 0.0.0.255
[S5731-S-acl4-advance-vlan2000] rule 10 deny ip source 192.168.200.0 0.0.0.255 destination 192.168.210.0 0.0.0.255
[S5731-S] traffic-filter vlan 2000 inbound acl name vlan2000

4. The Guest Portal Redirect Depends on One Line You Can Forget to Update

SYMPTOMGuest devices associate to the guest SSID and get an IP address, but the Portal login page never appears — the connection just looks stuck before authentication.

CAUSEAn unauthenticated guest device still needs to resolve DNS before it can be redirected to the Portal page, so the free-rule template explicitly permits reaching the DNS server address before authentication. If the DNS address in the DHCP pool is ever changed without updating this rule, the two fall out of sync and the redirect breaks silently.

FIXKeep the free-rule destination address and the DHCP-assigned DNS server address as the same IP — 114.114.114.114 in this example — every time either one changes.

[AC6605] free-rule-template name default_free_rule
[AC6605-free-rule-default_free_rule] free-rule 1 destination ip 114.114.114.114 mask 255.255.255.255

5. "authentication-mode none" Does Not Mean Open Access

SYMPTOMReading the AAA scheme for the guest authentication profile for the first time, it looks like guest Wi-Fi has no authentication at all — but users still see a login/notice page.

CAUSEauthentication-mode none tells the AAA scheme not to layer 802.1X or MAC-address authentication on top of what's already happening — it does not mean unauthenticated. The actual authentication challenge for guest traffic is handled entirely by the Portal profile referenced in the same authentication-profile.

FIXRead authentication-scheme and portal-access-profile together, not authentication-scheme in isolation, before concluding an SSID is or isn't authenticated.

[AC6605] aaa
[AC6605-aaa] authentication-scheme guest
[AC6605-aaa-authen-guest] authentication-mode none

How to Confirm It's Actually Working

"Connected" on a phone's Wi-Fi icon is not the same as "on the right VLAN, behind the right ACL".

  1. Guest Wi-Fi: a customer device should find an SSID named guest, associate, and be walked through the Portal login flow before Internet access opens up.
  2. Guest addressing: once associated to guest, the device's DHCP-assigned address should fall inside 192.168.200.0/24 — and a ping from that device to the staff wireless gateway (192.168.210.1) should fail, confirming the VLAN ACL is actually blocking it.
  3. Staff Wi-Fi: a device should find the employee SSID, associate using the WPA-WPA2 pass-phrase, get an address inside 192.168.210.0/24, and reach the Internet normally — no Portal step.
  4. Staff wired: the one wired desktop should pull an address inside 192.168.220.0/24 and, unlike the guest network, should be able to ping the staff wireless gateway (192.168.210.1) — confirming staff wired and staff wireless share reachability while guest stays fenced off.

If an AP never shows up at the AC at all, the first two things to check are always the same: is the AP-to-AC route actually reachable across VLAN100/VLAN102, and does the AP's DHCP lease actually carry option 43 with the AC's real address.

Related solution designs

FAQ

The questions that come up most once engineers actually try to reproduce this build.

Do I really need a dedicated wireless controller for a store this size?

This design puts a dedicated AC6605 in the stack specifically because its 9 AP6050DN units sit on VLAN102 while the AC sits on VLAN100 — a routed L3 boundary between them. Once APs are spread across more than a handful and register across a routed network rather than one flat VLAN, a controller earns its place; a smaller single-VLAN Wi-Fi setup might not need one.

Why does the switch, not the router, run DHCP for every VLAN?

In this design, the S5731-S switch is the DHCP server for Vlanif102 (APs), Vlanif2000 (guest), Vlanif2100 (staff Wi-Fi) and Vlanif2200 (staff wired) — the AR6300 router only handles NAT and PPPoE and forwards a default route. Centralizing DHCP at the switch keeps every address pool right next to the Layer-3 gateway that actually serves it.

What stops a guest laptop from reaching the staff desktop?

The named ACL vlan2000 (rules 5 and 10, both deny) is bound inbound on VLAN 2000, blocking guest-to-staff-wireless and guest-to-staff-wired traffic, while the default route through AR6300 still lets guest traffic reach the Internet.

The store also has one wired PC — what VLAN does that sit on?

VLAN2200, with its own dedicated VLANIF gateway and DHCP scope, on a plain access port (not a trunk) toward the desktop — kept separate from every wireless VLAN in the design.

Can this same three-box pattern scale to a bigger store with more APs?

This exact build is sized for roughly 200 peak guest Wi-Fi devices, about 20 staff, and 9 access points on one AC. A meaningfully bigger site — more APs, more switches, redundant controllers — starts to look like a full campus design rather than a variation on this store build; see the related solution designs below.

Honest Limits of This Note

This note is built around one worked example: a single AR6300 gateway, a single S5731-S switch and one AC6605 controller serving nine AP6050DN access points, sized for a store with a customer Wi-Fi peak around 200 devices and about 20 staff. A bigger store, multiple aggregation switches, a redundant controller, 802.1X instead of a shared WPA-WPA2 pass-phrase, or a wired WAN uplink instead of PPPoE all shift enough details that they deserve their own configuration, not a variation bolted onto this one.

Building something similar and stuck on one box?

Router, switch or wireless controller — tell us which piece and what you're seeing, and we'll help you work through it.

WhatsApp an engineer →