Analizando el proceso de convergencia de un enlace trunk

Fecha: 6 de marzo del 2023

 

Escenario

 

Aquí analizamos la conexión de un uplink entre un switch con un port en trunk y otro en modo auto y que negociaciones

existen entre ambos. Esto sale a partir del punto 17 del lab https://www.vilarrasa.com.ar/escenario_voip_protocolos.htm

donde se analizan varios protocolos en un escenario VoIP.

 

 

Este lab se realizó con equipos reales y digamos que tuvimos que realizar alguna magia oscura para poder capturar tráfico

antes que levante oficialmente el link del puerto (ya lo veremos en las capturas).

 

1.- Configuración preliminar:

 

1.1.- Creamos las VLANs:

 

Switch-1#conf t

Switch-1(config)#vlan 2

Switch-1(config-vlan)#exit

Switch-1(config)#vlan 3

Switch-1(config-vlan)#exit

Switch-1(config)#vlan 4

Switch-1(config-vlan)#vlan 5

Switch-1(config-vlan)#exit

Switch-1(config)#

 

1.2.- Configuramos el VTP server:

 

Esto hace que se transmita la información de las VLANs al cliente (una vez creado el trunk).

 

Switch-1(config)#vtp mode server

Device mode already VTP Server for VLANS.

Switch-1(config)#

Switch-1(config)#vtp domain LABTRUNK

Changing VTP domain name from NULL to LABTRUNK

Switch-1(config)#

 

1.3.- Configuramos el VTP client:

 

Esto hace que se reciba la información de las VLANs desde el server (una vez creado el trunk).

 

Switch-2#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch-2(config)#vtp mode client

Setting device to VTP Client mode for VLANS.

Switch-2(config)#

Switch-2(config)#vtp domain LABTRUNK

Changing VTP domain name from NULL to LABTRUNK

Switch-2(config)#end

Switch-2#

 

1.4.- Configuramos el Puerto trunk en el VTP server:

 

 

Switch-1(config)#

Switch-1(config)#int gi1/0/24

Switch-1(config-if)#sw mode trunk

Switch-1(config-if)#end

Switch-1#

 

2.- Activamos algunos debugs en el Switch-2:

 

Switch-2#debug spanning-tree events

Spanning Tree event debugging is on

Switch-2#debug cdp adjacency

CDP neighbor info debugging is on

Switch-2#debug dtp events

Switch-2#

 

3.- Conectamos el trunk:

 

 

4.- Verificamos:

 

4.1.- En Wireshark:

 

 

4.1.1.- Detalle de las tramas mas relevantes:

 

Frame 1: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)

IEEE 802.3 Ethernet

Logical-Link Control

Dynamic Trunk Protocol: LABTRUNK (Operating/Administrative): Trunk/On (0x81) (Operating/Administrative): 802.1Q/802.1Q (0xa5): 00:5f:86:a7:c0:98

    Version: 1

    Domain

        Type: Domain (0x0001)

        Length: 13

        Domain: LABTRUNK

    Trunk Status

        Type: Trunk Status (0x0002)

        Length: 5

        Value: Trunk/On (0x81)

            1... .... = Trunk Operating Status: Trunk (0x1)

            .... .001 = Trunk Administrative Status: On (0x1)

    Trunk Type

        Type: Trunk Type (0x0003)

        Length: 5

        Value: 802.1Q/802.1Q (0xa5)

    Sender ID

        Type: Sender ID (0x0004)

        Length: 10

        Sender ID: Cisco_a7:c0:98 (00:5f:86:a7:c0:98)

 

Frame 2: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)

IEEE 802.3 Ethernet

Logical-Link Control

Dynamic Trunk Protocol: LABTRUNK (Operating/Administrative): Trunk/Auto (0x84) (Operating/Administrative): 802.1Q/802.1Q (0xa5): 00:5f:86:a7:2a:18

    Version: 1

    Domain

        Type: Domain (0x0001)

        Length: 13

        Domain: LABTRUNK

    Trunk Status

        Type: Trunk Status (0x0002)

        Length: 5

        Value: Trunk/Auto (0x84)

            1... .... = Trunk Operating Status: Trunk (0x1)

            .... .100 = Trunk Administrative Status: Auto (0x4)

    Trunk Type

        Type: Trunk Type (0x0003)

        Length: 5

        Value: 802.1Q/802.1Q (0xa5)

    Sender ID

        Type: Sender ID (0x0004)

        Length: 10

        Sender ID: Cisco_a7:2a:18 (00:5f:86:a7:2a:18)

 

