Multi-vsys (Per vsys) Device-ID support

Multi-vsys (Per vsys) Device-ID support

101
Created On 11/11/26 00:02 AM - Last Modified 11/18/26 21:31 PM


Symptom


In environments where IP address blocks are shared across multiple network segments or tenants, customers may observe:

  • Device misidentification — the same IP resolves to the wrong device profile in different vsys contexts
  • Missing devices — devices not appearing in Device-ID mappings for a specific vsys
  • Broken Device-ID policies — security policies based on device type or profile not matching the correct traffic
  • Wrong policy recommendations pushed from IoT cloud to firewalls when multiple tenants share overlapping IP space


Environment


  • Platform: PAN-OS 12.2.2 and later
  • Management: Panorama (required for Device Context Segment configuration)
  • Affected deployments:
    • MSSPs with per-customer vsys
    • K-12 and government networks with shared IP blocks across sites
    • Service providers (e.g., AT&T) with multi-tenant architectures using overlapping RFC1918 address space
  • Feature state: Disabled by default; must be explicitly enabled via a feature flag on Panorama


Cause


PAN-OS Device-ID historically maintained a single global IP-to-device mapping table shared across all virtual systems. In multi-tenant environments, the same IP address can legitimately belong to completely different physical devices in different network segments. Without vsys-level isolation, the IoT cloud verdicts are delivered to all vsys indiscriminately, resulting in incorrect device identification, stale mappings, and policy mismatches.

Root cause: The absence of a network segment boundary in the Device-ID mapping layer means a verdict for IP 10.1.1.1 in Tenant A overwrites or conflicts with the verdict for the same IP in Tenant B.



Resolution


Prerequisites: Panorama managing the firewall(s); PAN-OS 12.2.2+.

Step 1 — Enable the Device Context Segment feature flag on Panorama

Navigate to Panorama UI and enable the Multi-vsys Device-ID feature flag. After enabling, verify on the firewall:

> show iot status
Device Context Segments: Enabled       <<<< Feature is enabled
Device-id operational mode: Legacy

Step 2 — Create Device Context Segments on Panorama

Create Device Context Segments (DCS) as Panorama shared objects (UUID-based). Each segment represents a unique logical network instance. You can also bulk-upload segments via CSV in the Panorama UI.

Step 3 — Associate Device Context Segments to Templates

In Panorama, assign each Device Context Segment to the appropriate template or template stack, mapping it to the correct vsys.

Step 4 — Push configuration to firewalls

Commit and push from Panorama. On successful commit, the DCS ↔ vsys mapping is sent to Config Hub Service (CHS) and then to the IoT cloud. IoT assigns a unique uint32 NSID to each segment.

Step 5 — Verify Device Context Segments on the firewall

> show iot device-context-segment all
UUID                                    ID         Name     Description   vSysList
--------------------------------------------------------------------------------------
5e785c0b-519c-4424-a2fd-5c9d5dbeebb6    104498910  SJC_DCS  San Jose      vsys1, vsys3
0a44cd08-2b21-4788-90df-969ab51a0767    104498798  FL_DCS   Florida       vsys2
Total device_context_segment entries: 2
 

Step 6 — Verify per-vsys IP-to-device mapping

> show iot ip-device-mapping-mp ip 10.4.39.82
IP: 10.4.39.82
Category: 3D Printer
NetworkSegmentName: FL_DCS
VSYSList: vsys2
 

Step 7 — Troubleshoot CHS sync issues (if segments are missing)

> debug iot icd chs check-sync          # Verify FW and CHS are in sync
> debug iot icd chs download            # Force download of current config
> debug iot icd chs upload              # Force upload of current config
> show iot icd statistics all           # Check DCS pull/CHS upload-download counters and timestamps
> show iot device-context-segment refresh  # On-demand refresh of segment topology from EdgeService
 

Check the show iot icd statistics all output for pull GRPC response failure counts and Last Successful Connection timestamps to identify whether the firewall is successfully syncing with IoT cloud and CHS



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001iwfCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail