Home / Notes / Rogue Device Detection Troubleshooting
NOTES · CAMPUS SECURITY / ROGUE DEVICE DETECTION

Finding Rogue Hubs and Routers on Your Network

A private hub, a private router, or someone sharing a phone's Wi-Fi off a wall port — every one of these should trip an alert on a properly configured access switch, and most of the time they don't because one specific piece of the detection chain is missing. This is the detection logic behind each of the three private-connection types, the exact diagnose-view commands to run, and the five reasons detection comes back empty even when the rogue device is sitting right there.

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

Three Different Devices, Three Different Tells

A hub gives itself away by repetition, a router or shared hotspot gives itself away by contradiction — treating all three as one detection problem is why so many of these tickets stall.

Huawei's private-connection detection covers three distinct unauthorized devices behind a single access port: a private hub, sharing one port among several MAC addresses; a private router, translating one legitimate address into several devices behind it; and Wi-Fi sharing, a phone or laptop bridging its own hotspot onto the wired network. Each of the three is its own feature — unauthorized-hub, unauthorized-router and wi-fi-sharing detection — with its own detection mechanism, and its own reason for coming back empty even when the rogue device is genuinely there.

What follows is the detection logic behind each type, the fault tree for placing a "no result" symptom on the right branch, the diagnose-view commands for each stage, the five root causes that explain most of these tickets, and five FAQ answers pulled from real field cases. Confirming a device even reaches the switch's identification pipeline in the first place is a related but separate question — see terminal-identification-troubleshooting.html if the port itself seems to be reporting nothing at all.

Placing the Symptom: Repetition, Contradiction, or Confirmation

Before running a single command, decide which of three questions you're actually asking — the diagram below is the fastest way to do that.

unauthorized-hub asks whether the same MAC keeps reappearing behind one port; unauthorized-router and wi-fi-sharing ask whether one port's traffic contains contradictory device fingerprints; the ARP active probe asks a narrower, confirming question once a hub is already suspected.

Private Connection Suspected Hub Suspected — Repetition Router / Wi-Fi Sharing — Contradiction Stage 0 · Report path never reaches UAP serviceACL not programmed · microcode cause-ID counter stuck at 0 Stage 1 · Profiling table empty for this portsame MAC hasn't repeated on this port yet Stage 2 · ARP active-probe ratio not metRecv-Count must be ≥ 2x Send-Count · only devices online after arp-snooping enabled TTL shows only one consistent valuedetection needs two values, or one illegal repeat (63/127) DNS/HTTP/TCP fingerprint shows only one OSdetection needs two different OS signatures, or two versions of one

Diagram labels are kept in English for engineering clarity.

None of the three detection types has to be enabled together — each is switched on independently with its own uap enable uap-type command, and a "no result" on one doesn't say anything about the state of the other two.

Working Through Each Detection Type

Three detection types, three different commands to read first — and the report-path check that applies to all of them.

Before Anything Else — Are The Detection Types Even Enabled

unauthorized-hub, unauthorized-router and wi-fi-sharing are independent features — confirm all three are actually switched on before assuming any one of them is broken.

  1. Enable each private-connection type independently, then confirm all three are active with display current-configuration before troubleshooting further — enabling one says nothing about the state of the other two.
[HUAWEI] uap enable uap-type unauthorized-hub
[HUAWEI] uap enable uap-type unauthorized-router
[HUAWEI] uap enable uap-type wi-fi-sharing
// each type is independent -- enabling one says nothing about the other two

Unauthorized Hub — Detected By Repetition

A hub only gets flagged once the same MAC address shows up twice behind the same port — a single sighting proves nothing.

  1. Check display uap profiling interface. Only ports where the same MAC has repeated show up here at all; an empty table with a hub physically present usually just means it hasn't repeated yet, not that detection is broken.
  2. Check display uap feature for that port's cached packets. If there's genuinely no data at all, the packets used to build the profile aren't reaching the service.
  3. Check the microcode and report path: display forward information for the relevant NTID cause-ID entries, then display cpu-defend statistics packet-type ntid-http all for Total Passed. If Total Passed is 0, the switch hasn't received a single reply packet from anything behind that port.
  4. If the report path checks out but detection still comes back empty, capture the HOST-side debug log by source-IP hex or by cause-ID and escalate.
<HUAWEI> diagnose
[HUAWEI-diagnose] display uap profiling interface
Interface     Ip-address       MAC              Vlan  Online-time
10GE1/0/1     192.168.137.3    607d-095a-ee83   4094  2024-01-25T06:29:59+00:00
// same MAC repeating on the same interface is what actually gets a port flagged

[HUAWEI-diagnose] display cpu-defend statistics packet-type ntid-http all
PacketType   Total Passed   Total Dropped
ntid-http    658            0
// Total Passed = 0 means the switch never received a reply packet at all