Frame 22: 306 bytes on wire (2448 bits), 306 bytes captured (2448 bits)

IEEE 802.3 Ethernet

Logical-Link Control

VLAN Trunking Protocol

    Version: 0x01

    Code: Subset Advertisement (0x02)

    Sequence Number: 1

    Management Domain Length: 8

    Management Domain: LABTRUNK

    Configuration Revision Number: 10

    VLAN Trunking Protocol

    Version: 0x01

    Code: Subset Advertisement (0x02)

    Sequence Number: 1

    Management Domain Length: 8

    Management Domain: LABTRUNK

    Configuration Revision Number: 10

    VLAN Information (VLAN por default)

        VLAN Information Length: 20

        Status: 0x00

        VLAN Type: Ethernet (0x01)

        VLAN Name Length: 7

        ISL VLAN ID: 0x0001

        MTU Size: 1500

        802.10 Index: 0x000186a1

        VLAN Name: default

    VLAN Information

        VLAN Information Length: 20

        Status: 0x00

        VLAN Type: Ethernet (0x01)

        VLAN Name Length: 8

        ISL VLAN ID: 0x0002

        MTU Size: 1500

        802.10 Index: 0x000186a2

        VLAN Name: VLAN0002

    VLAN Information

        VLAN Information Length: 20

        Status: 0x00

        VLAN Type: Ethernet (0x01)

        VLAN Name Length: 8

        ISL VLAN ID: 0x0003

        MTU Size: 1500

        802.10 Index: 0x000186a3

        VLAN Name: VLAN0003

    VLAN Information

        VLAN Information Length: 20

        Status: 0x00

        VLAN Type: Ethernet (0x01)

        VLAN Name Length: 8

        ISL VLAN ID: 0x0004

        MTU Size: 1500

        802.10 Index: 0x000186a4

        VLAN Name: VLAN0004

    VLAN Information

        VLAN Information Length: 20

        Status: 0x00

        VLAN Type: Ethernet (0x01)

        VLAN Name Length: 8

        ISL VLAN ID: 0x0005

        MTU Size: 1500

        802.10 Index: 0x000186a5

        VLAN Name: VLAN0005

    VLAN Information (VLAN por default)

    VLAN Information (VLAN por default)

    VLAN Information (VLAN por default)

    VLAN Information (VLAN por default)

 

4.1.2.- Detalle de la cronología de la conversación:

 

 

4.2.- En el debug del cliente VTP:

 

Mar 6 15:38:14.021: DTP-state:Gi1/0/24:Starting state transition from state S1:OFF, event 3a:CFG TO ACC ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:14.021: DTP-state:Gi1/0/24:Executing action 3 ../dyntrk/dyntrk_fsm.c:717

Mar 6 15:38:14.024: setting bridge id (which=3) prio 32769 prio cfg 32768 sysid 1 (on) id 8001.005f.86a7.2a00

Mar 6 15:38:14.024: set portid: VLAN0001 Gi1/0/24: new port id 8018

Mar 6 15:38:14.024: STP: VLAN0001 Gi1/0/24 -> listening

Mar 6 15:38:14.031: DTP-timer:Gi1/0/24:Starting hello timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1758

Mar 6 15:38:14.031: DTP-state:Gi1/0/24:Ending state transition to state S2:ACCESS ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:16.020: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/24, changed state to up

Mar 6 15:38:16.020: CDP-AD: Interface GigabitEthernet1/0/24 coming up

Mar 6 15:38:16.223: DTP-queue:Gi1/0/24:Queuing DTP packet ../dyntrk/dyntrk_process.c:1365

