Mellanox 4036配置
1.前言
内置factory-default 会重置所有参数到出厂设置。
内置reboot、拔电源就是重启。
外置reset就是重置芯片中数据,不会恢复到出厂设置。
2.感受下恢复出厂过程
4036-41E6(config)# factory-default
Go back to factory defaults? [yes|no] yes
starting pid 988, tty '': '/etc/rc.d/rcS stop'
4036-41E6(config)# ibsw-init.sh stop...
Sat Jan 8 11:31:09 UTC 2000
repsave: total entries to dump 19
526%
repsave: total execution count = 2 sec.
WRITE Returned retError = 0
Returned retError = 0
nvigor.sh stop...
Sat Jan 8 11:31:10 UTC 2000
/usr/voltaire/aVIP.sh stop
Set back the Local Default Gateway: route add default gw 172.16.8.254 eth0
VSM.sh stop
Shutting down opensm:
MNG.sh stop
== stop send to VIP,VSM,MNG : waiting for 1 sec. ==
All stopped... Removing nvigor.sh lock
Stopping crond:
Stopping inetd:
Syncing hardware clock to system time
0x3c
U-Boot 1.3.4.32_4U_03 (Sep 10 2012 - 19:28:47)
CPU: AMCC PowerPC 460EX Rev. B at 666.666 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security/Kasumi support
Bootstrap Option E - Boot ROM Location EBC (16 bits)
Internal PCI arbiter disabled
32 kB I-Cache 32 kB D-Cache
Board: 4036QDR - Voltaire 4036 QDR Switch Board
I2C: ready
DRAM: 512 MB (ECC enabled, 333 MHz, CL3)
FLASH: 64 MB
NAND: 256 MiB
*** Warning - bad CRC, using default environment
MAC Address: 00:08:F1:20:41:E6
PCIE1: successfully set as root-complex
PCIE: Bus Dev VenId DevId Class Int
01 00 15b3 bd34 0c06 00
Net: ppc_4xx_eth0
Recovery counter: 10
Type run flash_nfs to mount root filesystem over NFS
Hit any key to stop autoboot: 0
Booting secondary, Press ^C to abort
## Booting kernel from Legacy Image at fc000000 ...
Image Name: Linux-2.6.26
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1406018 Bytes = 1.3 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Flattened Device Tree blob at fc1e0000
Booting using the fdt blob at 0xfc1e0000
## Loading init Ramdisk from Legacy Image at 02000000 ...
Image Name: Voltaire QDR ramdisk
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
Data Size: 23303620 Bytes = 22.2 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Device Tree to 007fa000, end 007fffa0 ... OK
Loading Ramdisk to 1e85d000, end 1fe965c4 ... OK
Using Voltaire machine description
Linux version 2.6.26 (alexne@heka.lab.mtl.com) (gcc version 4.2.2) #22 Sun Sep 23 11:59:23 IST 2012
Found initrd at 0xde85d000:0xdfe965c4
Zone PFN ranges:
DMA 0 -> 131072
Normal 131072 -> 131072
HighMem 131072 -> 131072
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 131072
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: root=/dev/ram ramdisk_size=0x1b00000 prim_flg=0 ip=::::voltaire4036:eth0:off panic=1 console=ttyS0,38400n8
UIC0 (32 IRQ sources) at DCR 0xc0
UIC1 (32 IRQ sources) at DCR 0xd0
UIC2 (32 IRQ sources) at DCR 0xe0
UIC3 (32 IRQ sources) at DCR 0xf0
PID hash table entries: 2048 (order: 11, 8192 bytes)
clocksource: timebase mult[600000] shift[22] registered
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 493440k/524288k available (2828k kernel code, 30364k reserved, 108k data, 111k bss, 172k init)
SLUB: Genslabs=10, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 340 bytes
NET: Registered protocol family 16
256k L2-cache enabled
PCIE1: Checking link...
PCIE1: Device detected, waiting for link...
PCIE1: link is up !
PCI host bridge /plb/pciex@d20000000 (primary) ranges:
MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000
IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCIE1: successfully set as root-complex
PCI: Probing PCI hardware
PCI: Hiding 4xx host bridge resources 0000:80:00.0
PCI: Bridge: 0000:80:00.0
IO window: disabled.
MEM window: 0x80000000-0x800fffff
PREFETCH window: disabled.
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 22757k freed
JFFS2 version 2.2. (NAND) (SUMMARY) 2001-2006 Red Hat, Inc.
msgmni has been set to 1009
io scheduler noop registered (default)
Serial: 8250/16550 driver $Revision: 1.3 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 19) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 20) is a 16550A
serial8250.0: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550A
serial8250.0: ttyS3 at MMIO 0x4ef600600 (irq = 21) is a 16550A
4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 19) is a 16550A
4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 20) is a 16550A
4ef600500.serial: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550A
4ef600600.serial: ttyS3 at MMIO 0x4ef600600 (irq = 21) is a 16550A
brd: module loaded
loop: module loaded
PPC 4xx OCP EMAC driver, version 3.54
MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
ZMII /plb/opb/emac-zmii@ef600d00 initialized
RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
TAH /plb/opb/emac-tah@ef601350 initialized
TAH /plb/opb/emac-tah@ef601450 initialized
/plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
PHY address 0xffffffff map 0x0
eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:08:f1:20:41:e6
eth0: found Generic MII PHY (0x00)
/plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
PHY address 0xffffffff map 0x1
/plb/opb/ethernet@ef600f00: can't find PHY!
4cc000000.nor_flash: Found 1 x16 devices at 0x0 in 16-bit bank
4cc000000.nor_flash: Found 1 x16 devices at 0x2000000 in 16-bit bank
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Creating 15 MTD partitions on "4cc000000.nor_flash":
0x00000000-0x001e0000 : "kernel"
0x001e0000-0x00200000 : "dtb"
0x00200000-0x003e0000 : "safe-kernel"
0x003e0000-0x00440000 : "free space 1"
0x00440000-0x00fa0000 : "ramdisk-b"
0x00fa0000-0x01000000 : "u-boot 0"
0x01000000-0x01fa0000 : "ramdisk-a"
0x01fa0000-0x02000000 : "u-boot 1"
0x02000000-0x02fa0000 : "safe-ramdisk-a"
0x02fa0000-0x03000000 : "u-boot 2"
0x03000000-0x03b60000 : "safe-ramdisk-b"
0x03b60000-0x03b80000 : "safe-dtb"
0x03b80000-0x03f60000 : "config"
0x03f60000-0x03fa0000 : "u-boot env"
0x03fa0000-0x04000000 : "u-boot"
NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 1 MTD partitions on "4e0000000.ndfc.nand":
0x00000000-0x10000000 : "log"
i2c /dev entries driver
IBM IIC driver v2.1
ibm-iic(/plb/opb/i2c@ef600700): using standard (100 kHz) mode
ibm-iic(/plb/opb/i2c@ef600800): using standard (100 kHz) mode
i2c-2: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 0)
i2c-3: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 1)
i2c-4: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 2)
i2c-5: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 3)
rtc-ds1307 6-0068: rtc core: registered ds1338 as rtc0
rtc-ds1307 6-0068: 56 bytes nvram
i2c-6: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 4)
i2c-7: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 5)
i2c-8: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 6)
i2c-9: Virtual I2C bus (Physical bus i2c-0, multiplexer 0x70 port 7)
pca954x 0-0070: registered 8 virtual busses for I2C switch pca9548
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-ds1307 6-0068: setting system clock to 2000-01-08 11:32:56 UTC (947331176)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 172k init
init started: BusyBox v1.12.2 (2011-01-03 14:13:22 IST)
starting pid 16, tty '': '/etc/rc.d/rcS'
mount: no /proc/mounts
Mounting /proc and /sys
Mounting filesystems
Loading module Voltaire
Empty flash at 0x0ff5e870 ends at 0x0ff5f000
Starting crond:
Starting telnetd:
ibsw-init.sh start...
Sat Jan 8 11:33:06 UTC 2000
INSTALL FLAG 0x1
First installation - Create clean repository ...
JFFS2 notice: (50) check_node_data: wrong data CRC in data node at 0x0ff5e65c: read 0x4913c471, calculated 0xae91d796.
WRITE Returned retError = 0
Returned retError = 0
Returned retError = 0
100%
repload: create #SQL done.
100%
repload: raw data inserted.
100%
repload: create #TRG done.
repload: total execution count = 3 sec.
starting syslogd & klogd ...
Starting ISR: ib_is4 0000:81:00.0: ep0_dev_name 0000:81:00.0
starting pid 799, tty '': '-/sb
4036 Version 3.9.1 BUILD ID 985
Sun Sep 23 18:01:19 IST 2012
4036-41E6 login: admin
Password:
Welcome to Voltaire Switch 4036-41E6
Initial configuration: Please change the default root password
Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password:
Bad password: too simple.
Warning: weak password (continuing).
Re-enter new password:
Password changed.
4036-41E6#
3. 设置SM
4036-41E6(config-sm)# ?
<'command'> ? Displays the command usage strin
g
? Displays the list of available c
ommands
end Ends the CLI
exit Exits to previous menu
sm-info babbling_port_policy set Sets babbling_port_policy SM par
ameter
sm-info force_link_speed set Sets force_link_speed SM paramet
er
sm-info head_of_queue_lifetime set Sets transaction_timeout SM para
meter
sm-info leaf_head_of_queue_lifetime set Sets leaf_head_of_queue_lifetime
SM parameter
sm-info lmc set Sets LMC SM parameter
sm-info max_op_vls set Sets max_op_vls SM parameter
sm-info mode set Enables/disables the SM
sm-info packet_life_time set Sets packet_life_time SM paramet
er
sm-info partition export-partitions-file Exports the partition file to re
mote location
sm-info partition import-partitions-file Imports the partition file from
remote location
sm-info polling_retry_number set Sets polling_retry_number SM par
ameter
sm-info polling_timeout set Sets polling_timeout SM paramete
r
sm-info priority set Sets the priority SM parameter
sm-info reassign_lids set Sets reassign_lids SM parameter
sm-info restart Restarts SM
sm-info routing_engine set Sets routing_engine SM parameter
sm-info show Shows the SM parameters
sm-info sweep_interval set Sets the sweep_interval SM param
eter
4036-41E6(config-sm)# sm-info mode set ?
sm-info mode set sm-info mode set [enable|disable]
4036-41E6(config-sm)# sm-info mode set enable
4036-41E6(config-sm)# sm-info show
subnet manager info is:
sweep_interval: 15
max_wire_smps: 16
lmc: 0
max_op_vls: 5
transaction_timeout: 150
head_of_queue_lifetime: 16
leaf_head_of_queue_lifetime: 16
packet_life_time: 18
sminfo_polling_timeout: 5000
polling_retry_number: 12
reassign_lids: disable
babbling_port_policy: disable
routing_engine_names: minhop
log_flags: 7
force_link_speed: 0
polling_rate: 30
mode: enable
state: not active
sm_priority: 4
4. 设置管理地址
4036-41E6(config-if)# ?
<'command'> ? Displays the command usage string
? Displays the list of available commands
broadcast set Sets the broadcast address
default-gw delete Deletes the default gateway for the interface
default-gw set Sets the default gateway for the interface
dhcp set Enables/disables the DHCP client
dhcp6 set Enables/disables the DHCP6 client
end Ends the CLI
exit Exits to previous menu
interface ethernet set Sets Ethernet as the Management interface
interface infiniband set Sets InfiniBand as the Management interface
ip-address set Sets the interface IP address
ip-address show Shows the interface IP address and configuration
ip6-address set Sets the interface IP6 address
ip6-autoconfig set Sets the ip6 autoconfig mode
link-speed set Sets the interface IP link speed
ping Sends ping messages
4036-41E6(config-if)#
4036-41E6(config-if)# ip-address show
port selection Ethernet
ip no ip - interface is down or network problem
ip6
ip6 autoconfig enabled
mask 255.255.255.0
broadcast 192.168.1.255
DHCP client enabled
DHCP6 client disabled
Link-speed auto-negotiation
MAC 00:08:F1:20:41:E6
4036-41E6(config-if)#
4036-41E6(config-if)# dhcp set ?
dhcp set dhcp set [disable, enable]
4036-41E6(config-if)# dhcp set disable
4036-41E6(config-if)# ip-address set 172.24.12.21
ip-address set 172.24.12.21
Syntax error after word #3.
4036-41E6(config-if)# ip-address set 172.24.12.21 255.255.255.0
4036-41E6(config-if)# ip-address show
port selection Ethernet
ip 172.24.12.21
ip6
ip6 autoconfig enabled
mask 255.255.255.0
broadcast 172.24.12.255
DHCP client disabled
DHCP6 client disabled
Link-speed auto-negotiation
MAC 00:08:F1:20:41:E6
4036-41E6(config-if)#
Mellanox 4036配置的更多相关文章
- IB交换机配置命令总结
串口通过远程CRT登录,波特率9600用户名和密码都是adminDo you want to use the wizard for initial configuration?选择no打开ip rou ...
- NFS(Network File System)服务配置和使用
Sun公司开发NFS (Network File System)之初就是为了在不同linux/Unix系统之间共享文件或者文件夹.可以在本地通过网络挂载远程主机的共享文件,和远程主机交互.NFS共享存 ...
- 硬件RDMA的驱动配置和测试
author:headsen chen date: 2019-01-18 10:22:20 notice:created by headsen chen himself and not allow ...
- mellanox RDMA RoCE
一:首先根据系统发行版本下载对应的驱动,下载地址如下: http://www.mellanox.com/page/products_dyn?product_family=26&mtag=lin ...
- OpenMPI 集群配置
现在有2台机器,希望可以尝试一下在多台机器上跑MPI的感觉,所以跑之前就得配置,先参考网址: https://www.cnblogs.com/awy-blog/p/3402949.html: 1. 配 ...
- qemu-kvm安装and配置桥接和SR-IOV
kvm和docker的区别:kvm是全虚拟化,需要模拟各种硬件,docker是容器,共享宿主机的CPU,内存,swap等.本文安装的qemu-kvm属于kvm虚拟化,其中:kvm负责cpu虚拟化和内存 ...
- 配置android sdk 环境
1:下载adnroid sdk安装包 官方下载地址无法打开,没有vpn,使用下面这个地址下载,地址:http://www.android-studio.org/
- Android Studio配置 AndroidAnnotations——Hi_博客 Android App 开发笔记
以前用Eclicps 用习惯了现在 想学学 用Android Studio 两天的钻研终于 在我电脑上装了一个Android Studio 并完成了AndroidAnnotations 的配置. An ...
- react-router 组件式配置与对象式配置小区别
1. react-router 对象式配置 和 组件式配置 组件式配置(Redirect) ----对应---- 对象式配置(onEnter钩子) IndexRedirect -----对应-- ...
随机推荐
- pytorch 图像分类数据集(Fashion-MNIST)
import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot ...
- Qt5打包后缺少dll,启动失败问题
Qt5使用Qt自带的windeployqt打包程序教程很多,其过程也很简单,但是大部分人在打包过程中会出现提示缺少dll,或者错误0xXXXX等问题,网上各种说法,我测试过基本都不怎么正确,这里写一下 ...
- 云计算之路-出海记:蹭一张 aws 船票
出海记开篇之后,在 aws 上搭建博客园海外站的出海计划今天开始迈出第一步 -- 注册一个 aws 海外区域账号. aws 现在针对新注册用户提供12个月免费套餐(正在园子里推广并提供了专属注册通道) ...
- Java学习的第二十三天
1.今天学习了用log4j记录日志 综合实例 2.不知道日志什么时候用到 3.明天学习12章
- 在IIS中部署前后端应用,多么痛的领悟!
目前手上的Web项目是前后端分离的,所以有时也会倒腾Vue框架. 前后端应用最终以容器形态.在k8s中部署, 为此我搭建了基于Gitlab flow的Devops流程. 在Devops实践中,容器部署 ...
- 力扣 - 142. 环形链表 II
目录 题目 思路1 代码实现 思路2 代码实现 题目 给定一个链表,返回链表开始入环的第一个节点. 如果链表无环,则返回 null. 为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链 ...
- 记一次因python相互导入包的报错
先丢报错信息:AttributeError:module 'utils.configHttp' has no attribute 'ConfigHttp' 开始以为是导入包的常规问题,上网搜了一下解决 ...
- Thinkphp3.2 cms之角色开发
一.角色管理开发 <?php namespace Admin\Controller; use Think\Controller; class SystemController extends C ...
- Docker系列02—Docker 网络模式
一.Docker的四种网络模式 1.Docker 的四种网络模式: Bridge container 桥接式网络模式 Host(open) container 开放式网络模式 Container(jo ...
- kafka生产者数据可靠性保证
为保证 producer 发送的数据,能可靠的发送到指定的 topic,topic 的每个 partition 收到 producer 发送的数据后,都需要向 producer 发送 ack(ackn ...