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 -----对应-- ...
随机推荐
- STM32入门系列-STM32最小系统介绍
STM32最小系统组成 单片机最小系统,也就是能够使得单片机正常运行程序,最少需要连接哪些器件.一般来说,STM32最小系统由四部分组成: 电源电路 复位电路 晶振电路 下载电路 STM32单片机由A ...
- JAVA类库之——Math类(持续更新)
Math类 目录 Math类 1.Math 类中的常量方法 返回π(圆周率)值的方法:PI 返回E(自然对数低)值的方法:E 2.Math 类中的三角函数方法 计算正弦函数值的方法:Sin(radia ...
- 快速傅里叶变换(FFT)学习笔记(其一)
再探快速傅里叶变换(FFT)学习笔记(其一) 目录 再探快速傅里叶变换(FFT)学习笔记(其一) 写在前面 为什么写这篇博客 一些约定 前置知识 多项式卷积 多项式的系数表达式和点值表达式 单位根及其 ...
- learning to Estimate 3D Hand Pose from Single RGB Images论文理解
持续更新...... 概括:以往很多论文借助深度信息将2D上升到3D,这篇论文则是想要用网络训练代替深度数据(设备成本比较高),提高他的泛性,诠释了只要合成数据集足够大和网络足够强,我就可以不用深度信 ...
- 要求用户输入用户名和密码,只要不是admin、888888就
要求用户输入用户名和密码,只要不是admin.888888就一直提示用户名或密码错误,请重新输入 Console.WriteLine("输入账号和密码"); string a = ...
- Spring Security验证,提示正确的信息
关于Spring Security的使用,之前也整理过一些笔记,但是在提示信息的时候,总感觉还缺点什么?不管是不是前后端分离,我们都希望在登录验证出现错误的时候,能够提示友好的中文信息. 在前后端不分 ...
- 使用css控制table的cellspacing和cellpadding属性
HTML默认的表格样式之间有间隙,每次为了解决这些问题,总要在table标签里添加cellspacing和cellpadding,你是否也很厌倦这样的写法, 那么有没有对应的CSS属性能达到相同的效果 ...
- Java的注释-标识符和关键字
1.Java注释 单行注释 多行注释 文档注释 代码示例 public class Hello{ public static void main(String[] args) { ...
- Vue 计算属性与方法
computed 基本使用 如果数据需要有复杂的计算,则可以在Vue实例中定义计算属性,再交由mustache进行渲染. computed内部其实是通过getttr实现的,所以不用加括号即可完成其下方 ...
- 汇编语言常用的DOS功能调用
今天掌握了汇编语言常用的DOS功能调用,现在列出来供参考. 1.单字符输入(1号调用) 格式:MOV AH,1 INT 21H 功能:达到输入状态,从键盘上输入字符的ASCII码送入AX中,并送显示器 ...