Mar 6 15:38:16.223: DTP-event:Gi1/0/24:Received packet event ../dyntrk/dyntrk_process.c:2213

Mar 6 15:38:16.223: DTP-pkt:Gi1/0/24:Invalid TLV (type 0, len 0) in received packet. ../dyntrk/dyntrk_core.c:1334

Mar 6 15:38:16.223: DTP-pkt:Gi1/0/24:Good DTP packet received: ../dyntrk/dyntrk_core.c:1500

Mar 6 15:38:16.223: DTP-pkt:Gi1/0/24:  Domain: LABTRUNK ../dyntrk/dyntrk_core.c:1503

Mar 6 15:38:16.223: DTP-pkt:Gi1/0/24:  Status: TOS/TAS = TRUNK/ON ../dyntrk/dyntrk_core.c:1506

Mar 6 15:38:16.223: DTP-pkt:Gi1/0/24:  Type: TOT/TAT = 802.1Q/802.1Q ../dyntrk/dyntrk_core.c:1508

Mar 6 15:38:16.223: DTP-pkt:Gi1/0/24:  ID: 005F86A7C098 ../dyntrk/dyntrk_core.c:1511

Mar 6 15:38:16.223: DTP-decision:Gi1/0/24:old NS/NT = 0x00/0x01 ../dyntrk/dyntrk_core.c:678

Mar 6 15:38:16.223: DTP-decision:Gi1/0/24:Loc/Nbr Comb = 0x7F/0x9F ../dyntrk/dyntrk_core.c:687

Mar 6 15:38:16.226: DTP-decision:Gi1/0/24:loc_start = 1, nbr_start = 1, loc_end = 7, nbr_end = 18 ../dyntrk/dyntrk_core.c:744

Mar 6 15:38:16.226: DTP-decision:Gi1/0/24:Local Search: ../dyntrk/dyntrk_core.c:752

---omitido/resumen---

Mar 6 15:38:16.226: DTP-decision:Gi1/0/24:Done with Local Search, loc_ind = 4, loc_found = 1 ../dyntrk/dyntrk_core.c:765

Mar 6 15:38:16.226: DTP-decision:Gi1/0/24:Neighbor Search: ../dyntrk/dyntrk_core.c:772

---omitido/resumen---

Mar 6 15:38:16.226: DTP-decision:Gi1/0/24:Done with Neighbor Search, nbr_ind = 14, nbr_found = 1 ../dyntrk/dyntrk_core.c:784

Mar 6 15:38:16.226: DTP-decision:Gi1/0/24:tos_map = 0x00009E00 ../dyntrk/dyntrk_core.c:798

Mar 6 15:38:16.226: DTP-decision:Gi1/0/24:tot_map = 0x83FC0000 ../dyntrk/dyntrk_core.c:799

Mar 6 15:38:16.230: DTP-decision:Gi1/0/24:tos_mask = 0x0800 ../dyntrk/dyntrk_core.c:809

Mar 6 15:38:16.230: DTP-decision:Gi1/0/24:tot_mask = 0x00C00000 ../dyntrk/dyntrk_core.c:810

Mar 6 15:38:16.230: DTP-decision:Gi1/0/24:tot_result = 0x00000003 ../dyntrk/dyntrk_core.c:817

Mar 6 15:38:16.230: DTP-state:Gi1/0/24:Starting state transition from state S2:ACCESS, event 2b:PKT TO TRK ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:16.230: DTP-state:Gi1/0/24:Executing action 4 ../dyntrk/dyntrk_fsm.c:736

Mar 6 15:38:16.230: STP: VLAN0001 we are the spanning tree root

Mar 6 15:38:16.237: DTP-pkt:Gi1/0/24:Sending packet ../dyntrk/dyntrk_process.c:1261

Mar 6 15:38:16.237: DTP-pkt:Gi1/0/24:  TOS/TAS = TRUNK/AUTO ../dyntrk/dyntrk_process.c:1264

Mar 6 15:38:16.237: DTP-pkt:Gi1/0/24:  TOT/TAT = 802.1Q/802.1Q ../dyntrk/dyntrk_process.c:1267

