本文主要是介绍机房交换机基础配置 -- Mellanox SN2700,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
以下出现的章节名采用配置手册中的。
# 基础配置
hostname switch-sn2700 -rack1 (2号机架)
hostname switch-sn2700-rack2 (3号机架)
4.1 Management Interface
4.1.1
static IP 192.168.X.Y/24 (2号机架)
static IP 192.168.M.N/24 (3号机架)
interface mgmt0 ip address 192.168.A.B 255.255.255.0
4.1.2 default gateway
ip route 0.0.0.0 0.0.0.0 192.168.C.D
3.2.3 密码修改
以初始用户名和密码访问交换机图形界面,选择“Security”。
默认就允许使用ssh和web浏览器访问交换机IP
4.4.1 保存配置
configuration write
交换机32口;16台主机,每台主机2口;对应关系: 每个机器的一个口p4p2插交换机1到16,另一个口p4p1插交换机17-32; 这样理论上每个机器同时属于两个100g网段
#模式变更
enable
configure terminal
# 配置Jumbo:(命令手册5.1章)
interface ethernet 1/1 shutdown
interface ethernet 1/1 mtu 9216 force
interface ethernet 1/1 no shutdown
# 配置Mirror Port
monitor session 1
add source interface ethernet 1/1 direction ingress (mirrored port,监控入队列)
destination interface ethernet 1/2 (analyzer port)
no truncate
no shutdown
# 检验Mirror port配置
show monitor session 1
show monitor session summary
这篇关于机房交换机基础配置 -- Mellanox SN2700的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!