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
Which device repeats every incoming frame out of all its other ports?
- Switch
- Hub
- Router
- 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.
Which statements about VLANs are correct?
- Each VLAN is a separate broadcast domain
- Trunk links carry several VLANs using 802.1Q tags
- Traffic between VLANs has to pass through a layer-3 device
- VLAN membership encrypts the traffic inside it
- 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: 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.