Mar 6 15:38:16.237: DTP-pkt:Gi1/0/24:datagram_out ../dyntrk/dyntrk_process.c:1299

Mar 6 15:38:16.237: DTP-pkt:Gi1/0/24:datagram_out encap ../dyntrk/dyntrk_process.c:1311

Mar 6 15:38:16.237: DTP-timer:Gi1/0/24:Starting negotiation timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1788

Mar 6 15:38:16.237: DTP-timer:Gi1/0/24:Starting hello timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1758

Mar 6 15:38:16.237: DTP-state:Gi1/0/24:Ending state transition to state S3:NT-DTP ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:17.023: CDP-AD: Interface GigabitEthernet1/0/24 going down

Mar 6 15:38:17.222: DTP-queue:Gi1/0/24:Queuing DTP packet ../dyntrk/dyntrk_process.c:1365

Mar 6 15:38:17.222: DTP-event:Gi1/0/24:Received packet event ../dyntrk/dyntrk_process.c:2213

Mar 6 15:38:17.222: DTP-pkt:Gi1/0/24:Invalid TLV (type 0, len 0) in received packet. ../dyntrk/dyntrk_core.c:1334

Mar 6 15:38:17.222: DTP-pkt:Gi1/0/24:Good DTP packet received: ../dyntrk/dyntrk_core.c:1500

Mar 6 15:38:17.222: DTP-pkt:Gi1/0/24:  Domain: LABTRUNK ../dyntrk/dyntrk_core.c:1503

Mar 6 15:38:17.222: DTP-pkt:Gi1/0/24:  Status: TOS/TAS = TRUNK/ON ../dyntrk/dyntrk_core.c:1506

Mar 6 15:38:17.222: DTP-pkt:Gi1/0/24:  Type: TOT/TAT = 802.1Q/802.1Q ../dyntrk/dyntrk_core.c:1508

Mar 6 15:38:17.222: DTP-pkt:Gi1/0/24:  ID: 005F86A7C098 ../dyntrk/dyntrk_core.c:1511

Mar 6 15:38:17.222: DTP-decision:Gi1/0/24:old NS/NT = 0x01/0x05 ../dyntrk/dyntrk_core.c:678

Mar 6 15:38:17.222: DTP-decision:Gi1/0/24:Loc/Nbr Comb = 0xFF/0x9F ../dyntrk/dyntrk_core.c:687

Mar 6 15:38:17.222: DTP-decision:Gi1/0/24:loc_start = 8, nbr_start = 19, loc_end = 18, nbr_end = 36 ../dyntrk/dyntrk_core.c:744

Mar 6 15:38:17.222: DTP-decision:Gi1/0/24:Local Search: ../dyntrk/dyntrk_core.c:752

---omitido/resumen---

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:Done with Local Search, loc_ind = 6, loc_found = 1 ../dyntrk/dyntrk_core.c:765

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:Neighbor Search: ../dyntrk/dyntrk_core.c:772

---omitido/resumen---

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:Done with Neighbor Search, nbr_ind = 32, nbr_found = 1 ../dyntrk/dyntrk_core.c:784

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:tos_map = 0x0000B000 ../dyntrk/dyntrk_core.c:798

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:tot_map = 0x0A03C000 ../dyntrk/dyntrk_core.c:799

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:tos_mask = 0x0200 ../dyntrk/dyntrk_core.c:809

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:tot_mask = 0x000C0000 ../dyntrk/dyntrk_core.c:810

Mar 6 15:38:17.226: DTP-decision:Gi1/0/24:tot_result = 0x00000000 ../dyntrk/dyntrk_core.c:817

Mar 6 15:38:17.226: DTP-state:Gi1/0/24:Starting state transition from state S3:NT-DTP, event 4:PKT NO CHG ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:17.226: DTP-state:Gi1/0/24:Ending state transition to state S3:NT-DTP ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:17.236: DTP-timer:Gi1/0/24:Received timer event ../dyntrk/dyntrk_process.c:1980

Mar 6 15:38:17.236: DTP-timer:Gi1/0/24:Hello timer expired ../dyntrk/dyntrk_core.c:1549

