美文网首页
RSTP 快速生成树配置

RSTP 快速生成树配置

作者: 不忘初心铃 | 来源:发表于2018-11-08 17:31 被阅读0次

    开启rstp

    [Huawei]stp enable   #开启stp功能
    [Huawei]stp mode rstp     #配置stp模式为rstp
    

    设置全部端口为边缘端口(undo stp edged-port default命令将down状态和能接收bpdu报文的端口状态改变)

    [Huawei]stp edged-port default
    

    设置单个端口为边缘端口

    [Huawei]interface GigabitEthernet 0/0/1
    [Huawei-GigabitEthernet0/0/1]display this 
    #
    interface GigabitEthernet0/0/1
    #
    return
    [Huawei-GigabitEthernet0/0/1]stp edged-port
    [Huawei-GigabitEthernet0/0/1]display this 
    #
    interface GigabitEthernet0/0/1
     stp edged-port enable
    #
    return
    [Huawei-GigabitEthernet0/0/1]undo stp edged-port  #取消边缘端口配置
    [Huawei-GigabitEthernet0/0/1]display this 
    #
    interface GigabitEthernet0/0/1
    #
    return
    

    为边缘端口开启bpdu保护

    [Huawei]stp bpdu-protection
    

    开启环路保护(为根端口和Alternate端口开启)

    [Huawei]display stp brief 
     MSTID  Port                        Role  STP State     Protection
       0    GigabitEthernet0/0/1        DESI  FORWARDING      BPDU
       0    GigabitEthernet0/0/9        ROOT  FORWARDING      NONE
       0    GigabitEthernet0/0/10       ALTE  DISCARDING      NONE
    [Huawei]interface GigabitEthernet 0/0/9
    [Huawei-GigabitEthernet0/0/9]stp loop-protection 
    [Huawei-GigabitEthernet0/0/9]qu
    [Huawei]interface GigabitEthernet 0/0/10
    [Huawei-GigabitEthernet0/0/10]stp loop-protection 
    [Huawei-GigabitEthernet0/0/10]display stp brief 
     MSTID  Port                        Role  STP State     Protection
       0    GigabitEthernet0/0/1        DESI  FORWARDING      BPDU
       0    GigabitEthernet0/0/9        ROOT  FORWARDING      LOOP
       0    GigabitEthernet0/0/10       ALTE  DISCARDING      LOOP
    

    相关文章

      网友评论

          本文标题:RSTP 快速生成树配置

          本文链接:https://www.haomeiwen.com/subject/oelatqtx.html