Skip to content

Instantly share code, notes, and snippets.

@nullx5
Last active October 19, 2025 07:36
Show Gist options
  • Select an option

  • Save nullx5/522b1c7adf95a2580041b46f7fc53312 to your computer and use it in GitHub Desktop.

Select an option

Save nullx5/522b1c7adf95a2580041b46f7fc53312 to your computer and use it in GitHub Desktop.

protocolos de capa 2 en una red de switches

Categoría Ejemplos Tipo / Origen
Negociación de enlace DTP, LACP, PAgP, UDLD DTP (Cisco), LACP (IEEE 802.3ad), PAgP (Cisco), UDLD (Cisco)
Encapsulación VLAN 802.1Q, ISL 802.1Q (IEEE 802.1Q), ISL (Cisco)
Administración VLAN VTP VTP (Cisco)
Prevención de bucles STP, RSTP, MSTP, PVST+ STP (IEEE 802.1D), RSTP (IEEE 802.1w), MSTP (IEEE 802.1s), PVST+ (Cisco)
Descubrimiento de vecinos CDP, LLDP, FDP, EDP CDP (Cisco), LLDP (IEEE 802.1AB), FDP (Foundry/Brocade), EDP (Extreme Networks)

🚫 Problema DTP En redes modernas, no se recomienda usar DTP, porque:

  • Es propietario (solo Cisco lo entiende).
  • Puede hacer que un puerto se vuelva trunk sin intención, exponiendo VLANs.
  • No ofrece seguridad ni control.

✅ Opciones cuando NO quieres usar DTP

Aquí las alternativas más seguras y profesionales 👇

Escenario Qué hacer Comando
Troncal fija sin DTP Forzar el puerto a trunk y desactivar DTP switchport mode trunk
switchport nonegotiate
Puerto de acceso fijo Fijar el puerto como de acceso (solo una VLAN) switchport mode access
switchport access vlan 10
Trunk entre diferentes fabricantes (sin DTP) Configurar ambos extremos manualmente como trunk con 802.1Q switchport mode trunk
switchport trunk encapsulation dot1q
switchport nonegotiate
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment