Course contentsShow
← Security
Lesson 352 of 3,0528. Network Security - ReconnaissanceFree lesson

Subnet and VLAN Discovery

Techniques for identifying subnet boundaries, VLAN configurations, and network segmentation through active probing.

Subnet and VLAN Discovery

What you'll learn: How attackers map internal network structure by identifying subnet boundaries and VLAN segments through active probing techniques.

What Is Subnet and VLAN Discovery?

After mapping hosts on a network (as you've learned with port scanning and traceroute), the next step is understanding how the network is segmented. Networks are divided into subnets (logical IP address groupings) and VLANs (Virtual LANs that isolate traffic at Layer 2). Discovering these boundaries reveals the network's security architecture—like finding the walls between rooms in a building.

Why This Matters

Organizations segment networks to limit blast radius: if an attacker compromises one subnet, they shouldn't automatically access payroll servers or industrial controls. Discovering this segmentation helps attackers (and defenders testing security) understand:

  • Which systems can talk to each other
  • Where security boundaries exist
  • Potential pivot points to restricted networks

Active Probing Techniques

Subnet boundary detection involves sending packets to sequential IP addresses and analyzing responses. Hosts that respond quickly and similarly likely share a subnet. Those with different TTL values, longer delays, or requiring routing hops suggest a different network segment.

VLAN fingerprinting is trickier since VLANs operate at Layer 2. Techniques include:

  • Analyzing timing differences in responses (same VLAN = faster)
  • Observing MAC address patterns in ARP responses
  • Testing for VLAN hopping vulnerabilities (tagged packets)
  • Using traceroute hop counts (different VLANs often route through switches)

Think of it like testing which doors are locked versus open in a building—you learn the layout by probing systematically.

The Reconnaissance Picture

Combining subnet discovery with your earlier Nmap scans and network diagrams creates a complete security map showing not just what exists, but how it's protected.

Key Takeaway: Subnet and VLAN discovery uses active probing to identify network segmentation boundaries, revealing the internal security architecture that defenders use to contain threats.