Local Area Networks (LANs): Concepts, Components, and Cisco Networking Fundamentals
Learn LAN fundamentals for CCNA: Ethernet switching, devices, media, VLANs, IP addressing, wireless integration, security, STP, and Cisco IOS troubleshooting.
A Local Area Network (LAN) connects devices within a limited geographic area, such as a room, office, building, home, or campus. A LAN is typically owned or administered by one organization or household. It provides local communication and access to shared resources while also connecting users to larger networks such as the Internet.
Common LAN goals include sharing files, printers, applications, voice services, and Internet access; allowing devices to communicate; and providing controlled access to network services such as DHCP, DNS, authentication, and centralized storage.
A LAN may be a single Ethernet segment, a switched network containing many switches, or a site containing multiple VLANs. VLANs allow one physical switching infrastructure to carry several separate logical Layer 2 networks.
LAN, WLAN, PAN, MAN, and WAN
| Network type | Typical coverage area | Common technologies | Typical ownership | Example |
|---|---|---|---|---|
| PAN | A person or very small space | Bluetooth, USB, personal hotspot | Individual | Phone connected to wireless earbuds |
| LAN | Room, building, office, or site | Ethernet, switching, Wi-Fi | Household or organization | Office PCs connected to switches |
| WLAN | Wireless portion of a local site | IEEE 802.11 Wi-Fi | Household or organization | Clients connected through an access point |
| MAN | City or metropolitan region | Metro Ethernet, provider fiber | Provider or organization | Several offices connected across a city |
| WAN | Large geographic or global area | Leased circuits, MPLS, Internet VPNs | Service provider or multiple organizations | Corporate branches connected across countries |
A WLAN is not necessarily a separate enterprise network. It is the wireless access portion of a LAN. Wireless clients may use the same IP services, VLANs, and routing infrastructure as wired clients.
Physical and Logical LAN Components
End devices
End devices originate or receive user traffic. Examples include desktops, laptops, servers, network printers, IP phones, cameras, wireless access points, sensors, and other Internet of Things devices. Each network-connected host normally uses a network interface card (NIC). A NIC may be a physical adapter or a logical interface presented by a virtual machine.
Intermediary devices
| Device | OSI layer focus | Primary role | Typical LAN placement |
|---|---|---|---|
| Layer 2 switch | Layer 2 | Forwards Ethernet frames using MAC addresses | Access or distribution layer |
| Multilayer switch | Layers 2 and 3 | Switches frames and routes between VLANs | Distribution or core |
| Router | Layer 3 | Connects IP networks and selects routes | LAN edge or WAN edge |
| Firewall | Layers 3 through 7, depending on platform | Enforces traffic and security policy | Internet or security boundary |
| Wireless access point | Layer 2 bridge with wireless functions | Connects Wi-Fi clients to wired LANs | Access layer and building spaces |
| Wireless controller | Management and control functions | Centralizes access-point configuration and policy | Data center or cloud management plane |
Other physical elements include switch ports, uplink ports, patch panels, equipment racks, patch cables, horizontal cabling, and structured cabling pathways. A physical topology describes where devices and cables are physically located. A logical topology describes how traffic flows, including VLAN membership, IP subnets, routed boundaries, and redundant paths. Physical and logical topologies can be different: one cable can carry several VLANs, and two physical links can operate as one EtherChannel.
Ethernet LAN Operation
Ethernet is the dominant wired LAN technology family and is standardized primarily by IEEE 802.3. Ethernet sends Layer 2 data in units called frames.
An Ethernet frame conceptually contains a destination MAC address, source MAC address, an EtherType or length field, a payload, and a frame check sequence (FCS). The FCS helps the receiver detect transmission errors. The payload commonly contains an IP packet, but Ethernet can carry other Layer 3 protocols as well.
A MAC address is a Layer 2 address used for local Ethernet delivery. Switches use their MAC address tables to associate source MAC addresses with the ports where they were learned. MAC addresses identify interfaces on the local link; IP addresses identify Layer 3 interfaces and networks.
How a switch forwards frames
- When a frame arrives, the switch examines its source MAC address and records that address against the ingress port and VLAN.
- The switch examines the destination MAC address.
- If the destination is known on another port in the same VLAN, the switch forwards the frame only through that port.
- If the destination is known on the ingress port, the switch filters the frame instead of sending it back out the same port.
- If the destination is unknown, the switch performs unknown-unicast flooding: it sends the frame out other ports in the same VLAN, but not the ingress port.
Broadcast frames, such as an ARP request, are flooded to ports in the same VLAN. Multicast handling varies by switch configuration; without appropriate multicast controls, multicast may also be replicated across multiple ports.
Collision Domains and Broadcast Domains
A collision domain is a segment where simultaneous transmissions could collide. A traditional hub creates one shared collision domain because it repeats incoming signals to all ports. A modern switch normally gives each active port its own collision domain. With full-duplex operation, a port can transmit and receive simultaneously, so normal switched Ethernet does not rely on CSMA/CD.
A broadcast domain is the set of devices that receive a Layer 2 broadcast. A VLAN normally defines one broadcast domain. Routers and Layer 3 interfaces separate broadcast domains.
| Device or design | Collision-domain behavior | Broadcast-domain behavior | Notes |
|---|---|---|---|
| Hub | All ports share one domain | All connected devices receive broadcasts | Legacy, half-duplex behavior |
| Switch, one VLAN | Normally one per port | Ports in the VLAN share one domain | Full duplex is normal |
| Switch with several VLANs | Normally one per active port | Each VLAN is a separate domain | Routing is required between VLANs |
| Router or multilayer switch | Interfaces separate Layer 2 segments | Each routed interface bounds a domain | Broadcasts are not routed by default |
LAN Topologies and Hierarchical Design
A star topology connects endpoints to a central switch. An extended-star topology connects access switches to additional switches in a hierarchy. A point-to-point topology directly connects two devices, commonly with an uplink. A mesh topology provides many interconnections for resilience. A ring topology connects each device to two neighbors, while a bus topology uses one shared cable or medium. Modern Ethernet LANs most commonly use a switched star or extended-star design.
Three-layer campus model
- Access layer: connects endpoints; assigns access VLANs; applies edge policy such as port security, 802.1X where deployed, and BPDU Guard; and supplies PoE to phones and access points.
- Distribution layer: aggregates access switches, provides Layer 3 boundaries and policy, supports redundancy, and can provide inter-VLAN routing.
- Core layer: provides a fast, resilient transport path between distribution blocks and major network services. The core is normally kept simple and highly available.
Redundant links improve availability, but independent redundant Layer 2 links can create loops. STP prevents loops by placing some redundant paths into a blocking or discarding state. EtherChannel can combine compatible physical links into one logical link, allowing the bundle to be used as a single STP path.
LAN Media and Ethernet Standards
| Standard | Nominal speed | Medium | Typical connector or transceiver | Typical use |
|---|---|---|---|---|
| 100BASE-TX | 100 Mbps | Twisted-pair copper | RJ-45 | Legacy Fast Ethernet access |
| 1000BASE-T | 1 Gbps | Twisted-pair copper | RJ-45 | Common copper access connection |
| 1000BASE-SX | 1 Gbps | Multimode fiber | Fiber transceiver, often LC | Short campus or building uplink |
| 10GBASE-SR | 10 Gbps | Multimode fiber | SFP+ or similar optical module | High-speed short-reach uplink |
Twisted-pair copper is common for endpoint connections. Cat5e supports many 1 Gbps installations, Cat6 offers improved performance and is widely used for access cabling, and Cat6A is commonly selected for higher-bandwidth copper deployments such as 10 Gbps connections. Exact performance depends on the standard, installation quality, distance, and the connected interfaces.
Fiber-optic cabling carries light rather than electrical signals. Multimode fiber is commonly used for shorter building or campus links. Single-mode fiber is commonly selected for longer backbone or provider-style links. Optical transceivers convert between electrical switch signals and optical signals. Common interface terms include SFP for a small form-factor pluggable module and SFP+ for many 10 Gbps modules. RJ-45 identifies a familiar copper Ethernet interface; LC and other fiber connector types identify practical fiber terminations.
Ethernet speed families include 10 Mbps, 100 Mbps, 1 Gbps, 10 Gbps, and higher-speed uplinks. Cable length is limited by the particular Ethernet standard and medium. Choosing the correct category, fiber type, transceiver, connector, and distance rating prevents link failures and unexpected negotiation results.
Speed, Duplex, and Auto-Negotiation
Half duplex allows transmission in only one direction at a time. Full duplex allows simultaneous transmission and reception. Modern switch-to-host and switch-to-switch links normally use full duplex.
Auto-negotiation allows interfaces to advertise and select compatible speed and duplex settings. Both ends should use compatible configuration. A duplex mismatch can cause poor throughput, CRC errors, retransmissions, collisions, or late collisions where half-duplex behavior is involved. Interface verification should include link state, protocol state, negotiated speed, duplex mode, errors, and counters.
VLANs and Inter-VLAN Communication
A Virtual LAN (VLAN) is a logical Layer 2 segmentation method. VLAN planning may follow department, device type, security boundary, or function. For example, a site might use separate VLANs for Administration, Sales, Engineering, voice, and guests.
| Characteristic | Access port | Trunk port |
|---|---|---|
| Typical endpoint | PC, printer, phone, or camera | Switch, router, access point, or controller |
| VLANs carried | Normally one | Multiple |
| Frame treatment | Usually untagged toward the endpoint | Uses IEEE 802.1Q tags for VLAN identification |
| Configuration concept | Access VLAN assignment | Allowed VLANs and native VLAN policy |
An access port normally carries one untagged endpoint VLAN. A trunk port carries multiple VLANs, normally using IEEE 802.1Q tags. The native VLAN is the VLAN associated with untagged traffic on an 802.1Q trunk, subject to platform behavior and design policy. Native VLAN mismatches can cause connectivity and security problems.
Devices in different VLANs require Layer 3 routing. Router-on-a-stick uses router subinterfaces over one trunk. A multilayer switch can use an SVI, or Switched Virtual Interface, as the Layer 3 interface for each VLAN. Each SVI commonly supplies the default gateway for its subnet.
See Configure Trunk Ports and Configure Router on a Stick for focused configuration practice.
IP Addressing in a LAN
A host requires an IPv4 and/or IPv6 address, a prefix length or subnet mask, and usually a default gateway. The MAC address delivers a frame across the local Layer 2 network; the IP address identifies the source and destination at Layer 3.
For IPv4, ARP resolves a local IP address to a MAC address. IPv6 uses Neighbor Discovery rather than ARP. When a destination is outside the host's local subnet, the host sends the Ethernet frame to the MAC address of its default gateway, not directly to the remote host's MAC address. The router or multilayer switch then routes the IP packet toward the remote network.
DHCP automatically supplies settings such as an IP address, subnet mask or prefix information, default gateway, and DNS servers. A host with an incorrect DHCP scope, VLAN, prefix, or gateway may have a link but still lack useful connectivity.
Wireless LAN Integration
A wireless access point bridges Wi-Fi clients to the wired LAN. An SSID is the name clients select. Wireless security protects the association and traffic; the exact method depends on the deployment and security policy. An organization can map different SSIDs to different VLANs, such as an employee SSID to an internal VLAN and a guest SSID to an isolated guest VLAN.
The access point's uplink commonly uses Ethernet and may receive power through Power over Ethernet (PoE). The switch port may need to carry multiple VLANs when several SSIDs are mapped to different VLANs.
LAN Security Fundamentals
Common LAN threats include unauthorized physical access, rogue devices, MAC flooding, VLAN hopping attempts, ARP spoofing, and rogue DHCP servers. Security is layered: protect equipment physically, segment users and device types, secure management access, use strong credentials, and monitor abnormal behavior.
- Port security can limit the number of learned MAC addresses and define a violation action such as protect, restrict, or shutdown, depending on platform and policy.
- DHCP snooping identifies trusted DHCP-server-facing ports and helps block unauthorized DHCP replies.
- Dynamic ARP Inspection can validate ARP information using trusted bindings.
- BPDU Guard protects edge ports by taking action when unexpected STP BPDUs arrive.
- Unused ports should be disabled and assigned to an unused VLAN when appropriate.
- Management should use secure protocols and strong authentication, with management access restricted to authorized networks.
Example edge protection
interface gigabitEthernet 1/0/1
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation restrict
interface range gigabitEthernet 1/0/1-20
spanning-tree portfast
spanning-tree bpduguard enable
STP, Redundancy, and EtherChannel
Redundant Layer 2 links can cause frames to circulate indefinitely. The result may be duplicate frames, MAC table instability, broadcast storms, and a network-wide outage. Spanning Tree Protocol (STP) prevents these loops by selecting a loop-free active topology and blocking or discarding redundant paths.
The root bridge is the reference switch for an STP instance. Each non-root switch selects a root port, which provides its best path toward the root. A designated port provides the best path from a segment toward the root. Other redundant ports may be blocking or discarding. Rapid STP, including Rapid PVST+ in Cisco environments, improves convergence after topology changes.
EtherChannel bundles compatible physical links into one logical link. STP sees the bundle as one path, while the channel can provide greater aggregate capacity and link resilience. Member interfaces must have compatible settings, including speed, duplex, trunk or access mode, VLAN permissions, and channel parameters.
Small Office LAN Example
In a simple office, employee PCs, a printer, and an IP phone connect to an access switch. The switch connects to a router or multilayer switch that provides the default gateway and Internet path. One IPv4 subnet can be adequate for an initial small design, but a single large broadcast domain becomes harder to secure, troubleshoot, and scale as more devices are added.
Department-Based VLAN Example
Create separate VLANs for Administration, Sales, Engineering, Voice, and Guest devices. Assign endpoint-facing interfaces as access ports in the appropriate VLAN. Configure the uplink to the multilayer switch as an 802.1Q trunk, then create one SVI per VLAN. Enable routing on the multilayer switch and apply appropriate access-control and guest-isolation policy.
configure terminal
vlan 10
name USERS
interface gigabitEthernet 1/0/1
switchport mode access
switchport access vlan 10
no shutdown
interface gigabitEthernet 1/0/24
switchport mode trunk
switchport trunk allowed vlan 10,20,30
switchport trunk native vlan 999
ip routing
interface vlan 10
ip address 192.168.10.1 255.255.255.0
no shutdown
interface vlan 20
ip address 192.168.20.1 255.255.255.0
no shutdown
MAC Learning Example
A workstation sends a frame to a printer on the same VLAN. The switch learns the workstation's source MAC address on the ingress port. If the printer's destination MAC is unknown, the switch floods the frame within that VLAN. When the printer responds, the switch learns the printer's MAC address and can forward later workstation-to-printer frames as known unicasts through the correct port.
LAN Troubleshooting Methodology
Use a layered method: physical, data link, network layer, services, and policy. Start with the simplest explanation and compare the affected device with a working device. Document port assignments, VLANs, IP addressing, trunks, gateways, and topology so that verification has a known reference.
| Symptom | Likely cause | Verification step | Typical correction |
|---|---|---|---|
| No link or gateway reachability | Bad cable, disabled port, NIC problem, or invalid host settings | Check link lights, interface state, counters, IP address, prefix, and gateway | Restore the physical link, enable the interface, or correct DHCP and host settings |
| Unexpected subnet | Wrong access VLAN or DHCP scope | show vlan brief and inspect the switchport | Correct the access VLAN and renew the DHCP lease |
| Same VLAN works but inter-VLAN fails | Missing SVI, routing, trunk VLAN, gateway, or policy | Check SVIs, ip routing, trunks, gateways, and filters | Correct routing, trunk allowance, gateway, or policy |
| VLAN missing between switches | VLAN absent or not allowed on trunk | show interfaces trunk | Create the VLAN and correct trunk mode or allowed VLANs |
| Slow or unstable link | Duplex mismatch, speed mismatch, bad cable, or physical errors | Inspect speed, duplex, CRC errors, collisions, and counters | Use compatible negotiation or settings and replace faulty media |
| Port is err-disabled | Port security, BPDU Guard, or another protection feature | Check interface state and logs | Remove the trigger and recover the interface according to policy |
| Network-wide broadcast storm | Layer 2 loop or unmanaged switch connection | Inspect topology and STP roles | Remove the loop and restore STP or EtherChannel design |
Useful Cisco IOS commands
show interfaces status
show interfaces gigabitEthernet 1/0/1
show interfaces counters errors
show mac address-table
show mac address-table dynamic
show vlan brief
show interfaces trunk
show interfaces switchport
show ip interface brief
show ip arp
ping 192.168.10.1
traceroute 192.168.20.10
Use show interfaces status for a quick port summary. Use detailed interface output and error counters to investigate physical faults, speed, duplex, and protocol state. Use VLAN and trunk commands to verify Layer 2 placement and propagation. Use MAC-table output to confirm learning. Finally, test the gateway first, then a remote subnet, to separate local LAN faults from routing or service faults.