ib网卡命令_IB交换机配置命令总结

本文详细介绍了如何通过串口远程登录IB交换机进行配置,包括开启IP路由、设置管理接口IP、关闭DHCP、配置默认网关、启用路由协议、配置链路聚合控制协议(LACP)、QoS、MLAG、IPL和端口一分四等操作,以确保网络的稳定性和高效性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

原文:http://www.cnblogs.com/zhangjianghua/p/5912680.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值