Skip to content

Kotenko IT Blog

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

Switch Interfaces

Posted on June 4, 2025June 6, 2025 by kotenkoo

Default Behavior of Interfaces

DeviceInterface DefaultWhen Device is Plugged In
SwitchNo shutdown commandGoes up/up automatically
RouterHas shutdown commandStays admin down/down, must be enabled manually

🟑 Switch Interfaces

  • Active interfaces: up/up
  • Unused interfaces: down/down, but not administratively disabled β†’ become active when connected
    βœ… Best practice: manually disable all unused interfaces

πŸ”΄ Router Interfaces

  • Default state: administratively down/down
    βœ… Must be manually brought up (no shutdown) to work
    βœ… No need to disable unused interfaces β€” already disabled by default

Interface Status Commands

SW1# show ip interface brief // Summary (L1/L2) – works for routers/switches SW1# show interfaces status // Physical info – switch only

FieldDescription
PortInterface ID (e.g. Fa0/1)
NameConfigured via description
Statusconnected, notconnect, or disabled
VLANAccess VLAN or trunk
Duplexfull, half, auto, a-full (auto-negotiated full duplex)
Speedauto, a-100, etc.
TypePort type (e.g. 10/100BaseTX)

Manual Interface Configuration

SW1(config)# interface f0/1

SW1(config-if)# speed 10 // 100 | auto

SW1(config-if)# duplex half // full | auto

πŸ’‘ Auto-negotiation is default. Only change if issues arise.


Configure Multiple Interfaces

SW1(config)# interface range f0/5 - 6, f0/9 - 12

SW1(config-if-range)# description ## Not in use ##

SW1(config-if-range)# shutdown

SW1(config-if-range)# do show interfaces description


Duplex Modes

ModeDescription
Half DuplexSend/receive alternately (legacy, used with hubs)
Full DuplexSend/receive simultaneously (modern switches)

Hubs (Layer 1 devices)

  • Work as repeaters: broadcast everything
  • Cause collisions when multiple devices transmit at once
  • All ports on a hub = one collision domain
  • Use CSMA/CD (Carrier Sense Multiple Access with Collision Detection):
    • Listen β†’ Transmit β†’ Collision? β†’ Notify β†’ Random wait β†’ Retry
  • Modern switches eliminate this problem with full-duplex & separate collision domains

Speed/Duplex Auto-Negotiation

  • Switch interfaces: default β†’ speed auto, duplex auto
  • Negotiation logic:
    • If connected device also supports auto-negotiation β†’ best mutual setting
    • If not:
      • Speed: switch tries to match or falls back to slowest
      • Duplex: uses half for 10/100 Mbps; full for 1000 Mbps+

πŸ› οΈ Avoid duplex mismatch β†’ always keep auto-negotiation enabled on both ends.

Interface TypeSupported Speeds
Ethernet10 Mbps
FastEthernet10/100 Mbps
GigabitEthernet10/100/1000 Mbps

Interface Errors (Check with show interfaces f0/x)

ErrorDescription
RuntsFrames < 64 bytes
GiantsFrames > 1518 bytes
CRCFailed checksum (Frame Check Sequence error)
FrameIncorrectly formatted frames
Input errorsTotal of all the above (receive side)
Output errorsFailed outbound frames (transmit side)

βœ… These counters help troubleshoot cable and port issues on both routers and switches.

πŸ“Œ These are personal study notes. Please read theΒ full disclaimerΒ for more information.

Category: CCNA

Post navigation

← IPv4 Addressing
IPv4 Header β†’

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

No comments to show.

Archives

  • June 2025
  • May 2025

Categories

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