• 广播风暴的分析和解决方法(STP配置)


    目录

    1.广播风暴

    2.解决方法:配置STP


    1.广播风暴

    以下图为例 

     配置交换机LSW1

    1. <Huawei>sys
    2. Enter system view, return user view with Ctrl+Z.
    3. [Huawei]sysname LSW1
    4. [LSW1]stp
    5. Sep 14 2023 05:35:15-08:00 LSW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
    6. 5.191.3.1 configurations have been changed. The current change number is 4, the
    7. change loop count is 0, and the maximum number of records is 4095.
    8. ^
    9. Error:Incomplete command found at '^' position.
    10. [LSW1]undo info-center enable
    11. Info: Information center is disabled.
    12. [LSW1]stp mode stp
    13. Info: This operation may take a few seconds. Please wait for a moment...done.
    14. [LSW1]display stp
    15. -------[CIST Global Info][Mode STP]-------
    16. CIST Bridge :32768.4c1f-cc15-19c9
    17. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    18. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    19. CIST Root/ERPC :32768.4c1f-cc15-19c9 / 0
    20. CIST RegRoot/IRPC :32768.4c1f-cc15-19c9 / 0
    21. CIST RootPortId :0.0
    22. BPDU-Protection :Disabled
    23. TC or TCN received :2
    24. TC count per hello :0
    25. STP Converge Mode :Normal
    26. Time since last TC :0 days 0h:1m:27s
    27. Number of TC :4
    28. Last TC occurred :GigabitEthernet0/0/3
    29. ----[Port1(GigabitEthernet0/0/1)][LEARNING]----
    30. Port Protocol :Enabled
    31. Port Role :Designated Port
    32. Port Priority :128
    33. Port Cost(Dot1T ) :Config=auto / Active=20000
    34. Designated Bridge/Port :32768.4c1f-cc15-19c9 / 128.1
    35. Port Edged :Config=default / Active=disabled
    36. Point-to-point :Config=auto / Active=true
    37. Transit Limit :147 packets/hello-time
    38. Protection Type :None
    39. [LSW1]display stp brief
    40. MSTID Port Role STP State Protection
    41. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE
    42. 0 GigabitEthernet0/0/2 DESI FORWARDING NONE
    43. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    44. [LSW1]display mac-address
    端口STP角色STP状态端口ID
    GE 0/0/1指定端口FORWARDING (转发)0
    GE 0/0/2指定端口FORWARDING (转发)0
    GE 0/0/3指定端口FORWARDING (转发)0

    禁用g0/0/1和g0/0/2端口  

    1. [LSW1]display mac-address
    2. [LSW1]interface gigabitethernet 0/0/1
    3. [LSW1-GigabitEthernet0/0/1]undo stp enable
    4. [LSW1-GigabitEthernet0/0/1]qu
    5. [LSW1]interface gigabitethernet 0/0/2
    6. [LSW1-GigabitEthernet0/0/2]undo stp enable
    7. [LSW1-GigabitEthernet0/0/2]qu

     对LSW2做同样的操作 

    1. <Huawei>sys
    2. Enter system view, return user view with Ctrl+Z.
    3. [Huawei]sysname LSW2
    4. [LSW2]stp mode stp
    5. Info: This operation may take a few seconds. Please wait for a moment...done.
    6. [LSW2]
    7. Sep 14 2023 05:44:17-08:00 LSW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
    8. 5.191.3.1 configurations have been changed. The current change number is 5, the
    9. change loop count is 0, and the maximum number of records is 4095.
    10. [LSW2]undo info-center enable
    11. Info: Information center is disabled.
    12. [LSW2]display stp
    13. -------[CIST Global Info][Mode STP]-------
    14. CIST Bridge :32768.4c1f-cc39-46ec
    15. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    16. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    17. CIST Root/ERPC :32768.4c1f-cc39-46ec / 0
    18. CIST RegRoot/IRPC :32768.4c1f-cc39-46ec / 0
    19. CIST RootPortId :0.0
    20. BPDU-Protection :Disabled
    21. TC or TCN received :108
    22. TC count per hello :0
    23. STP Converge Mode :Normal
    24. Time since last TC :0 days 0h:3m:14s
    25. Number of TC :10
    26. Last TC occurred :GigabitEthernet0/0/2
    27. ----[Port1(GigabitEthernet0/0/1)][LEARNING]----
    28. Port Protocol :Enabled
    29. Port Role :Designated Port
    30. Port Priority :128
    31. Port Cost(Dot1T ) :Config=auto / Active=20000
    32. Designated Bridge/Port :32768.4c1f-cc39-46ec / 128.1
    33. Port Edged :Config=default / Active=disabled
    34. Point-to-point :Config=auto / Active=true
    35. Transit Limit :147 packets/hello-time
    36. Protection Type :None
    37. [LSW2]display stp brief
    38. MSTID Port Role STP State Protection
    39. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE
    40. 0 GigabitEthernet0/0/2 DESI FORWARDING NONE
    41. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    42. [LSW2]display mac-address
    43. [LSW2]interface g0/0/1
    44. [LSW2-GigabitEthernet0/0/1]undo stp enable
    45. [LSW2-GigabitEthernet0/0/1]qu
    46. [LSW2]interface g0/0/2
    47. [LSW2-GigabitEthernet0/0/2]undo stp enable
    48. [LSW2-GigabitEthernet0/0/2]qu

     当我们互ping两个PC时,即

    PC>ping 192.168.100.19 -c 8
    PC>ping 192.168.100.29 -c 8

    #会出现请求超时的现象
    Ping 192.168.100.19: 32 data bytes, Press Ctrl_C to break
    Request timeout!
    Request timeout!
    Request timeout!

    这时我们再查看mac地址表

    1. [LSW1]display mac-address
    2. MAC address table of slot 0:
    3. -------------------------------------------------------------------------------
    4. MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
    5. VSI/SI MAC-Tunnel
    6. -------------------------------------------------------------------------------
    7. 5489-9880-36b4 1 - - GE0/0/1 dynamic 0/-
    8. 5489-98a8-0ea0 1 - - GE0/0/2 dynamic 0/-
    9. -------------------------------------------------------------------------------
    10. Total matching items on slot 0 displayed = 2
    11. [LSW2]display mac-address
    12. MAC address table of slot 0:
    13. -------------------------------------------------------------------------------
    14. MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
    15. VSI/SI MAC-Tunnel
    16. -------------------------------------------------------------------------------
    17. 5489-9880-36b4 1 - - GE0/0/2 dynamic 0/-
    18. 5489-98a8-0ea0 1 - - GE0/0/1 dynamic 0/-
    19. -------------------------------------------------------------------------------
    20. Total matching items on slot 0 displayed = 2

     这时可以看到数据抓包,数据抓取速度很快,出现广播风暴,瞬间几千条数据,在交换机中输入命令时也会出现明显延迟

    在不同的时间段查看LSW2的mac地址表

    可以看到同一mac地址,记录了不同的端口(mac地址震荡)

    这是由于广播风暴导致广播消息在网络中被无限循环转发,交换机会不断地接收到重复的广播消息,并会记录下每个消息的源MAC地址和接收端口。这时cpu的利用率也会不断提高,网络性能变差。

    1. [LSW2]display mac-address
    2. MAC address table of slot 0:
    3. -------------------------------------------------------------------------------
    4. MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
    5. VSI/SI MAC-Tunnel
    6. -------------------------------------------------------------------------------
    7. 5489-9880-36b4 1 - - GE0/0/1 dynamic 0/-
    8. 5489-98a8-0ea0 1 - - GE0/0/2 dynamic 0/-
    9. -------------------------------------------------------------------------------
    10. Total matching items on slot 0 displayed = 2
    11. [LSW2]display mac-address
    12. MAC address table of slot 0:
    13. -------------------------------------------------------------------------------
    14. MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
    15. VSI/SI MAC-Tunnel
    16. -------------------------------------------------------------------------------
    17. 5489-9880-36b4 1 - - GE0/0/2 dynamic 0/-
    18. 5489-98a8-0ea0 1 - - GE0/0/1 dynamic 0/-
    19. -------------------------------------------------------------------------------
    20. Total matching items on slot 0 displayed = 2

    2.解决方法:配置STP

    以下图为例

     配置LSW1

    1. <Huawei>sys
    2. Enter system view, return user view with Ctrl+Z.
    3. [Huawei]sysname LSW1
    4. [LSW1]
    5. Sep 14 2023 06:29:37-08:00 LSW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
    6. 5.191.3.1 configurations have been changed. The current change number is 4, the
    7. change loop count is 0, and the maximum number of records is 4095.
    8. [LSW1]UNDO info-center enable
    9. Info: Information center is disabled.
    10. [LSW1]stp mode stp
    11. Info: This operation may take a few seconds. Please wait for a moment...done.
    12. [LSW1]display stp
    13. -------[CIST Global Info][Mode STP]-------
    14. CIST Bridge :32768.4c1f-cc15-4618
    15. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    16. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    17. CIST Root/ERPC :32768.4c1f-cc15-4618 / 0
    18. CIST RegRoot/IRPC :32768.4c1f-cc15-4618 / 0
    19. CIST RootPortId :0.0
    20. BPDU-Protection :Disabled
    21. TC or TCN received :5
    22. TC count per hello :0
    23. STP Converge Mode :Normal
    24. Time since last TC :0 days 0h:2m:14s
    25. Number of TC :5
    26. Last TC occurred :GigabitEthernet0/0/1
    27. ----[Port1(GigabitEthernet0/0/1)][DISCARDING]----
    28. Port Protocol :Enabled
    29. Port Role :Designated Port
    30. Port Priority :128
    31. Port Cost(Dot1T ) :Config=auto / Active=20000
    32. Designated Bridge/Port :32768.4c1f-cc15-4618 / 128.1
    33. Port Edged :Config=default / Active=disabled
    34. Point-to-point :Config=auto / Active=true
    35. Transit Limit :147 packets/hello-time
    36. Protection Type :None
    37. [LSW1]display stp brief
    38. MSTID Port Role STP State Protection
    39. 0 GigabitEthernet0/0/1 DESI LEARNING NONE
    40. 0 GigabitEthernet0/0/2 DESI LEARNING NONE
    41. 0 GigabitEthernet0/0/3 DESI LEARNING NONE
    42. [LSW1]display stp interface g0/0/1
    43. -------[CIST Global Info][Mode STP]-------
    44. CIST Bridge :32768.4c1f-cc15-4618
    45. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    46. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    47. CIST Root/ERPC :32768.4c1f-cc15-4618 / 0
    48. CIST RegRoot/IRPC :32768.4c1f-cc15-4618 / 0
    49. CIST RootPortId :0.0
    50. BPDU-Protection :Disabled
    51. TC or TCN received :5
    52. TC count per hello :0
    53. STP Converge Mode :Normal
    54. Time since last TC :0 days 0h:0m:29s
    55. Number of TC :8
    56. Last TC occurred :GigabitEthernet0/0/3
    57. ----[Port1(GigabitEthernet0/0/1)][FORWARDING]----
    58. Port Protocol :Enabled
    59. Port Role :Designated Port
    60. Port Priority :128
    61. Port Cost(Dot1T ) :Config=auto / Active=20000
    62. Designated Bridge/Port :32768.4c1f-cc15-4618 / 128.1
    63. Port Edged :Config=default / Active=disabled
    64. Point-to-point :Config=auto / Active=true
    65. Transit Limit :147 pack
    66. [LSW1]display stp interface g0/0/1 brief
    67. MSTID Port Role STP State Protection
    68. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE
    69. [LSW1]display mac-address

    对交换机LSW2采用同样的配置

    具有最高优先级的交换机被选为根网桥。若优先级相等,则具有最小MAC 地址的交换机被选为根网桥。默认情况下,交换机的优先级是 32768,在这里将LSW2的优先级设置为8192

    1. <Huawei>sys
    2. Enter system view, return user view with Ctrl+Z.
    3. [Huawei]sysname LSW2
    4. [LSW2]STP
    5. Sep 14 2023 06:33:29-08:00 LSW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
    6. 5.191.3.1 configurations have been changed. The current change number is 4, the
    7. change loop count is 0, and the maximum number of records is 4095.
    8. ^
    9. Error:Incomplete command found at '^' position.
    10. [LSW2]undo info-center enable
    11. Info: Information center is disabled.
    12. [LSW2]stp mode stp
    13. Info: This operation may take a few seconds. Please wait for a moment...done.
    14. [LSW2]display stp
    15. -------[CIST Global Info][Mode STP]-------
    16. CIST Bridge :32768.4c1f-ccd4-5efe
    17. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    18. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    19. CIST Root/ERPC :32768.4c1f-cc15-4618 / 40000
    20. CIST RegRoot/IRPC :32768.4c1f-ccd4-5efe / 0
    21. CIST RootPortId :128.1
    22. BPDU-Protection :Disabled
    23. TC or TCN received :62
    24. TC count per hello :2
    25. STP Converge Mode :Normal
    26. Time since last TC :0 days 0h:3m:24s
    27. Number of TC :6
    28. Last TC occurred :GigabitEthernet0/0/1
    29. ----[Port1(GigabitEthernet0/0/1)][DISCARDING]----
    30. Port Protocol :Enabled
    31. Port Role :Root Port
    32. Port Priority :128
    33. Port Cost(Dot1T ) :Config=auto / Active=20000
    34. Designated Bridge/Port :32768.4c1f-cc75-09aa / 128.3
    35. Port Edged :Config=default / Active=disabled
    36. Point-to-point :Config=auto / Active=true
    37. Transit Limit :147 packets/hello-time
    38. Protection Type :None
    39. [LSW2]display stp int g0/0/1
    40. -------[CIST Global Info][Mode STP]-------
    41. CIST Bridge :32768.4c1f-ccd4-5efe
    42. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    43. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    44. CIST Root/ERPC :32768.4c1f-cc15-4618 / 40000
    45. CIST RegRoot/IRPC :32768.4c1f-ccd4-5efe / 0
    46. CIST RootPortId :128.1
    47. BPDU-Protection :Disabled
    48. TC or TCN received :78
    49. TC count per hello :2
    50. STP Converge Mode :Normal
    51. Time since last TC :0 days 0h:3m:42s
    52. Number of TC :6
    53. Last TC occurred :GigabitEthernet0/0/1
    54. ----[Port1(GigabitEthernet0/0/1)][LEARNING]----
    55. Port Protocol :Enabled
    56. Port Role :Root Port
    57. Port Priority :128
    58. Port Cost(Dot1T ) :Config=auto / Active=20000
    59. Designated Bridge/Port :32768.4c1f-cc75-09aa / 128.3
    60. Port Edged :Config=default / Active=disabled
    61. Point-to-point :Config=auto / Active=true
    62. Transit Limit :147 packets/hello-time
    63. Protection Type :None
    64. [LSW2]display stp brief
    65. MSTID Port Role STP State Protection
    66. 0 GigabitEthernet0/0/1 ROOT FORWARDING NONE
    67. 0 GigabitEthernet0/0/2 ALTE DISCARDING NONE
    68. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    69. [LSW2]display stp int g0/0/1 brief
    70. MSTID Port Role STP State Protection
    71. 0 GigabitEthernet0/0/1 ROOT FORWARDING NONE
    72. [LSW2]display mac-address
    73. #设置优先级
    74. [LSW2]stp priority 8192
    75. [LSW2]display stp brief
    76. MSTID Port Role STP State Protection
    77. 0 GigabitEthernet0/0/1 DESI DISCARDING NONE
    78. 0 GigabitEthernet0/0/2 DESI DISCARDING NONE
    79. 0 GigabitEthernet0/0/3 DESI DISCARDING NONE
    80. [LSW2]display stp brief
    81. MSTID Port Role STP State Protection
    82. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE
    83. 0 GigabitEthernet0/0/2 DESI FORWARDING NONE
    84. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    85. [LSW2]display stp brief
    86. MSTID Port Role STP State Protection
    87. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE
    88. 0 GigabitEthernet0/0/2 DESI FORWARDING NONE
    89. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    90. [LSW2]display stp int g 0/0/1 brief
    91. MSTID Port Role STP State Protection
    92. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE

     对交换机LSW3采用同样的配置 

    1. <Huawei>sys
    2. Enter system view, return user view with Ctrl+Z.
    3. [Huawei]sysname LSW3
    4. [LSW3]
    5. Sep 14 2023 06:36:08-08:00 LSW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
    6. 5.191.3.1 configurations have been changed. The current change number is 4, the
    7. change loop count is 0, and the maximum number of records is 4095.
    8. [LSW3]undo info-center enable
    9. Info: Information center is disabled.
    10. [LSW3]stp mode stp
    11. Info: This operation may take a few seconds. Please wait for a moment...done.
    12. [LSW3]display stp
    13. -------[CIST Global Info][Mode STP]-------
    14. CIST Bridge :32768.4c1f-cc75-09aa
    15. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    16. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    17. CIST Root/ERPC :32768.4c1f-cc15-4618 / 20000
    18. CIST RegRoot/IRPC :32768.4c1f-cc75-09aa / 0
    19. CIST RootPortId :128.1
    20. BPDU-Protection :Disabled
    21. TC or TCN received :93
    22. TC count per hello :2
    23. STP Converge Mode :Normal
    24. Time since last TC :0 days 0h:2m:13s
    25. Number of TC :13
    26. Last TC occurred :GigabitEthernet0/0/3
    27. ----[Port1(GigabitEthernet0/0/1)][DISCARDING]----
    28. Port Protocol :Enabled
    29. Port Role :Root Port
    30. Port Priority :128
    31. Port Cost(Dot1T ) :Config=auto / Active=20000
    32. Designated Bridge/Port :32768.4c1f-cc15-4618 / 128.1
    33. Port Edged :Config=default / Active=disabled
    34. Point-to-point :Config=auto / Active=true
    35. Transit Limit :147 packets/hello-time
    36. Protection Type :None
    37. [LSW3]display stp int g0/0/1
    38. -------[CIST Global Info][Mode STP]-------
    39. CIST Bridge :32768.4c1f-cc75-09aa
    40. Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    41. Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
    42. CIST Root/ERPC :32768.4c1f-cc15-4618 / 20000
    43. CIST RegRoot/IRPC :32768.4c1f-cc75-09aa / 0
    44. CIST RootPortId :128.1
    45. BPDU-Protection :Disabled
    46. TC or TCN received :104
    47. TC count per hello :1
    48. STP Converge Mode :Normal
    49. Time since last TC :0 days 0h:2m:26s
    50. Number of TC :13
    51. Last TC occurred :GigabitEthernet0/0/3
    52. ----[Port1(GigabitEthernet0/0/1)][LEARNING]----
    53. Port Protocol :Enabled
    54. Port Role :Root Port
    55. Port Priority :128
    56. Port Cost(Dot1T ) :Config=auto / Active=20000
    57. Designated Bridge/Port :32768.4c1f-cc15-4618 / 128.1
    58. Port Edged :Config=default / Active=disabled
    59. Point-to-point :Config=auto / Active=true
    60. Transit Limit :147 pack
    61. [LSW3]display stp brief
    62. MSTID Port Role STP State Protection
    63. 0 GigabitEthernet0/0/1 ROOT LEARNING NONE
    64. 0 GigabitEthernet0/0/2 ALTE DISCARDING NONE
    65. 0 GigabitEthernet0/0/3 DESI LEARNING NONE
    66. 0 GigabitEthernet0/0/4 DESI LEARNING NONE
    67. [LSW3]display stp int g0/0/1 brief
    68. MSTID Port Role STP State Protection
    69. 0 GigabitEthernet0/0/1 ROOT FORWARDING NONE
    70. [LSW3]display mac-address
    71. [LSW3]stp priority 4096
    72. [LSW3]display stp brief
    73. MSTID Port Role STP State Protection
    74. 0 GigabitEthernet0/0/1 DESI DISCARDING NONE
    75. 0 GigabitEthernet0/0/2 DESI DISCARDING NONE
    76. 0 GigabitEthernet0/0/3 DESI DISCARDING NONE
    77. 0 GigabitEthernet0/0/4 DESI DISCARDING NONE
    78. [LSW3]display stp brief
    79. MSTID Port Role STP State Protection
    80. 0 GigabitEthernet0/0/1 DESI LEARNING NONE
    81. 0 GigabitEthernet0/0/2 DESI LEARNING NONE
    82. 0 GigabitEthernet0/0/3 DESI LEARNING NONE
    83. 0 GigabitEthernet0/0/4 DESI LEARNING NONE
    84. [LSW3]display stp brief
    85. MSTID Port Role STP State Protection
    86. 0 GigabitEthernet0/0/1 DESI LEARNING NONE
    87. 0 GigabitEthernet0/0/2 DESI LEARNING NONE
    88. 0 GigabitEthernet0/0/3 DESI LEARNING NONE
    89. 0 GigabitEthernet0/0/4 DESI LEARNING NONE
    90. [LSW3]display stp brief
    91. MSTID Port Role STP State Protection
    92. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE
    93. 0 GigabitEthernet0/0/2 DESI FORWARDING NONE
    94. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    95. 0 GigabitEthernet0/0/4 DESI FORWARDING NONE
    96. [LSW3]display stp interface g0/0/1 brief
    97. MSTID Port Role STP State Protection
    98. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE

    根据LSW2,LSW3都可以看到,端口状态的改变是需要时间的,具体时间可看下图: 

     

     做完LSW3的配置后,再看看LSW2,LSW1各端口状态 

    1. [LSW2]display stp brief
    2. MSTID Port Role STP State Protection
    3. 0 GigabitEthernet0/0/1 ROOT FORWARDING NONE
    4. 0 GigabitEthernet0/0/2 ALTE DISCARDING NONE
    5. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    6. [LSW1]display stp brief
    7. MSTID Port Role STP State Protection
    8. 0 GigabitEthernet0/0/1 ROOT FORWARDING NONE
    9. 0 GigabitEthernet0/0/2 ALTE DISCARDING NONE
    10. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    11. [LSW3]display stp brief
    12. MSTID Port Role STP State Protection
    13. 0 GigabitEthernet0/0/1 DESI FORWARDING NONE
    14. 0 GigabitEthernet0/0/2 DESI FORWARDING NONE
    15. 0 GigabitEthernet0/0/3 DESI FORWARDING NONE
    16. 0 GigabitEthernet0/0/4 DESI FORWARDING NONE

     可以看到LSW1和LSW2的g0/0/2端口被禁用了

    对于stp端口选择的规则可以看看这篇:

      http://t.csdn.cn/ySTni

    上面也可以看出stp端口角色名:

    1. Root Port(根端口):连接到具有最低优先级的交换机的端口,该端口是距离生成树的根交换机最近的端口。

    2. Designated Port(指定端口):对于每个网络段(LAN),STP选择一个指定端口,该端口用于发送和接收数据包,并作为该网络段连接的交换机的主要路径。

    3. Blocking Port(阻塞端口):处于非活动状态,用于阻止环路的形成。阻塞端口不传递数据,并且不参与生成树的计算。

    4. Non-Designated Port(非指定端口):与指定端口相反,在特定的网络段上不被选为主要路径的端口。

    端口分配如下: 

  • 相关阅读:
    矩阵分析与应用
    pyinstaller最简单教程
    easy_see
    Spring aop和事务源码连接口
    MES库存管理的那些事儿
    Windows Server 安装RabbitMQ并安装为windows服务
    使用并查集处理树的路径
    CSS背景(background)
    Java实现Excel导入导出
    【pc与移动端适配小tip】使用scss做vh,vw单位适配,scss的mixin与function方法
  • 原文地址:https://blog.csdn.net/weixin_69884785/article/details/132867034