Bitzu

CPSA ยท Network protocols and filtering

Shared vs switched media and VLANs

Sniffing implications of hubs and switches, VLAN separation and its limits.

Key points

  • Hub: repeats every frame to all ports, so any host can sniff everything.
  • Switch: forwards by MAC address to the destination port only, so passive sniffing sees little.
  • Switch abuse: MAC flooding, ARP spoofing or a mirror port expose other traffic.
  • VLANs: separate broadcast domains using 802.1Q tags.
  • Broken separation: misconfigured trunks, native VLAN handling, weak inter-VLAN filtering.

Practice questions

Single choice

Which device repeats every incoming frame out of all its other ports?

  1. Switch
  2. Hub
  3. Router
  4. Stateful firewall
Show answer

Answer: B. Hub

A hub is a layer-1 repeater, so all attached hosts see all traffic. A switch learns MAC addresses and forwards selectively; routers and firewalls operate at higher layers.

Select all that apply

Which statements about VLANs are correct?

  1. Each VLAN is a separate broadcast domain
  2. Trunk links carry several VLANs using 802.1Q tags
  3. Traffic between VLANs has to pass through a layer-3 device
  4. VLAN membership encrypts the traffic inside it
  5. A VLAN stays isolated even when trunks are misconfigured
Show answer

Answer: A. Each VLAN is a separate broadcast domain, B. Trunk links carry several VLANs using 802.1Q tags, C. Traffic between VLANs has to pass through a layer-3 device

VLANs create separate broadcast domains, 802.1Q tags frames on trunks, and traffic between VLANs must be routed, which is where filtering applies. VLANs do not encrypt traffic, and they are not immune to misconfiguration.

True or false

True or false: placing hosts in different VLANs guarantees they cannot reach each other, whatever the trunk and switch configuration.

Show answer

Answer: False

False. VLAN separation is only as strong as its configuration; trunk negotiation, native VLAN handling and permissive inter-VLAN routing can all let traffic cross.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module