[HUAWEI-diagnose] debugging host packet 0a010101 slot 1 number 10
// capture by source-IP hex if the report path itself is in question

Unauthorized Router / Wi-Fi Sharing — Detected By Contradiction

This isn't a signature match — it's a logic check for two things that shouldn't both be true behind the same port.

  1. Check display uap profiling mac for the TTL, Dns-feature, Http-feature and Tcp-feature columns. A private device only gets flagged when TTL shows two different values, or one repeated illegal value (63 or 127); or when the DNS/HTTP/TCP fingerprint shows two different operating systems, or two different versions of the same one, on the same port.
  2. If profiling shows only a single, consistent value across every field, that's expected behavior for a genuinely single device, not a detection failure.
  3. Check display uap feature for that MAC's cached packets to confirm the switch is actually seeing enough traffic — TCP SYN, HTTP User-Agent, DNS reply — to build a fingerprint at all. A thin traffic sample produces a thin, inconclusive profile.
  4. If the profile is genuinely empty despite real traffic behind the port, run the same report-path check as the hub case, since both detection types share the same underlying packet-delivery pipeline.
[HUAWEI-diagnose] display uap profiling mac
MAC              Ip-address       Interface    TTL           Dns-feature  Http-feature  Tcp-feature
fe51-6735-3c5f   192.168.137.130  10GE1/0/1    64/0_1_0      -            -             ios
0055-c055-0102   2.2.2.205        10GE1/0/1    64/63/1_1_0   -            Windows6.1    -
// two different TTLs, or an illegal repeat like 63, is what actually flags a port here

[HUAWEI-diagnose] display uap feature
Interface     MAC              Type         Value
10GE1/0/1     0055-c055-0102   UAP_HTTP_UA  0,64,2.2.2.205,Mozilla/5.0 (Windows; U; Windows NT 6.1...)
// thin traffic in this table produces a thin, inconclusive profile above

ARP Active Probe — Confirming a Suspected Hub

This probe only runs against terminals that came online after arp snooping was enabled — and it only counts as a hub on a specific ratio, not just any extra reply.

  1. Check display arp snooping all. Only terminals listed here were eligible for the ARP probe in the first place; anything that came online before arp snooping was enabled won't be probed at all.
  2. Check display uap arp-detection. The Is-HubUa field only reads true once Recv-Count is at least twice Send-Count within one detection cycle; a 1:1 ratio, even with a reply, doesn't meet the threshold.
  3. Check display cpu-defend statistics packet-type arp-reply all for Total Passed. If it's 0, the switch isn't receiving ARP replies from that port at all, and the ratio can never be met.
  4. If the ratio genuinely never moves, capture the probe packet and the reply with a source/destination MAC-based debugging host packet filter and escalate.
[HUAWEI-diagnose] display arp snooping all
VLAN/CEVLAN  IP ADDRESS    MAC ADDRESS      INTERFACE   EXPIRE(S)
1/0          10.2.0.167    4ce1-7345-1fe5   GE1/0/7     866
// only terminals listed here were even eligible for the ARP probe

[HUAWEI-diagnose] display uap arp-detection
Interface   Vlan  IP-Address   MAC-Address     Send-Count  Recv-Count  Is-HubUa
GE1/0/7     1     10.2.0.167   4ce1-7345-1fe5  2           4           true
GE1/0/8     1     10.2.0.168   4ce1-7345-1fe6  2           0           false
// Is-HubUa only reads true once Recv-Count is at least 2x Send-Count

[HUAWEI] display cpu-defend statistics packet-type arp-reply all
PacketType   Total Passed   Total Dropped
arp-reply    1427           2
// Total Passed = 0 means no ARP replies are being received from that port at all

5 Root Causes That Show Up Again and Again

Once the checks above have told you where the problem sits, these five explain most of what's actually wrong.

1. The Detection Type Was Never Enabled In The First Place

SYMPTOMdisplay uap detection-results comes back empty for a device type you can see plugged in right in front of you.

CAUSEunauthorized-hub, unauthorized-router and wi-fi-sharing are three independent features, each switched on with its own uap enable uap-type command. Enabling one says nothing about the state of the other two, and it's easy to assume all three are on because one of them clearly is.

FIXConfirm all three types are actually enabled with display current-configuration before troubleshooting further — don't assume detection is broken when it was simply never switched on for that specific device type.

2. One Extra Reply Isn't A Hub — It Takes Twice As Many

SYMPTOMdisplay uap arp-detection shows a non-zero Recv-Count, but Is-HubUa still reads false.

CAUSEThe ARP probe only classifies a port as a hub once Recv-Count reaches at least twice Send-Count within one detection cycle. A single legitimate reply per probe — the normal, non-hub case — never crosses that ratio, no matter how many cycles run.

