IB交换机配置命令总结
串口通过远程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交换机配置命令总结的更多相关文章
- HCNP学习笔记之史上最全华为路由器交换机配置命令大合集
先来一张思科和华为命令的对照表: 史上最全华为路由器交换机配置命令大合集,熟练掌握下面的华为路由器交换机配置知识点,你只需花几分钟的时间就能明白华为路由器交换机配置.交换机的配置命令等等. 华为路由器 ...
- 思科Cisco 2960系列交换机配置命令
配置密码: 2960>en :第一次密码为空 2960h#conf t :进入全局配置模式 2960(config)#hostname swa :设置交换机名 2960(config)#enab ...
- H3C交换机配置命令(收集)
1:配置登录用户,口令等 <H3C> //用户直行模式提示符,用户视图 <H3C>system-view //进入配置视图 [ ...
- Cisco路由器交换机配置命令详解
1. 交换机支持的命令: 交换机基本状态:switch: :ROM状态, 路由器是rommon>hostname> :用户模式hostname# :特权模式hostname(config) ...
- 如何down掉IB交换机口
服务器上找到需down的网络:ip a 通过ib命令iblinkinfo找到对应交换机以及在ib交换机上对应端口号 登录IB交换机,并通过命令:config进入配置模式 通过命令:port进入端口配置 ...
- 思科交换机配置DHCP的四个方面
这里我们主要讲解了思科交换机配置DHCP的相关内容.我们对网络拓扑先进行一下了解,然后对于其在进行一下说明,之后对于配置的代码和命令再进行一下解析. 思科交换机配置DHCP一.网络拓扑 思科交换机配置 ...
- 两种交换机配置模式,以配置基于端口划分的VLAN为例
关于交换机的配置模式,大体上可以分为两类:其一以CISCO交换机为代表的配置模式,其二以Huawei.H3C交换机为代表的配置模式.其实这两种配置模式并没有本质的不同,只是配置的命令名称和配置方式存在 ...
- H3C交换机配置
h3c 交换机的配置命令 通过 console 连接到交换机 交换机所使用的 console 接口看上去像是一个普通的 RJ45 网卡接口,但是并不能使用普通的网线与 PC 连接 ^_^ .它要通过 ...
- Cisco 交换机配置的基本命令
1.不同的vlan 不同vlan需要路由 在路由的端口设置多个IP段 交换机模拟器实验六 2.查看端口名字 SWA#sh vlan default Active F0/1, F0/2, F0 ...
随机推荐
- spring-mybatis jar下载地址
http://central.maven.org/maven2/org/mybatis/mybatis-spring/1.3.0/
- ubuntu 安装mysql-python和 python-ldap,navicate 问题
1.Ubuntu 下 pip install mysql-python 报错 EnvironmentError: mysql_config not found 原因是缺少mysqlclient 包,执 ...
- jquery EasyUI datagrid 的扩展
接触 easyui 半年,js学的不深.大神请路过. 直接扩展 添加方法: $.extend($.fn.datagrid.methods, { getSelectedIndex: function ( ...
- Postgresql死锁处理
今天遇到Postgresql的一个问题,部分表记录的update一直无效报错,初步判断为锁表,赶紧进行解决. 1. 查询死锁进程列表 select * from pg_stat_activity wh ...
- Mac OS X的空间去哪儿了
记得有事儿没事儿看下,/cores/目录的大小. cores目录是存放程序dump的数据,对于绝大部分人时是没有用的.可以删除.如果遇到坑爹的程序,一直生成dump文件,硬盘瞬间就爆满了. 典型:An ...
- kendoui treeview grid spreadsheet
treeview 傻子方式获取id <!DOCTYPE html> <html> <head> <title>API</title> < ...
- 解决mac升级后,出现的 xcrun: error: invalid active developer path, missing xcrun 错误
最近升级了mac系统,然后接着写代码就出问题了. 报错信息如下: xcrun: error: invalid active developer path (/Library/Developer/Com ...
- git使用简单教程
废话不多说,直接开始 1. 进入https://github.com/ 创建你的账号,然后开始创建一个你的仓库(基本概念请自行百度),比如jun. 2. 创建好仓库之后,下载git 3,设置git,就 ...
- extjs学习之Ext.selection.CheckboxModel
Ext.onReady( function() { var store=Ext.create('Ext.data.Store', { storeId:'simpsonsStore', fields:[ ...
- CMake 使用方法(转)
CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程).他能够输出各种各样的makefile或者project文件,能测试编译器所支持的C++特性,类似UNIX下的 ...