Cambium Networks cnPilot 和 cnMaestro 与 Purple WiFi 的集成
本权威指南详细介绍了 Cambium Networks cnPilot 接入点和 cnMaestro 云控制器与 Purple WiFi 智能平台的集成。内容涵盖架构、Captive Portal 配置、围墙花园要求、802.1X 员工 WiFi,以及在多租户环境下使用 Cambium ePSK 进行的动态 VLAN 划分。
收听本指南
查看播客转录

执行摘要
对于标准化采用 Cambium Networks 基础设施的企业场所,部署生产级的访客 WiFi 解决方案需要无线接入层与身份管理平台之间的紧密集成。本指南为将 Cambium cnPilot 接入点和 cnMaestro 云控制器与 Purple WiFi 进行集成提供了确定性的蓝图。通过将 Cambium 的可扩展硬件与 Purple 的 Captive Portal、RADIUS 认证和分析功能相结合,IT 团队可以将无线网络从成本中心转变为战略资产。此处详述的架构支持从基础访客接入到使用 Cambium 专用预共享密钥 (PPSK) 的复杂多租户划分等各种场景,为酒店、零售和公共部门环境提供安全、合规且数据丰富的连接。
技术深度解析
Cambium Networks 与 Purple 之间的集成依赖于标准的 HTTP 重定向和 RADIUS 协议。这种独立于厂商的方法确保了强大的安全性、跨平台兼容性以及通过 cnMaestro 实现的集中式管理。
集成架构
其核心机制包括由 Cambium AP 管理的 Captive Portal 重定向,以及由 Purple 管理的 RADIUS 认证。

当访客设备关联到开放的访客 SSID 时,Cambium AP 会拦截初始的 HTTP 请求。AP 不会将流量路由到互联网,而是将设备重定向到 Purple 托管的 Captive Portal URL。访客在 Purple 的展示页面(splash page)上完成认证流程,该页面支持社交登录、电子邮件注册和自定义数据收集表单。
认证成功后,Purple 的后端会通过 UDP 端口 1812 向 Cambium AP 发送 RADIUS Access-Accept 消息。此消息指示 AP 将客户端设备从认证前的围墙花园(walled garden)状态过渡到完全网络访问状态。同时,AP 通过 UDP 端口 1813 向 Purple 发送 RADIUS 计费数据,从而在 Purple 的分析仪表板中填充会话时长、数据使用量和设备类型信息。
围墙花园要求
围墙花园是 Captive Portal 流程的关键组成部分。它定义了未认证设备可以访问的特定 IP 地址和域名。如果围墙花园配置错误,设备将无法加载 Purple 门户,从而导致连接超时。
要使集成正常运行,围墙花园必须包含 Purple 的门户域名、托管门户资产的任何内容分发网络 (CDN) 端点,以及任何受支持的身份提供商(如 Facebook、Google 或 Microsoft Entra ID)的域名。
使用 Cambium ePSK 进行多租户划分
Cambium 对专用预共享密钥(品牌名称为 ePSK)的实现允许网络架构师在不广播多个 SSID 的情况下安全地划分流量。

