① Dynamic Segmentation — the role follows the user
Picture a campus. A finance laptop, an IP camera, a printer, and a guest phone all plug into identical switchports. The old way: you hand-cut a VLAN and an ACL onto each port and pray nobody moves a cable. The Aruba way is Dynamic Segmentation: the device authenticates, gets a role, and that role decides what it can reach — on any port, wired or wireless.
The role is the unit of trust. PEF (the firewall) lives inside the role. ClearPass decides which role. And the traffic is either enforced right at the switch/AP or tunneled to a gateway. Memorise this one line: "Identity decides the role, the role carries the firewall, the firewall is enforced at the edge or in a tunnel."
Sneha's manager keeps "fixing" access by re-cutting VLANs every time someone hot-desks. She enables Dynamic Segmentation: the finance role is defined once, ClearPass returns it on login, and now the same person gets the same access whether they sit in Pune or visit Bengaluru — no per-port edits. Her ticket queue drops by half.
The container of trust. It points at one or more session ACLs, a VLAN, bandwidth and captive-portal settings. Everything a client is allowed to do hangs off its role.
Policy Enforcement Firewall — Aruba's stateful, identity-aware firewall. The session ACLs inside a role ARE the PEF. Needs the PEFNG/PEF licence to enforce app-aware rules.
The brain. It authenticates (802.1X / MAC-auth), profiles the device, and returns the role name — or the whole role definition (DUR) — to the access device via RADIUS.
A switchport with no pre-assigned VLAN/role. After auth, the role+VLAN drop in dynamically. Any device on any port lands in the right segment — no per-port config.
Recap: role = unit of trust, PEF = the firewall inside the role, ClearPass = who picks the role, colorless port = any port works. PQ1 answered: no — when access is role-based, moving the laptop changes nothing; the role re-applies on the new port automatically.
A camera that can never run an 802.1X supplicant still needs a role. How does Dynamic Segmentation give it one?
iot-camera role with a tight session ACL — camera → NVR only. No supplicant required. This agentless reach is exactly why role-based beats hand-cut VLANs for IoT.In Aruba Dynamic Segmentation, what decides which network resources a connected device can reach?
② The Policy Enforcement Firewall — session ACLs, first match wins
A PEF policy is just an ordered list of rules called a session ACL. You build it with ip access-list session, then attach it to a user-role. The golden rule: rules are evaluated top to bottom, and the first match terminates the search. So you put specific permits/denies at the top and the broad catch-all at the bottom.
Here's a finance role on an ArubaOS gateway. The source user means "this client's own IP," and alias finance-app is a netdestination object pointing at 10.50.20.0/24.
ip access-list session POL-FINANCE user alias finance-app svc-https permit user alias dns-servers svc-dns permit user network 172.16.0.0 255.240.0.0 deny # block all other RFC1918 user any any permit # internet OK, last ! user-role FINANCE access-list session POL-FINANCE vlan 120
Derivation Rules: implicit role Role Entries: priority position src dst service action ---- 1 user finance-app svc-https permit ---- 2 user dns-servers svc-dns permit ---- 3 user 172.16.0.0/12 any deny ---- 4 user any any permit Captive Portal profile: N/A Bandwidth contract: N/A
Rahul pastes a fresh user any any permit at the top of the role to "quickly test." Suddenly finance laptops can reach the HR subnet. The first-match engine hit his permit at position 1 and never read the deny below it. He moves it to the bottom — order restored. This is the single most common PEF mistake.
any any permit placed at the top would silently hide every deny beneath it.Symptom you see: a role you carefully locked down suddenly lets traffic through that should be denied. Cause: a broad permit sits above your specific deny. First match wins, so the engine never reaches the deny. Always order specific → broad, and keep the catch-all user any any rule dead last.
Your colleague says "PEF is just like a router ACL." Predict the one big behavioural difference before reading on.
user (the authenticated identity) and on applications (App-aware), not just IP/port. A router ACL is stateless and IP-only.Priya writes a session ACL with user any any permit as line 1, then user alias hr-app any deny as line 2. HR-bound traffic still flows. Why?
hr-app deny above the catch-all permit and the deny takes effect. This is PQ2 in action.③ ClearPass & Downloadable User Roles — define once, push everywhere
You can build a role two ways. A Local User Role (LUR) lives on the device — ClearPass just sends the name and the device already has the definition. A Downloadable User Role (DUR) is defined centrally in ClearPass; after auth, ClearPass pushes the whole definition down. Change it once, every device gets it.
ClearPass ships a special enforcement profile template — Aruba Downloadable Role Enforcement — that targets ArubaOS-Switch, Mobility Access Switch and the gateway/controller. It returns the role via VSAs such as Aruba-User-Role. For UBT users it can also carry Aruba-UBT-Gateway-Role.
▶ Watch a client get a Downloadable User Role
Click Play. Each stage lights up as the auth + role download happens.
POL-FINANCE now active.
Your campus has 280 ArubaOS-CX switches. Security asks you to add one new deny rule to the FINANCE role everywhere. Which approach makes that a single change?
④ Tunnels, colorless ports & the troubleshooting playbook
Dynamic Segmentation has two enforcement models that can co-exist. Centralized uses user-based tunneling (UBT): the CX switch wraps the client's traffic in a GRE tunnel to an AOS 10 gateway cluster, which runs the PEF. Distributed keeps enforcement on the switches using an EVPN-VXLAN fabric and Group-Based Policy. Centralized = simpler policy, one place to look; distributed = no traffic "trombone" to the gateway, but more fabric to run.
ubt-client-vlan 4000 ubt zone HQ vrf default primary-controller ip 10.50.40.5 backup-controller ip 10.50.40.6 sac-heartbeat-interval 1 ! port-access role TUNNEL-FINANCE gateway-zone zone HQ gateway-role FINANCE
UBT Zone : HQ VRF : default SAC : 10.50.40.5 state : Registered UAC : 10.50.40.6 state : Standby Tunnel : GRE status : up Bootstrap: complete users : 42
Karthik's UBT users all dropped to the default role at 2 a.m. show ubt state showed Tunnel: GRE status: down. The gateway's data interface had been marked untrusted after a config push, so the GRE tunnel never came up and the secondary (gateway) role never activated. He set the gateway port trusted, the tunnel registered, and roles re-applied. Lesson: when UBT roles vanish, check the tunnel before you touch ClearPass.
▶ UBT data path — client to gateway over GRE
Centralized enforcement: the switch tunnels the client, the gateway runs the PEF.
POL-FINANCE evaluates the inner packet (first match).
On the gateway/controller: shows each client's IP, MAC, and the role actually applied. If it says the default role, ClearPass returned the wrong thing.
Dumps the role's session ACL in order. This is where you spot a broad permit shadowing a deny — the #1 PEF bug.
On the CX switch: GRE tunnel status, SAC/UAC registration, bootstrap. down here = roles fall back to default.
On the gateway: the live session table + which ACL action hit. Confirms whether PEF permitted or dropped a specific flow.
(gw-cluster) #show user-table | include 10.10.10.50
IP MAC Name Role Age Auth ------------- ----------------- ------------- -------- ---- -------- 10.10.10.50 a4:bb:6d:11:22:33 sneha FINANCE 00:14 802.1x 10.10.10.61 00:1a:1e:aa:bb:cc cam-lobby-3 IOT-CAM 01:02 MAC 10.10.10.77 f0:9f:c2:44:55:66 guest-7421 GUEST 00:03 captive
Symptom you see: the segmentation works, but a pen-test flags your gateways/APs. Cause: unpatched ArubaOS exposed to the PAPI management protocol on UDP/8211. The 2024 advisory chain (CVE-2024-26305, CVE-2024-42509, CVE-2024-47460) let unauthenticated attackers run commands via crafted PAPI packets. Fix: patch ArubaOS, and block UDP/8211 from untrusted networks. Segmentation is only as trustworthy as the box enforcing it.
1. Keep gateway clusters below ~50% load so failover is hitless; ~80% is the practical ceiling. 2. Start centralized (UBT) for simplicity; move to distributed VXLAN only when the traffic-trombone to the gateway hurts. 3. Use DUR so a role edit is one change, not 300. 4. Always end every session ACL with an explicit, intentional catch-all — don't rely on implicit behaviour you can't see in show rights.
A UBT switch loses its GRE tunnel to the gateway cluster. Predict what role the affected clients end up with.
up and bootstrap is complete. That's why UBT troubleshooting always starts at show ubt state: a down tunnel silently downgrades everyone. This is PQ3.In the centralized (UBT) model, on which device is the PEF firewall policy actually enforced for a tunneled wired client?
🤖 Ask the AI Tutor
Tap any question — instant context-aware answer. No login, no waiting.
Pre-curated answers from HPE Aruba TechDocs + Airheads community Q&A. For complex prod issues, paste your show user-table + show ubt state output into chat.techclick.in.
📝 Wrap-up — six more
You've already answered 4 inline. Six left. 70% (7 of 10) total marks the lesson complete on your profile. Tap Submit all answers at the end.
Self-explanation: In your own words (type it or say it out loud) — a laptop plugs into a colorless port. Walk through every step that chooses its role, then every step that enforces that role, and name which device does each. If you can do it without scrolling up, you own this lesson.
Teach a friend: Explain it to a junior in 30 seconds — "Aruba Dynamic Segmentation is a smart office building. The wall cable is just a door anyone can plug into. The security desk (ClearPass) checks your ID and hands you a colour-coded badge (the role). The badge has the rules baked in (PEF) — and the doors you can open depend on the badge, not the door you walked up to. Move desks, same badge, same access." Send that to one teammate today.
🔁 Spaced recall: drop your email and we'll resurface the 3 hardest questions from this lesson in 3 days — first-match rule order, LUR-vs-DUR, and the GRE-down fallback. Spaced recall is how this sticks past the interview.
📖 Glossary
- Dynamic Segmentation
- Assigning a role + policy based on who/what connects, then enforcing it at the edge or in a tunnel — access follows the user, not the cable.
- User Role
- The unit of trust on ArubaOS — points at session ACLs, a VLAN, bandwidth and captive-portal settings.
- PEF (Policy Enforcement Firewall)
- Aruba's stateful, identity-aware firewall; the session ACLs inside a role are the PEF. Needs the PEFNG/PEF licence.
- Session ACL
- An ordered firewall policy built with
ip access-list session; evaluated top-to-bottom, first match wins. - ClearPass
- Aruba's AAA + policy engine — authenticates clients and returns the role to enforce.
- DUR (Downloadable User Role)
- A role defined centrally in ClearPass and pushed to the device after auth via VSAs — edit once, apply everywhere.
- LUR (Local User Role)
- A role defined on the device itself; ClearPass sends only the name.
- UBT (User-Based Tunneling)
- The centralized model — a switch tunnels a client over GRE to an AOS 10 gateway cluster that runs the PEF.
- Colorless port
- A switchport with no pre-set VLAN/role; the role + VLAN drop in dynamically after authentication.
- Gateway cluster
- A group of AOS 10 gateways sharing client state; keep below ~50% load for hitless failover.
📚 Sources
- HPE Aruba Networking — Policy Enforcement Firewall (PEF) product page & What is Dynamic Segmentation? glossary. arubanetworking.hpe.com / hpe.com
- HPE Aruba TechDocs — ip access-list session (CLI Bank) and Configuring Firewall Policies (ArubaOS 8.x WebHelp). arubanetworking.hpe.com
- HPE Aruba TechDocs — User-Based Tunneling (AOS 10 design) & Aruba Downloadable Role Enforcement Profile (ClearPass 6.11). arubanetworking.hpe.com
- HPE Aruba — Validated Solution Guide: Policy Design & Segmentation Design (TME-updated 2025/2026; centralized UBT vs distributed EVPN-VXLAN, colorless ports, cluster sizing). arubanetworking.hpe.com/techdocs/VSG
- Aruba Airheads Community — Tunneled-node / GRE tunnel troubleshooting threads (Wired Intelligent Edge & Wireless Access). community.arubanetworks.com
- 2024 ArubaOS Security Advisories — CVE-2024-26305 / -42509 / -47460 (PAPI UDP/8211 RCE chain). HPE support bulletins / BleepingComputer.
- HPE/Aruba Certification — ACP-NS (HPE7-A02) Network Security & ACMP / ACCP blueprints (roles, firewall policies, Dynamic Segmentation, ClearPass).
What's next?
You can decide WHO gets in and WHAT they can reach. Next we make the Wi-Fi itself fast and seamless: how a client roams between APs without dropping a call, using 802.11r/k/v, OKC and AP clustering.