Mar 6 15:38:17.236: DTP-state:Gi1/0/24:Starting state transition from state S3:NT-DTP, event 11:TH EXP ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:17.236: DTP-state:Gi1/0/24:Executing action 23 ../dyntrk/dyntrk_fsm.c:1118

Mar 6 15:38:17.236: DTP-timer:Gi1/0/24:Starting hello timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1758

Mar 6 15:38:17.236: DTP-pkt:Gi1/0/24:Sending packet ../dyntrk/dyntrk_process.c:1261

Mar 6 15:38:17.236: DTP-pkt:Gi1/0/24:  TOS/TAS = TRUNK/AUTO ../dyntrk/dyntrk_process.c:1264

Mar 6 15:38:17.236: DTP-pkt:Gi1/0/24:  TOT/TAT = 802.1Q/802.1Q ../dyntrk/dyntrk_process.c:1267

Mar 6 15:38:17.236: DTP-pkt:Gi1/0/24:datagram_out ../dyntrk/dyntrk_process.c:1299

Mar 6 15:38:17.236: DTP-pkt:Gi1/0/24:datagram_out encap ../dyntrk/dyntrk_process.c:1311

Mar 6 15:38:17.236: DTP-state:Gi1/0/24:Ending state transition to state S3:NT-DTP ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:18.236: DTP-timer:Gi1/0/24:Received timer event ../dyntrk/dyntrk_process.c:1980

Mar 6 15:38:18.236: DTP-timer:Gi1/0/24:Hello timer expired ../dyntrk/dyntrk_core.c:1549

Mar 6 15:38:18.236: DTP-state:Gi1/0/24:Starting state transition from state S3:NT-DTP, event 11:TH EXP ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:18.236: DTP-state:Gi1/0/24:Executing action 23 ../dyntrk/dyntrk_fsm.c:1118

Mar 6 15:38:18.236: DTP-timer:Gi1/0/24:Starting hello timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1758

Mar 6 15:38:18.236: DTP-pkt:Gi1/0/24:Sending packet ../dyntrk/dyntrk_process.c:1261

Mar 6 15:38:18.236: DTP-pkt:Gi1/0/24:  TOS/TAS = TRUNK/AUTO ../dyntrk/dyntrk_process.c:1264

Mar 6 15:38:18.236: DTP-pkt:Gi1/0/24:  TOT/TAT = 802.1Q/802.1Q ../dyntrk/dyntrk_process.c:1267

Mar 6 15:38:18.236: DTP-pkt:Gi1/0/24:datagram_out ../dyntrk/dyntrk_process.c:1299

Mar 6 15:38:18.236: DTP-pkt:Gi1/0/24:datagram_out encap ../dyntrk/dyntrk_process.c:1311

Mar 6 15:38:18.236: DTP-state:Gi1/0/24:Ending state transition to state S3:NT-DTP ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:19.239: DTP-timer:Gi1/0/24:Received timer event ../dyntrk/dyntrk_process.c:1980

Mar 6 15:38:19.239: DTP-timer:Gi1/0/24:Negotiation timer expired ../dyntrk/dyntrk_core.c:1559

Mar 6 15:38:19.239: DTP-state:Gi1/0/24:Starting state transition from state S3:NT-DTP, event 6b:TN EXP TRK ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:19.239: DTP-state:Gi1/0/24:Executing action 8 ../dyntrk/dyntrk_fsm.c:816

Mar 6 15:38:19.239: DTP-timer:Gi1/0/24:Stopping negotiation timer ../dyntrk/dyntrk_process.c:1839

Mar 6 15:38:19.253: setting bridge id (which=3) prio 32769 prio cfg 32768 sysid 1 (on) id 8001.005f.86a7.2a00

Mar 6 15:38:19.253: set portid: VLAN0001 Gi1/0/24: new port id 8018

Mar 6 15:38:19.253: STP: VLAN0001 Gi1/0/24 -> listening

Mar 6 15:38:19.253: DTP-timer:Gi1/0/24:Starting access timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1779

Mar 6 15:38:19.253: DTP-timer:Gi1/0/24:Starting hello timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1758

