鲲鹏社区首页
EN
注册
开发者
我要评分
获取效率
正确性
完整性
易理解
在线提单
论坛求助

配置交换机参数

请根据实际业务情况在交换机中执行以下操作。

  1. 全局配置,开启PFC。
    dcb pfc # 进入pfc配置
    priority 0 to 7
    priority 0 deadlock-detect time 5 deadlock-recovery time 5
    priority 0 turn-off threshold 5
    priority 1 deadlock-detect time 5 deadlock-recovery time 5
    priority 1 turn-off threshold 5
    com
  2. 全局配置,创建WRED丢弃模板。
    drop-profile ecn_ldcp #创建WRED丢弃模板
    ecn buffer-size low-limit 10240 high-limit 750000 discard-percentage 90
    ecn weight 0 
    com
    drop-profile ecn_dcqcn #创建WRED丢弃模板
    ecn buffer-size low-limit 425000 high-limit 750000 discard-percentage 10
    ecn weight 0
    com
  3. 配置交换机参数,四个端口需配置相同内容。
    int 100GE1/0/34 # 进入交换机端口
    eth-trunk 34 # 组建bond需要配置trunk
    trust dscp
    qos buffer queue 0 shared-threshold dynamic 10 
    qos buffer queue 1 shared-threshold dynamic 10 
    qos buffer queue 2 shared-threshold dynamic 10 
    qos buffer queue 3 shared-threshold dynamic 10 
    qos buffer queue 4 shared-threshold dynamic 10 
    qos buffer queue 5 shared-threshold dynamic 10 
    qos buffer queue 6 shared-threshold dynamic 10 
    qos buffer queue 7 shared-threshold dynamic 10 
    qos queue 0 wred ecn_dcqcn 
    qos queue 1 wred ecn_dcqcn
    qos queue 2 wred ecn_dcqcn
    qos queue 3 wred ecn_dcqcn
    qos queue 4 wred ecn_dcqcn
    qos queue 5 wred ecn_dcqcn
    qos queue 6 wred ecn_dcqcn
    qos queue 7 wred ecn_dcqcn
    qos drr 0 to 7
    qos queue 0 drr weight 25
    qos queue 1 drr weight 25
    qos queue 2 drr weight 25
    qos queue 3 drr weight 25
    qos queue 4 drr weight 25
    qos queue 5 drr weight 25
    qos queue 6 drr weight 25
    qos queue 7 drr weight 25
    qos queue 0 ecn
    qos queue 1 ecn
    qos queue 2 ecn
    qos queue 3 ecn
    qos queue 4 ecn
    qos queue 5 ecn
    qos queue 6 ecn
    qos queue 7 ecn
    dcb pfc enable mode manual
    dcb pfc buffer 0 xoff dynamic 5 
    dcb pfc buffer 1 xoff dynamic 5 
    dcb pfc buffer 2 xoff dynamic 5 
    dcb pfc buffer 3 xoff dynamic 5 
    dcb pfc buffer 4 xoff dynamic 5 
    dcb pfc buffer 5 xoff dynamic 5
    dcb pfc buffer 6 xoff dynamic 5 
    dcb pfc buffer 7 xoff dynamic 5
    com