串口通过远程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

IB交换机配置命令总结的更多相关文章

  1. HCNP学习笔记之史上最全华为路由器交换机配置命令大合集

    先来一张思科和华为命令的对照表: 史上最全华为路由器交换机配置命令大合集,熟练掌握下面的华为路由器交换机配置知识点,你只需花几分钟的时间就能明白华为路由器交换机配置.交换机的配置命令等等. 华为路由器 ...

  2. 思科Cisco 2960系列交换机配置命令

    配置密码: 2960>en :第一次密码为空 2960h#conf t :进入全局配置模式 2960(config)#hostname swa :设置交换机名 2960(config)#enab ...

  3. H3C交换机配置命令(收集)

    1:配置登录用户,口令等 <H3C>                   //用户直行模式提示符,用户视图 <H3C>system-view        //进入配置视图 [ ...

  4. Cisco路由器交换机配置命令详解

    1. 交换机支持的命令: 交换机基本状态:switch: :ROM状态, 路由器是rommon>hostname> :用户模式hostname# :特权模式hostname(config) ...

  5. 如何down掉IB交换机口

    服务器上找到需down的网络:ip a 通过ib命令iblinkinfo找到对应交换机以及在ib交换机上对应端口号 登录IB交换机,并通过命令:config进入配置模式 通过命令:port进入端口配置 ...

  6. 思科交换机配置DHCP的四个方面

    这里我们主要讲解了思科交换机配置DHCP的相关内容.我们对网络拓扑先进行一下了解,然后对于其在进行一下说明,之后对于配置的代码和命令再进行一下解析. 思科交换机配置DHCP一.网络拓扑 思科交换机配置 ...

  7. 两种交换机配置模式,以配置基于端口划分的VLAN为例

    关于交换机的配置模式,大体上可以分为两类:其一以CISCO交换机为代表的配置模式,其二以Huawei.H3C交换机为代表的配置模式.其实这两种配置模式并没有本质的不同,只是配置的命令名称和配置方式存在 ...

  8. H3C交换机配置

    h3c 交换机的配置命令 通过 console 连接到交换机 交换机所使用的 console 接口看上去像是一个普通的 RJ45 网卡接口,但是并不能使用普通的网线与 PC 连接 ^_^ .它要通过 ...

  9. Cisco 交换机配置的基本命令

    1.不同的vlan 不同vlan需要路由 在路由的端口设置多个IP段 交换机模拟器实验六 2.查看端口名字 SWA#sh vlan    default  Active  F0/1, F0/2, F0 ...

随机推荐

  1. js中var self=this的解释

    每个函数在定义被ECMAScript解析器解析时,都会创建两个特殊的变量:this和arguments,换句话说,每个函数都有属于自己的this对象,这个this对象是在运行时基于函数的执行环境绑定的 ...

  2. 阐述程序员如何实现IT职业定位

    [动力IT职业生涯规划课]阐述程序员如何实现IT职业定位 2016年9月16日下午17:00,南通动力IT教育创始人阙海忠先生,亲自向动力IT学员传授其十八年IT从业经验. 一个程序员的完美人生定位 ...

  3. Camstar Portal modeling user guid --自定义用户菜单

    通过studio 创建 menu definition 创建菜单 创建成功后到employee界面设置对应菜单就可以了

  4. socket阻塞与非阻塞,同步与异步

    socket阻塞与非阻塞,同步与异步 作者:huangguisu 转自:http://blog.csdn.net/hguisu/article/details/7453390 1. 概念理解 在进行网 ...

  5. expense KK [ɪkˋspɛns] DJ [iksˋpens]

    https://tw.dictionary.yahoo.com/dictionary?p=expense expense 1 Dr.eye譯典通   KK [ɪkˋspɛns] DJ [iksˋpen ...

  6. jQuery Mobile 图标

    jQuery 图标 如需在 jQuery Mobile 中向按钮添加图标,请使用 data-icon 属性: <a href="#anylink" data-role=&qu ...

  7. TCP协议学习记录 (一) ICMP时间戳请求

    程序只实现了获取时间戳,至于将时间戳转换成具体日期和时间,暂时没有好的办法. #define TIME_STAMP_REQUEST 13 struct iphdr { unsigned ; //包头长 ...

  8. UISegmentedControl 控件

    一.创建 UISegmentedControl* mySegmentedControl = [[UISegmentedControl alloc]initWithItems:nil]; 是不是很奇怪没 ...

  9. Nginx密码验证 ngx_http_auth_basic_module模块

    有时候我们需要限制某些目录只允许指定的用户才可以访问,我们可以给指定的目录添加一个用户限制. nginx给我们提供了ngx_http_auth_basic_module模块来实现这个功能. 模块ngx ...

  10. SQLYog快捷键大全

    Ctrl+M   创建一个新的连接 Ctrl+N   使用当前设置新建连接 Ctrl+F4   断开当前连接 对象浏览器 F5   刷新对象浏览器(默认) Ctrl+B   设置焦点于对象浏览器 SQ ...