Mar 6 15:38:19.253: DTP-state:Gi1/0/24:Ending state transition to state S6:TRUNK ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:20.232: STP: VLAN0001 heard root 32769-005f.86a7.c080 on Gi1/0/24

Mar 6 15:38:20.260: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to up

Mar 6 15:38:20.260: CDP-AD: Interface GigabitEthernet1/0/24 coming up

Mar 6 15:38:23.587: setting bridge id (which=3) prio 32770 prio cfg 32768 sysid 2 (on) id 8002.005f.86a7.2a00

Mar 6 15:38:23.587: set portid: VLAN0002 Gi1/0/24: new port id 8018

Mar 6 15:38:23.587: STP: VLAN0002 Gi1/0/24 -> listening

Mar 6 15:38:23.591: setting bridge id (which=3) prio 32771 prio cfg 32768 sysid 3 (on) id 8003.005f.86a7.2a00

Mar 6 15:38:23.591: set portid: VLAN0003 Gi1/0/24: new port id 8018

Mar 6 15:38:23.591: STP: VLAN0003 Gi1/0/24 -> listening

Mar 6 15:38:23.591: setting bridge id (which=3) prio 32772 prio cfg 32768 sysid 4 (on) id 8004.005f.86a7.2a00

Mar 6 15:38:23.591: set portid: VLAN0004 Gi1/0/24: new port id 8018

Mar 6 15:38:23.591: STP: VLAN0004 Gi1/0/24 -> listening

Mar 6 15:38:23.594: setting bridge id (which=3) prio 32773 prio cfg 32768 sysid 5 (on) id 8005.005f.86a7.2a00

Mar 6 15:38:23.594: set portid: VLAN0005 Gi1/0/24: new port id 8018

Mar 6 15:38:23.594: STP: VLAN0005 Gi1/0/24 -> listening

Mar 6 15:38:34.262: STP: VLAN0001 Gi1/0/24 -> learning

Mar 6 15:38:38.589: STP: VLAN0002 Gi1/0/24 -> learning

Mar 6 15:38:38.592: STP: VLAN0003 Gi1/0/24 -> learning

Mar 6 15:38:38.592: STP: VLAN0004 Gi1/0/24 -> learning

Mar 6 15:38:38.596: STP: VLAN0005 Gi1/0/24 -> learning

Mar 6 15:38:48.236: DTP-queue:Gi1/0/24:Queuing DTP packet ../dyntrk/dyntrk_process.c:1365

Mar 6 15:38:48.236: DTP-event:Gi1/0/24:Received packet event ../dyntrk/dyntrk_process.c:2213

Mar 6 15:38:48.236: DTP-pkt:Gi1/0/24:Invalid TLV (type 0, len 0) in received packet. ../dyntrk/dyntrk_core.c:1334

Mar 6 15:38:48.236: DTP-pkt:Gi1/0/24:Good DTP packet received: ../dyntrk/dyntrk_core.c:1500

Mar 6 15:38:48.236: DTP-pkt:Gi1/0/24:  Domain: LABTRUNK ../dyntrk/dyntrk_core.c:1503

Mar 6 15:38:48.236: DTP-pkt:Gi1/0/24:  Status: TOS/TAS = TRUNK/ON ../dyntrk/dyntrk_core.c:1506

Mar 6 15:38:48.236: DTP-pkt:Gi1/0/24:  Type: TOT/TAT = 802.1Q/802.1Q ../dyntrk/dyntrk_core.c:1508

Mar 6 15:38:48.236: DTP-pkt:Gi1/0/24:  ID: 005F86A7C098 ../dyntrk/dyntrk_core.c:1511

Mar 6 15:38:48.236: DTP-decision:Gi1/0/24:old NS/NT = 0x01/0x05 ../dyntrk/dyntrk_core.c:678

Mar 6 15:38:48.236: DTP-decision:Gi1/0/24:Loc/Nbr Comb = 0xFF/0x9F ../dyntrk/dyntrk_core.c:687