通过 ePSK,单个 SSID 最多可支持 2,000 个唯一的密码。每个密码都映射到一个特定的 VLAN。当用户使用其唯一密钥进行连接时,Cambium AP 会自动将其流量分配到指定的 VLAN 中。此功能对于多租户环境(如联合办公空间或住宅楼)非常宝贵,在这些环境中,每个租户都需要一个隔离的网络段。
Purple 通过 cnMaestro API 管理 ePSK 生命周期来与该架构集成,从而实现租户凭证的分发、VLAN 分配和撤销的自动化。
实施指南
部署 Cambium 和 Purple 的集成需要在 cnMaestro 云控制台中进行精确配置。请按照以下步骤建立基础访客 WiFi 服务。
1. 配置访客 WLAN
导航到 cnMaestro 中的 Configuration(配置)菜单,选择 WiFi Profiles(WiFi 配置文件),然后打开 WLANs 选项卡。创建一个新的 WLAN 配置文件。
- Name / SSID:定义访客网络名称(例如,“Venue Guest WiFi”)。
- Security:设置为 Open。
- Client Isolation:设置为 Enable,以防止访客设备在本地子网上相互通信。
2. 启用外部热点
在 WLAN 配置中,找到 Guest Access(访客接入)部分。
- Enable Guest Access:勾选此框。
- Portal Type:选择 External Hotspot。
- External Page URL:输入您的 Purple 客户经理提供的特定 Captive Portal URL。
3. 配置 RADIUS 认证和计费
在同一个 Guest Access 部分中,配置 RADIUS 参数。
- Authentication Server:输入 Purple 的主 RADIUS 服务器 IP 地址。
- Authentication Port:
1812 - Accounting Server:输入 Purple 的主 RADIUS 服务器 IP 地址。
- Accounting Port:
1813 - Shared Secret:输入 Purple 提供的复杂共享密钥。确保两端平台上的设置完全一致。
4. 定义围墙花园
在 External Hotspot 设置下,填充围墙花园列表。您必须添加核心 Purple 域名以及您所选认证方式所需的特定域名(例如,社交登录提供商)。
5. 为员工 WiFi 配置 802.1X
为了保障员工接入的安全,请在 cnMaestro 中创建一个单独的 WLAN 配置文件。
- Security:设置为 WPA2-Enterprise。
- RADIUS Server:指向端口 1812 上的 Purple RADIUS 服务器 IP。
员工通过 Microsoft Entra ID 或 Google Workspace 使用其企业凭证进行认证,Purple 验证。然后 Purple 会返回一个 Tunnel-Private-Group-ID RADIUS 属性,指示 Cambium AP 将员工设备分配到安全的企业 VLAN 中。
最佳实践
- VLAN Trunking(VLAN 中继): 确保连接到 Cambium AP 的交换机端口上已对所有必需的 VLAN(访客、员工、管理)进行了中继。如果中继中缺失了某个 VLAN,已认证的客户端将无法通过 DHCP 获取 IP 地址。
- 固件一致性: 将您的 AP 设备标准化为 cnPilot 固件版本 6.0 或更高版本。该版本为外部热点重定向和 ePSK 功能提供了最稳定的支持。
- 计费是强制性的: 切勿禁用 RADIUS 计费。Purple 完全依赖 UDP 1813 计费流来生成停留时间指标、访问频率数据和合规日志。
- 避免为员工使用本地 PSK: 在员工网络中,使用 802.1X 认证取代传统的共享密码。这种方法通过将网络访问与可审计的个人身份绑定,符合 ISO 27001 的要求。
故障排除与风险规避
当出现集成问题时,它们通常表现在初始的 Captive Portal 重定向或 RADIUS 认证阶段。
- Portal 页面加载失败: 这几乎总是围墙花园(Walled Garden)的问题。如果访客设备连接到 SSID,但收到连接超时而不是展示页面,则说明 AP 正在阻止对 Purple Portal 域名的访问。请验证您在 cnMaestro 中的围墙花园条目,并确保在认证前允许 DNS 解析。
- 认证失败(凭据无效错误): 检查 RADIUS 共享密钥。cnMaestro 与 Purple 之间的不匹配会导致 RADIUS 服务器静默丢弃认证请求。
- 设备已认证但无法访问互联网: 这表明动态 VLAN 分配或 DHCP 过程失败。请验证 Purple 是否在 RADIUS 响应中返回了正确的 VLAN ID,并确认交换机端口中继配置允许该 VLAN。
ROI 与业务影响
在 Cambium Networks 基础设施上部署 Purple WiFi,可将标准的网络工具转化为可衡量的商业资产。通过在认证点捕获第一方数据,场所可以构建全面的访客画像并开展精准的营销活动。
例如,Harrods 实施了 Purple Guest WiFi,并通过将捕获的数据与其会员计划相结合,实现了 57 倍的营销 ROI。同样,AGS Airports 通过利用分层带宽和针对性的旅客互动,实现了 842% 的 ROI。通过在 Cambium cnMaestro 和 Purple 上进行标准化,IT 领导者可以提供安全、合规的连接,同时为营销部门提供推动收入增长所需的数据。
关键定义
Captive Portal
A customized login page that requires users to authenticate or accept terms before gaining access to a public or enterprise WiFi network.
Used in Guest WiFi deployments to capture first-party data, enforce acceptable use policies, and present venue branding before granting internet access.
RADIUS
Remote Authentication Dial-In User Service; a networking protocol that provides centralized Authentication, Authorization, and Accounting (AAA) management.
The protocol Cambium APs use to communicate with Purple to verify user credentials and report session data.
Walled Garden
A limited environment that controls user access to web content and services pre-authentication.
Required in cnMaestro to allow guest devices to reach the Purple splash page and identity provider domains (like Facebook or Google) before they have full internet access.
ePSK
Enhanced Pre-Shared Key; Cambium's implementation of private pre-shared keys, allowing unique passphrases for individual users on a single SSID.
Used to provide secure, isolated network segments for multi-tenant environments without broadcasting numerous SSIDs.
Dynamic VLAN Assignment
The process of placing an authenticated device onto a specific Virtual Local Area Network based on RADIUS attributes rather than the physical port or SSID.
Allows IT to use a single SSID while securely separating guest traffic from staff or management traffic.
802.1X
An IEEE standard for port-based network access control, providing an authentication mechanism to devices wishing to attach to a LAN or WLAN.
The standard used for secure Staff WiFi, replacing shared passwords with individual corporate credentials validated against an identity provider.
cnMaestro
Cambium Networks' cloud-based or on-premises management platform for centralized control of wireless and wired network infrastructure.
The interface where network architects configure the WLAN profiles, RADIUS settings, and walled gardens required for the Purple integration.
First-Party Data
Information a company collects directly from its customers and owns entirely.
The primary business output of a Purple Guest WiFi deployment, used to drive marketing campaigns and understand visitor behavior.
应用实例
A 200-room hotel needs to deploy secure WiFi for guests, staff, and a conference centre. Guests require a branded captive portal, staff need secure access to internal systems, and the conference centre requires isolated networks for different event organizers. How should the network architect configure the Cambium cnMaestro environment to support this using Purple?
The architect should deploy three distinct WLAN profiles in cnMaestro.
- Guest WLAN: Configured as an Open network with 'External Hotspot' enabled. The redirect URL points to the Purple captive portal. RADIUS authentication (UDP 1812) and accounting (UDP 1813) point to Purple's servers. The walled garden includes Purple's domains.
- Staff WLAN: Configured as WPA2-Enterprise (802.1X). RADIUS points to Purple, which integrates with the hotel's Microsoft Entra ID. Staff authenticate with corporate credentials, and Purple assigns them to the Staff VLAN.
- Conference WLAN: Configured with WPA2 Pre-Shared Key and Cambium ePSK enabled. Purple provisions unique ePSK passphrases for each event organizer via the cnMaestro API, assigning each key to an isolated VLAN (e.g., VLAN 301, 302).
A retail chain has deployed Cambium e410 APs and configured the Purple captive portal. However, shoppers report that the splash page never appears on their smartphones; instead, the browser shows a connection timeout. What is the root cause and how is it resolved?
The root cause is an incomplete walled garden configuration in cnMaestro. The Cambium AP is blocking the HTTP/HTTPS traffic required to load the Purple portal before the user is authenticated.
To resolve this, the network engineer must log into cnMaestro, navigate to the Guest WLAN profile, and update the External Hotspot walled garden list. They must add Purple's specific portal domains and any associated CDN endpoints. Once applied, unauthenticated devices will be able to reach the portal and complete the login flow.
练习题
Q1. You are deploying Purple Guest WiFi across 50 retail stores using Cambium e505 APs. Users can connect to the SSID and see the splash page, but after logging in, they cannot access the internet. You verify that Purple is sending the Access-Accept message. What is the most likely infrastructure issue?
提示:Consider what happens at the switch level when a device tries to obtain an IP address after authentication.
查看标准答案
The most likely issue is missing VLAN trunking on the switch ports connecting to the Cambium APs. While the AP authorizes the device, if the assigned Guest VLAN is not permitted on the switch trunk, the device cannot reach the DHCP server to obtain an IP address, resulting in no internet access.
Q2. A university campus wants to use a single SSID for all students in the dormitories, but requires that each student's devices are isolated into their own private network segment to allow casting to their specific smart TV. How do you implement this using Cambium and Purple?
提示:Look at Cambium's implementation of private pre-shared keys.
查看标准答案
Implement Cambium ePSK (Enhanced Pre-Shared Key) on the dormitory WLAN. Purple will manage the ePSK lifecycle via the cnMaestro API, generating a unique passphrase for each student. When a student connects their devices using their specific key, the Cambium AP assigns them to a unique VLAN, creating an isolated private area network.
Q3. During a pilot deployment, Purple's analytics dashboard shows zero dwell time or data usage metrics for the Cambium test site, even though users are successfully authenticating and browsing the internet. What configuration step was missed in cnMaestro?
提示:Analytics require session data, which is handled by a specific UDP port in the AAA configuration.
查看标准答案
RADIUS Accounting was not configured. The network engineer must enable RADIUS Accounting in the cnMaestro Guest WLAN profile and point it to Purple's RADIUS server on UDP port 1813. Without this, Purple only handles authentication and receives no session lifecycle data.
继续阅读本系列
SonicWall TZ 和 SonicWave 与 Purple WiFi 的集成
本技术参考详细介绍了 SonicWall TZ 防火墙和 SonicWave AP 与 Purple WiFi 平台的集成。它提供了有关 Captive Portal 重定向、Walled Garden 豁免、802.1X 认证以及使用私有预共享密钥 (PPSK) 进行动态 VLAN 引导的操作配置步骤。
MikroTik RouterOS Captive Portal 与 Purple WiFi 集成指南
本技术指南提供了将 MikroTik RouterOS 与 Purple 的 WiFi 平台集成的分步说明。内容涵盖访客 WiFi Captive Portal 配置、员工 WiFi 802.1X 认证,以及使用私有 PSK 进行动态 VLAN 隔离的多租户 WiFi。
Alta Labs 与 Purple WiFi 的集成:设置与 Captive Portal 配置
本技术参考指南涵盖了 Alta Labs AP6 和 AP6 Pro 接入点与 Purple 云托管 Captive Portal 的端到端集成。它详细介绍了外部重定向配置、RADIUS 身份验证、围墙花园(walled garden)要求,以及使用 AltaPass 私有预共享密钥(Private Pre-Shared Keys)的多租户细分。场所运营商和 IT 团队将获得一份适用于酒店、零售和智能办公环境的可重复部署指南。