Understanding Default Speed and Duplex, CDP, Interface Range, and LLDP in Cisco Devices

In Cisco networking devices, default speed and duplex settings, discovery protocols such as CDP and LLDP, and the interface range command play a vital role in network configuration, management, and troubleshooting. This article provides a detailed explanation of default speed and duplex behavior, the functionality of CDP and LLDP, and how to use interface range commands with practical examples.

Cisco SpeedDuplexCDPLLDPInterface Range Cisco

~2 دقیقه مطالعه · آخرین به‌روزرسانی ۱۱ بهمن ۱۴۰۴

1. Default Speed and Duplex in Cisco


In Cisco devices, Speed and Duplex define the link speed and the method of data transmission on a network interface.


What Is Speed?

Speed determines the rate of data transfer on an interface and is typically measured in Mbps or Gbps.


What Is Duplex?

Duplex defines how data is transmitted and received:


  • Half-Duplex: Data is sent and received alternately
  • Full-Duplex: Data is sent and received simultaneously

Default Behavior:

By default, Cisco interfaces operate in Auto-Negotiation mode.


speed auto
duplex auto

In this mode, connected devices automatically negotiate and select the highest common speed and duplex setting.


2. Cisco Discovery Protocol (CDP)


CDP or Cisco Discovery Protocol is a Cisco-proprietary protocol used to discover and share information with directly connected neighboring devices.


Information Provided by CDP:

  • Neighbor device name
  • Device type
  • Connected interface
  • IP address

Enable or Disable CDP:

cdp run
no cdp run

View CDP Neighbors:

show cdp neighbors
show cdp neighbors detail

3. Interface Range in Cisco


The Interface Range command allows administrators to apply configuration changes to multiple interfaces simultaneously, significantly improving efficiency.


Entering Interface Range Mode:

interface range GigabitEthernet0/1 - 4

Applying Configuration to Multiple Interfaces:

switchport mode access
speed auto
duplex auto
description Access Ports

All commands above are applied to every selected interface.


4. Link Layer Discovery Protocol (LLDP)


LLDP or Link Layer Discovery Protocol is a vendor-neutral discovery protocol defined by IEEE, used to identify neighboring network devices.


Unlike CDP, LLDP works across devices from different vendors.


Enable LLDP:

lldp run

View LLDP Neighbors:

show lldp neighbors
show lldp neighbors detail

5. CDP vs LLDP Comparison


  • CDP is Cisco-proprietary
  • LLDP is vendor-neutral
  • CDP is enabled by default on Cisco devices
  • LLDP usually requires manual activation

Conclusion


Understanding Default Speed and Duplex, effectively using CDP and LLDP, and mastering the Interface Range command are essential skills for managing Cisco devices. These concepts enhance network performance, simplify configuration, and improve troubleshooting efficiency.


نوشته و پژوهش‌شده توسط دکتر شاهین صیامی

مقالات مرتبط

Systematic Network Troubleshooting: A Methodology Tying Everything Together

Every protocol and technology covered throughout this series is only useful if a problem involving it can actually be diagnosed and fixed efficiently under real-world pressure. This article presents a systematic troubleshooting methodology built around the OSI layers, walks through applying it to a realistic connectivity problem, and shows how the specific verification commands covered throughout this entire series fit into a structured diagnostic process.

ادامه

NETCONF, YANG, and Python: Programmatic Network Configuration at Scale

The REST APIs and JSON/YAML formats covered earlier in this series represent one approach to network automation, but NETCONF and YANG provide a more structured, standards-based alternative purpose-built for network device configuration. This article explains what distinguishes NETCONF from a simple REST API, covers how YANG models define exactly what configuration data looks like, and walks through using Python to programmatically interact with network devices.

ادامه

IPsec VPN Fundamentals: Securing Traffic Across Untrusted Networks

Connecting two sites across the public internet exposes traffic to interception unless it is properly encrypted, and IPsec provides the standard framework for building secure, authenticated tunnels between sites. This article explains the two-phase IKE negotiation process, covers the distinction between AH and ESP protocols, walks through configuring a basic site-to-site IPsec VPN, and covers essential verification commands.

ادامه

MPLS Fundamentals: Label Switching Explained

Traditional IP routing requires every router along a path to perform a full routing table lookup on every packet, but MPLS takes a fundamentally different approach by making that forwarding decision once and attaching a simple label that every subsequent router can use instead. This article explains the core label-switching concept, walks through how the Label Distribution Protocol builds the label forwarding tables that make this possible, and covers the practical benefits MPLS provides in real provider networks.

ادامه

BGP Route Reflectors and Confederations: Scaling iBGP Beyond Full Mesh

The iBGP full-mesh requirement, briefly mentioned earlier in this series, becomes a serious scaling problem as an autonomous system grows, requiring a number of sessions that increases quadratically with router count. This article explains exactly why full mesh does not scale, walks through how route reflectors solve this by relaxing BGP's normal route-propagation rules, and covers confederations as an alternative approach that divides a single AS into smaller sub-autonomous systems.

ادامه

OSPF Area Types Deep Dive: Stub, Totally Stubby, and NSSA

Multi-area OSPF, covered earlier in this series, already reduces database size by separating a network into areas, but OSPF offers further specialized area types that reduce routing table size even more aggressively by filtering out unnecessary external routes entirely. This article explains the LSA types that must be suppressed to create each specialized area type, walks through configuring stub, totally stubby, and not-so-stubby areas, and covers the specific trade-offs each design choice involves.

ادامه