FIXRead Recv-Count against Send-Count as a ratio, not as a yes/no presence check — a 1:1 or 2:2 pattern is exactly what a single, honest device behind the port looks like.

3. The ARP Probe Only Watches Devices That Came Online After Snooping Was Enabled

SYMPTOMA hub that's been sitting behind a port for weeks never shows up in display uap arp-detection, while a new one connected today gets caught almost immediately.

CAUSEThe ARP active probe is triggered off arp snooping, and only terminals that came online after arp snooping was enabled get registered for probing. A device that was already up and running before the feature was turned on is invisible to this specific check, even though the hub itself hasn't changed at all.

FIXCheck display arp snooping all for the terminal's entry before assuming the probe should be catching it. If it's missing, the terminal came online too early for this feature — a port flap, or a scheduled re-check, brings it back into scope.

4. A Single Odd TTL Doesn't Prove Anything — It Has To Be Two Values, Or One Illegal Repeat

SYMPTOMdisplay uap profiling mac shows a TTL that looks a little unusual, but the port never gets flagged as a private router or shared hotspot.

CAUSEThe logic isn't whether a TTL looks wrong — it's specifically two different TTL values behind the same port, or one value repeating at an illegal number, 63 or 127. A single, internally consistent TTL, even an unusual one, describes one device behind that port, which is exactly the case the detection is designed to leave alone.

FIXRead the TTL field for variety, not oddity. If every packet from that port shows the same TTL, that's not a partial detection — it's the mechanism correctly deciding there's nothing to flag.

5. Packets Never Reach The Detection Service In The First Place

SYMPTOMEvery profiling and probing command above returns empty or zero, across every detection type, on a port you're certain has traffic on it.

CAUSEunauthorized-hub, unauthorized-router and wi-fi-sharing detection all depend on the same underlying delivery path — an ACL programmed into hardware, and a microcode entry that actually forwards the matching packet up to the UAP service. When that path breaks, commonly an ACL that failed to program, every detection type looks identical from the outside — quiet, with nothing to show, regardless of what's actually plugged in.

FIXCheck display cpu-defend statistics packet-type ntid-http all for Total Passed, and the matching NTID cause-ID counters under display forward information. If none of them are incrementing, this is a delivery problem underneath detection itself, worth a HOST-side debug capture and escalation rather than more profiling commands.

Related solution designs

Five Questions That Come Up Constantly

Pulled straight from the field — the ones worth having an answer ready for.

How do I see everything the switch has flagged so far?

Run display uap detection-results in any view. It lists every flagged interface, MAC, IP address, the specific unauthorized type — hub, router, or Wi-Fi sharing — and when it was detected.

How do I tell whether a flagged device is a hub, a router, or shared Wi-Fi?

display uap profiling mac shows the actual evidence: the TTL field tells you whether it's an outright hub-style repetition, while the Dns-feature, Http-feature and Tcp-feature columns show which operating-system fingerprints were seen — two different OS signatures, or two versions of one, behind the same port points to a router or shared hotspot rather than a plain hub.

Do I need to enable all three detection types, or can I turn on just one?

They're fully independent — enable only unauthorized-hub, only unauthorized-router, only wi-fi-sharing, or any combination, with separate uap enable uap-type commands. There's no dependency between them, and no shared threshold that changes based on which others are on.

There's clearly a hub behind this port — why does detection still come back empty?

Confirm the same MAC has actually repeated behind that port first — a single sighting isn't enough. If it has repeated and detection is still empty, check whether the profiling and feature-cache commands show any data at all for that port; if they're both empty too, the issue usually sits below detection entirely, in whether the relevant packets are reaching the service in the first place.

What's the actual difference between the profiling-based detection and the ARP active probe?

Profiling is passive — it reads what a device's normal traffic already reveals about it: TTL, and OS fingerprints from DNS, HTTP and TCP. The ARP probe is active — the switch deliberately sends ARP requests and counts how many replies come back, which is specifically how a suspected hub gets confirmed, since a hub causes one probe to reach multiple real devices and generate more replies than a single device ever would.

Honest Limits of This Note

Honest Limits of This Note

This note is built around the private-connection detection fault-locating guidance and field cases in Huawei's S-series campus switch maintenance manual — S1720, S5700, S6700, S6730, S7700 and related models. It covers the switch's own detection logic and diagnose-view commands; it doesn't cover cloud-managed campus controller-side alerting or automated port-disable policy, and it doesn't address wireless-side rogue-AP detection, which is a separate WLAN feature with its own detection mechanism.

Detection coming back empty on a port you're sure is private?

Tell us which type you're chasing — hub, router, or Wi-Fi sharing — plus the display uap profiling and display uap detection-results output, and we'll help you read it.

WhatsApp an engineer →

Related Reading