zoukankan      html  css  js  c++  java
  • infiniband交换机配置命令总结

    串口通过远程CRT登录,波特率9600
    用户名和密码都是admin
    Do you want to use the wizard for initial configuration?
    选择no
    打开ip routing
    sx1012 [standalone: master] (config) # ip routing

    设置mgmt0端口的ip地址
    sx1012 [standalone: master] (config) # interface mgmt0 ip address 172.21.1.251 255.255.255.0

    将mgmt0的dhcp关掉
    no interface mgmt0 dhcp

    设置默认路由
    sx1012 [standalone: master] (config) # ip default-gateway 172.21.1.254

    show running-config

    重新运行初始配置向导
    sx1012 [standalone: master] (config) # configuration jump-start

    出厂设置命令:
    switch-f0be76 [standalone: master] (config) # reset factory

    配置主机名:
    switch-534c80 [standalone: *unknown*] (config) # hostname switch-B

    保存配置命令
    #write memory

    【配置完管理地址后,可以通过管理口登录交换机】

    ========================================================================================
    【预配置】
    开启路由
    switch (config)# ip routing

    交换机开启lacp(链路聚合控制协议)
    switch (config)# lacp

    开启QoS来避免IPL心跳端口拥挤
    switch (config)# dcb priority-flow-control enable force

    关闭生成树
    no spanning-tree

    开启MLAG协议
    switch (config)# protocol mlag

    【配置IPL】
    为IPL互联接口创建VLAN
    switch (config)# vlan 4000

    创建LAG(聚合组)
    switch (config)# interface port-channel 1

    映射一个或两个物理端口到LAG上,并激活
    switch (config)# interface ethernet 1/11 channel-group 1 mode active
    switch (config)# interface ethernet 1/12 channel-group 1 mode active

    将这个LAG设置成IPL互联
    switch (config interface port-channel 1)# ipl 1

    在这个特定接口上启用QoS
    switch (config interface port-channel 1)# dcb priority-flow-control mode on force

    创建VLAN
    switch (config)# interface vlan 4000

    VLAN4000设置IP地址
    交换机A上执行:
    switch (config interface vlan 4000)# ip address 10.10.10.1 /30
    交换机B上执行:
    switch (config interface vlan 4000)# ip address 10.10.10.2 /30

    强IPL映射到VLAN接口
    交换机A上执行:
    switch (config interface vlan 4000)# ipl 1 peer-address 10.10.10.2
    交换机B上执行:
    switch (config interface vlan 4000)# ipl 1 peer-address 10.10.10.1

    为MLAG配置虚拟IP
    交换机A上执行:
    switch (config)# mlag-vip my-vip ip 10.10.10.254 /24 //mask may also be 255.255.255.0
    交换机B上执行:
    switch (config)# mlag-vip my-vip
    注:vip与管理ip在同一网段

    【端口一分四】
    interface ethernet 1/1 module-type qsfp-split-4 force

    【配置MLAG端口】
    为主机创建MLAG端口
    switch (config)# interface mlag-port-channel 1

    关闭STP生成树
    switch (config interface mlag-port-channel 1)# spanning-tree port type edge
    switch (config interface mlag-port-channel 1)# spanning-tree bpdufilter enable

    绑定一个以太网口到MLAG组
    switch (config interface ethernet 1/2)# mlag-channel-group 1 mode on

    创建并开启MLAG接口
    switch (config interface mlag-port-channel 1)# no shutdown

    【开启MLAG】
    开启MLAG
    switch [my-vip: master] (config mlag)# no shutdown
    注:当在三层网络配置MLAG时,VRRP或MAGP必须被部署

    【验证MLAG】
    检查MLAG配置与状态
    SX2 [mellanox: master] (config)# show mlag

    检查MLAG汇总表
    switch [my-vip: master] (config)# show interfaces mlag-port-channel summary

    检查MLAG统计数据
    switch [my-vip: master] (config)# show mlag statistics

  • 相关阅读:
    java中的注解
    jQuery中的pushStack
    jenkins+maven+svn构建项目,及远程部署war包到tomcat上
    mysql中的find_in_set的使用
    svn的使用总结
    poi导出excel,以字符串格式输出数字
    eclipse中在整个工程中查找一个字符串的步骤
    Android Service学习
    Android生成签名文件
    开源移动医疗应用框架:mHealhDroid及APP
  • 原文地址:https://www.cnblogs.com/zhangjianghua/p/5912680.html
Copyright © 2011-2022 走看看