Cisco implementó un protocolo propietario denominado DTP, con el propósito negociar de forma dinámica con el switch vecino una conexión troncal. La negociación cubre la encapsulación ISL y 802.1Q, en tres maneras, modo trunk, modo dynamic desirable y modo dynamic auto.
Modo Trunk:
Esta configuración deja de forma permanente a la interface en modo troncal. Importante mencionar que DTP aún está operando, por ello si el switch vecino tiene la interface peer configurada en modo trunk, dynamic desirable o dynamic auto, la negociación puede establecerse satisfactoriamente.
Ejemplo:
Se ha configurado en modo troncal la interface Fa 0/1 de DLS-1 y en modo auto la de DLS-2, con ello se forma dinámicamente la conexión troncal gracias a DTP. Validamos con los comandos "show interface type mod/port switchport" y "show type mod/port trunk".
DLS-1#show run inter fas 0/1
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
end
DLS-2#sh run inter fas 0/1
interface FastEthernet0/1
end
Nota: Para el caso de DLS-2 no hay configuración visible, ya que por defecto las interfaces en los switch 3560 están en modo auto (switchport mode dynamic auto).
Validación:
DLS-1#show interfaces fastEthernet 0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
(...)
DLS-2#show interfaces fastEthernet 0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: trunk
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
(...)
DLS-1#show interfaces fastEthernet 0/1 trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-4094
Port Vlans allowed and active in management domain
Fa0/1 1,3
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 3
DLS-2#show interfaces fastEthernet 0/1 trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 auto n-802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-4094
Port Vlans allowed and active in management domain
Fa0/1 1,3
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1,3
Modo dynamic desirable:
El puerto activamente intentará convertirse en troncal mediante el envío de mensajes DTP al puerto vecino. Si el puerto vecino está configurado en modo trunk, dynamic desirable o dynamic auto, se establecerá el troncal entre ambos equipos mediante la negociación.
Ejemplo:
Se ha configurado en modo dynamic desirable la interface Fa 0/2 de DLS-1 y en modo auto la de DLS-2, con ello se negociará la conexión troncal.
DLS-1#sh run inter fas 0/2
interface FastEthernet0/2
switchport mode dynamic desirable
end
DLS-2#sh run inter fas 0/2
interface FastEthernet0/2
end
Validación:
DLS-1#show interfaces fas 0/2 switchport
Name: Fa0/2
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: trunk
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: isl
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
(...)
DLS-2#show interfaces fastEthernet 0/2 switchport
Name: Fa0/2
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: trunk
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: isl
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
(...)
Nota: El protocolo de encapsulación también es negociado, dado que ambos equipos son modelos 3560 soportan ISL y 802.1Q. Siempre será favorecido ISL, que es propietario de Cisco.
DLS-1#show interfaces fastEthernet 0/2 trunk
Port Mode Encapsulation Status Native vlan
Fa0/2 desirable n-isl trunking 1
Port Vlans allowed on trunk
Fa0/2 1-4094
Port Vlans allowed and active in management domain
Fa0/2 1,3
Port Vlans in spanning tree forwarding state and not pruned
Fa0/2 none
DLS-2#show interfaces fastEthernet 0/2 trunk
Port Mode Encapsulation Status Native vlan
Fa0/2 auto n-isl trunking 1
Port Vlans allowed on trunk
Fa0/2 1-4094
Port Vlans allowed and active in management domain
Fa0/2 1,3
Port Vlans in spanning tree forwarding state and not pruned
Fa0/2 1,3
Modo dynamic auto
El puerto puede convertirse en troncal, solo si el puerto vecino envía solicitudes DTP activamente, por lo tanto si el puerto peer es configurado explícitamente como trunk o dynamic desirable será negociado el troncal. En cambio si el puerto vecino también es auto, nunca se convertirá en troncal. Deben recordar que el auto es pasivo, solo escucha y el desirable es activo, escucha y envía.
Ejemplo:
Se ha configurado en modo dynamic auto la interface Fa 0/3 de DLS-1 y tambien en modo auto la de DLS-2, ambos puertos como solamente escuchan no será negociado el troncal.
DLS-1#sh run inter fastEthernet 0/3
interface FastEthernet0/3
end
DLS-2#sh run inter fastEthernet 0/3
interface FastEthernet0/3
end
DLS-1#show inter fas 0/3 switchport
Name: Fa0/3
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
DLS-2#show inter fas 0/3 switchport
Name: Fa0/3
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
DLS-1#show inter fas 0/3 trunk
Port Mode Encapsulation Status Native vlan
Fa0/3 auto negotiate not-trunking 1
Port Vlans allowed on trunk
Fa0/3 1
Port Vlans allowed and active in management domain
Fa0/3 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/3 none
Tips:
- DTP envía tramas cada 30 segundos a su vecino.
- Puedes deshabilitar DTP para que el puerto no envíe mensajes con el comando "switchport nonegotiate".
- Pese a que configuremos explícitamente una interface como acceso o troncal, el DTP continuará activo, la manera de deshabilitarlo es la comentada anteriormente.
- Un enlace troncal puede ser negociado mediante DTP solo si ambos switch están en el mismo dominio VTP o si ambos switch no tienen el dominio definido (Null).
- Si los switch están en distintos dominios, deben configurarce explicitamente el troncal.
No hay comentarios:
Publicar un comentario