Layer-by-Layer Connectivity Verification
Layer 1: Check link lights on the NIC and switch port. Use 'ipconfig' (Windows) or 'ip link' (Linux) to see if the interface is up. If no link: check cable, try different port, replace cable.
Layer 2: Verify the device is on the correct VLAN. Check the switch port configuration. If the device can reach local devices but not the gateway, suspect a VLAN issue.
Layer 3: Check IP configuration — 'ipconfig /all' (Windows) or 'ip addr' (Linux). Verify: IP address is correct for the subnet, subnet mask is correct, default gateway is correct, and the IP was obtained (not APIPA 169.254.x.x). 'ping default-gateway' — if this fails, check local routing table and gateway ARP.
Layer 3 routing: ping the remote destination. If ping fails, use traceroute to find where packets stop. If routing is the issue, check routing tables on the path devices.
Layer 4/7: If ping succeeds but the application fails, the issue is at Layer 4 or above — firewall blocking the application port, service not listening, DNS failure, or application misconfiguration.
Common Connectivity Issues
Wrong subnet mask: a device with an incorrect subnet mask may think remote hosts are local (ARP flooding) or think local hosts are remote (routing to gateway). Symptoms: can ping the gateway but not other local devices, or cannot ping the gateway.
Wrong default gateway: device cannot reach any remote networks. Can ping local devices but nothing outside the subnet. 'ipconfig' shows incorrect or no gateway. DHCP misconfiguration most common cause.
Duplicate IP address: two devices on the same subnet with the same IP cause intermittent connectivity for both — ARP conflicts cause traffic to alternately reach each device. Windows event log shows 'Address conflict detected.'
Blocked by ACL or firewall: ping may work (ICMP permitted) but specific ports blocked. Use 'telnet host port' or 'Test-NetConnection -ComputerName host -Port port' (PowerShell) to test specific port connectivity. Check firewall and ACL rules.