Skip to content

Kotenko IT Blog

Menu
  • Home
  • CISCO
  • Virtualization
  • About
  • Certificates
Menu

Ethernet LAN Switching

Posted on May 30, 2025June 5, 2025 by kotenkoo

LAN Basics

  • LAN = Local Area Network (small area)
  • Switches do not separate LANs
  • Routers separate LANs (1 router interface = 1 LAN)

Data Encapsulation: PDUs

  • Data → Segment → Packet → Frame
  • Ethernet Frame = encapsulated Packet

Ethernet Frame Structure

[ Preamble (7) | SFD (1) | Destination MAC (6) | Source MAC (6) | Type/Length (2) | Data | FCS (4) ]

  • Frame Total: 64 to 1518 bytes (excluding jumbo frames)
  • Min payload: 46 bytes → if smaller, switch adds padding

Ethernet Header (14 bytes)

  • Destination MAC (6 bytes)
  • Source MAC (6 bytes)
  • Type/Length (2 bytes)
    → depends on Ethernet version:
    • ≤1500: length (802.3)
    • ≥1536: type (Ethernet II, e.g. 0x0800 for IPv4, 0x86DD for IPv6)

Preamble + SFD (not technically part of header)

  • Preamble: 10101010 × 7 (7 bytes) — for clock sync
  • SFD: 10101011 (1 byte) — marks frame start

Ethernet Trailer (4 bytes)

  • FCS (Frame Check Sequence):
    • Uses CRC to detect errors
    • Receiver discards frame if CRC check fails

MAC Address (6 bytes)

  • Globally unique (burned-in at manufacturing)
  • Format: AAAA.AA00.0001
    • First 3 bytes = OUI (manufacturer)
    • Last 3 bytes = device-specific

Hexadecimal and Decimal Quick Recap

  • HEX: 0–9 + A(10)–F(15)
  • 0x1B = 1×16 + 11 = 27
  • CDE = C×256 + D×16 + E = 3294

MAC Address Table (Switch)

  • Built by learning Source MACs
  • Used to forward or flood frames:
    • Known Unicast: Forward
    • Unknown Unicast: Flood
  • Dynamic MACs: expire after 5 min of inactivity (Cisco default)

Show & Clear Commands

show mac address-table

clear mac address-table dynamic

clear mac address-table dynamic address 0f0f.0f0f.0f0f

clear mac address-table dynamic interface f0/0


ARP (Address Resolution Protocol)

  • Resolves L3 IP → L2 MAC
  • Request: Broadcast FF:FF:FF:FF:FF:FF
  • Reply: Unicast
  • Switch floods ARP Request if destination is unknown
  • ARP Table: stored on PC
    MAC Table: stored on switch

Show ARP

arp -a # Windows show arp # Cisco


ICMP (Ping)

  • Layer 3 (Network), but uses MAC (L2) for delivery
  • Echo Request → Echo Reply (Unicast)
  • First ping may fail if ARP resolution not done
  • Cisco: ping shows 5 pings, each 100 bytes → output .!!!!

MAC vs ARP vs ICMP vs DHCP

Table/ProtocolDeviceFieldsLearning MethodTypeNotes
MAC TableSwitchMAC–PortPassive (from traffic)Flood/ForwardAged after 5 min
ARP TableHostIP–MACActive (via ARP)Request/ReplySeparate from MAC table
ICMPHostPingActiveUnicast (needs ARP)Echo Request/Reply
DHCPHostIP, GW, DNSActiveDORANeeds MAC to work

Tools

  • Wireshark – packet capture & analysis
  • GNS3 – emulator for real Cisco IOS (requires license)

📌 These are personal study notes. Please read the full disclaimer for more information.

Category: CCNA

Post navigation

← Cisco IOS CLI
IPv4 Addressing →

9 thoughts on “Ethernet LAN Switching”

  1. axiebet88apk says:
    November 17, 2025 at 1:56 pm

    Axiebet88apk, sounds interesting! Check them out by visit axiebet88apk and see if it’s what your need!

    Reply
  2. royaljeet365login says:
    December 2, 2025 at 6:10 pm

    Having trouble logging into Royal Jeet 365? This might be the login page: royaljeet365login Just a heads up – always double-check you’re on the official site before entering your details.

    Reply
  3. au88bet says:
    December 3, 2025 at 7:35 pm

    G’day, mates! au88bet popped up on my radar. I’m always keen for a good Aussie-themed betting site. Looks promising, haven’t placed any bets *yet*, but the odds look competitive. Thoughts? Give it a burl: au88bet

    Reply
  4. jl18login says:
    December 4, 2025 at 3:17 am

    JL18Login! Okay, okay, never heard of it before, but might be worth checking out. Anything new is worth a shot, right? Go take a look at jl18login!

    Reply
  5. jl18legit says:
    December 4, 2025 at 10:11 pm

    Okay, jl18legit claims to be legit… and so far so good! Payouts seem fast enough. The selection isn’t HUGE, but decent. I’m cautiously optimistic. Check out jl18legit and let me know what you think.

    Reply
  6. iwinvvip says:
    December 9, 2025 at 1:17 am

    Just signed up on iwinvvip. The interface looks pretty clean, hoping the games are fair too! Fingers crossed for some positive results!

    Reply
  7. jili56 says:
    December 11, 2025 at 9:21 am

    Interesting take on maximizing win potential! Seeing platforms like Jili56 focus on speed & data insights is smart. Quick verification & easy access via jili56 slot download could be a game-changer for busy players like me! 🤔

    Reply
  8. goldenhoyeah1 says:
    December 15, 2025 at 6:09 pm

    Goldenhoyeah1’s got a certain charm to it, you know? The graphics are pretty decent, and the games are easy to pick up. Good for a casual gaming session. Feel like a fun time? Give it a shot: goldenhoyeah1

    Reply
  9. solitaire games says:
    December 16, 2025 at 3:20 pm

    It’s fascinating how card games like solitaire tap into our need for pattern recognition & strategy! A quick mental break can really boost focus. Discover a world of solitaire – no downloads needed, play on any device! It’s a classic for a reason.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • IPv4 Header
  • Switch Interfaces
  • IPv4 Addressing
  • Ethernet LAN Switching
  • Cisco IOS CLI

Recent Comments

  1. JosephmoK on How to Install and Set Up Proxmox VE 8.4
  2. lucky122game on Network Devices
  3. patrullero777 on Network Devices
  4. niw88bet on Network Devices
  5. appnovibet on How to Install and Set Up Proxmox VE 8.4

Archives

  • June 2025
  • May 2025

Categories

  • CISCO
    • CCNA
    • CISCO Troubleshooting
  • Uncategorized
  • Virtualization
    • Proxmox
© 2026 Kotenko IT Blog | Powered by Minimalist Blog WordPress Theme