Mar 6 15:38:48.236: DTP-decision:Gi1/0/24:loc_start = 8, nbr_start = 19, loc_end = 18, nbr_end = 36 ../dyntrk/dyntrk_core.c:744

Mar 6 15:38:48.236: DTP-decision:Gi1/0/24:Local Search: ../dyntrk/dyntrk_core.c:752

---omitido/resumen---

Mar 6 15:38:48.239: DTP-decision:Gi1/0/24:Done with Neighbor Search, nbr_ind = 32, nbr_found = 1 ../dyntrk/dyntrk_core.c:784

---omitido/resumen---

Mar 6 15:38:48.239: DTP-state:Gi1/0/24:Starting state transition from state S6:TRUNK, event 4:PKT NO CHG ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:48.239: DTP-state:Gi1/0/24:Executing action 16 ../dyntrk/dyntrk_fsm.c:987

Mar 6 15:38:48.243: DTP-timer:Gi1/0/24:Starting access timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1779

Mar 6 15:38:48.243: DTP-state:Gi1/0/24:Ending state transition to state S6:TRUNK ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:49.260: DTP-timer:Gi1/0/24:Received timer event ../dyntrk/dyntrk_process.c:1980

Mar 6 15:38:49.260: DTP-timer:Gi1/0/24:Hello timer expired ../dyntrk/dyntrk_core.c:1549

Mar 6 15:38:49.260: DTP-state:Gi1/0/24:Starting state transition from state S6:TRUNK, event 11:TH EXP ../dyntrk/dyntrk_fsm.c:631

Mar 6 15:38:49.260: DTP-state:Gi1/0/24:Executing action 23 ../dyntrk/dyntrk_fsm.c:1118

Mar 6 15:38:49.260: DTP-timer:Gi1/0/24:Starting hello timer on interface GigabitEthernet1/0/24 ../dyntrk/dyntrk_process.c:1758

Mar 6 15:38:49.260: DTP-pkt:Gi1/0/24:Sending packet ../dyntrk/dyntrk_process.c:1261

Mar 6 15:38:49.260: DTP-pkt:Gi1/0/24:  TOS/TAS = TRUNK/AUTO ../dyntrk/dyntrk_process.c:1264

Mar 6 15:38:49.260: DTP-pkt:Gi1/0/24:  TOT/TAT = 802.1Q/802.1Q ../dyntrk/dyntrk_process.c:1267

Mar 6 15:38:49.260: DTP-pkt:Gi1/0/24:datagram_out ../dyntrk/dyntrk_process.c:1299

Mar 6 15:38:49.260: DTP-state:Gi1/0/24:Ending state transition to state S6:TRUNK ../dyntrk/dyntrk_fsm.c:659

Mar 6 15:38:49.263: STP[1]: Generating TC trap for port GigabitEthernet1/0/24

Mar 6 15:38:49.263: STP: VLAN0001 Gi1/0/24 -> forwarding

Mar 6 15:38:53.590: STP[2]: Generating TC trap for port GigabitEthernet1/0/24

Mar 6 15:38:53.590: STP: VLAN0002 Gi1/0/24 -> forwarding

Mar 6 15:38:53.594: STP[3]: Generating TC trap for port GigabitEthernet1/0/24

Mar 6 15:38:53.594: STP: VLAN0003 Gi1/0/24 -> forwarding

Mar 6 15:38:53.594: STP[4]: Generating TC trap for port GigabitEthernet1/0/24

Mar 6 15:38:53.594: STP: VLAN0004 Gi1/0/24 -> forwarding

Mar 6 15:38:53.597: STP[5]: Generating TC trap for port GigabitEthernet1/0/24

Mar 6 15:38:53.597: STP: VLAN0005 Gi1/0/24 -> forwarding

Switch-2#

 

4.3.- En el estado de VTP:

 

Switch-2#show vtp status

VTP Version capable           : 1 to 3

VTP version running            : 1

VTP Domain Name              : LABTRUNK

VTP Pruning Mode               : Disabled

VTP Traps Generation          : Disabled

Device ID                              : 005f.86a7.2a00

Configuration last modified by 0.0.0.0 at 7-27-09 06:10:21

 

Feature VLAN:

--------------

VTP Operating Mode                       : Client

Maximum VLANs supported locally  : 1005

Number of existing VLANs             : 9

Configuration Revision                      : 7

MD5 digest                                        : 0x0D 0xF5 0x17 0x48 0x6D 0xC1 0xF1 0xF3

                                                            0xB1 0xC8 0xC4 0x91 0x5C 0xAC 0x37 0x0C

Switch-2#

 

4.4- Las VLANs aprendidas en el cluiente VTP:

 

Switch-2#sh vlan brief

 

VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                               active    Gi1/0/1, Gi1/0/2, Gi1/0/3

                                                Gi1/0/4, Gi1/0/5, Gi1/0/6

                                                Gi1/0/7, Gi1/0/8, Gi1/0/9

                                                Gi1/0/10, Gi1/0/11, Gi1/0/12

                                                Gi1/0/13, Gi1/0/14, Gi1/0/15

                                                Gi1/0/16, Gi1/0/17, Gi1/0/18

                                                Gi1/0/19, Gi1/0/20, Gi1/0/21

                                                Gi1/0/22, Gi1/0/23, Gi1/0/25 (Gi1/0/24 es trunk y no se muestra aquí)

                                                Gi1/0/26, Gi1/0/27, Gi1/0/28

2    VLAN0002                        active

3    VLAN0003                        active

4    VLAN0004                        active

5    VLAN0005                        active

1002 fddi-default                     act/unsup

1003 token-ring-default           act/unsup

1004 fddinet-default                act/unsup

1005 trnet-default                    act/unsup

Switch-2#

 

4.5.- El vecino aprendido por CDP:

 

Switch-2#sh cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,

                  D - Remote, C - CVTA, M - Two-port Mac Relay

 

Device ID        Local Intrfce     Holdtme    Capability  Platform         Port ID

Switch-1         Gig 1/0/24        172              S I          WS-C2960X   Gig 1/0/24

 

Total cdp entries displayed : 1

Switch-2#

 

4.6.- Los estados spanning-tree:

 

Switch-2#sh spanning-tree

 

VLAN0001

  Spanning tree enabled protocol ieee

  Root ID    Priority    32769

             Address     005f.86a7.2a00

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)

             Address     005f.86a7.2a00

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role   Sts      Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/24            Desg FWD 4         128.24   P2p

 

VLAN0002

  Spanning tree enabled protocol ieee

  Root ID    Priority    32770

             Address     005f.86a7.2a00

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32770  (priority 32768 sys-id-ext 2)

             Address     005f.86a7.2a00

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role    Sts   Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/24            Desg FWD 4         128.24   P2p

 

VLAN0003

  Spanning tree enabled protocol ieee

  Root ID    Priority    32771

             Address     005f.86a7.2a00

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32771  (priority 32768 sys-id-ext 3)

             Address     005f.86a7.2a00

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role   Sts    Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/24            Desg FWD 4         128.24   P2p

 

VLAN0004

  Spanning tree enabled protocol ieee

  Root ID    Priority    32772

             Address     005f.86a7.2a00

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32772  (priority 32768 sys-id-ext 4)

             Address     005f.86a7.2a00

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role   Sts   Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/24            Desg FWD 4         128.24   P2p

 

VLAN0005

  Spanning tree enabled protocol ieee

  Root ID    Priority    32773

             Address     005f.86a7.2a00

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32773  (priority 32768 sys-id-ext 5)

             Address     005f.86a7.2a00

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role    Sts   Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/24            Desg FWD 4         128.24   P2p

 

Switch-2#

 

4.7.- El estado final del port trunk:

 

Switch-2#sh interfaces trunk

 

Port           Mode           Encapsulation  Status        Native vlan

Gi1/0/24    auto             802.1q            trunking      1

 

Port        Vlans allowed on trunk

Gi1/0/24    1-4094

 

Port        Vlans allowed and active in management domain

Gi1/0/24    1-5

 

Port        Vlans in spanning tree forwarding state and not pruned

Gi1/0/24    1-5

Switch-2#

 

(2023) You are Trunk or Drunk ?

Rosario, Argentina