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配置的更多相关文章

  1. IB交换机配置命令总结

    串口通过远程CRT登录,波特率9600用户名和密码都是adminDo you want to use the wizard for initial configuration?选择no打开ip rou ...

  2. NFS(Network File System)服务配置和使用

    Sun公司开发NFS (Network File System)之初就是为了在不同linux/Unix系统之间共享文件或者文件夹.可以在本地通过网络挂载远程主机的共享文件,和远程主机交互.NFS共享存 ...

  3. 硬件RDMA的驱动配置和测试

    author:headsen chen date: 2019-01-18  10:22:20 notice:created  by headsen chen himself and not allow ...

  4. mellanox RDMA RoCE

    一:首先根据系统发行版本下载对应的驱动,下载地址如下: http://www.mellanox.com/page/products_dyn?product_family=26&mtag=lin ...

  5. OpenMPI 集群配置

    现在有2台机器,希望可以尝试一下在多台机器上跑MPI的感觉,所以跑之前就得配置,先参考网址: https://www.cnblogs.com/awy-blog/p/3402949.html: 1. 配 ...

  6. qemu-kvm安装and配置桥接和SR-IOV

    kvm和docker的区别:kvm是全虚拟化,需要模拟各种硬件,docker是容器,共享宿主机的CPU,内存,swap等.本文安装的qemu-kvm属于kvm虚拟化,其中:kvm负责cpu虚拟化和内存 ...

  7. 配置android sdk 环境

    1:下载adnroid sdk安装包 官方下载地址无法打开,没有vpn,使用下面这个地址下载,地址:http://www.android-studio.org/

  8. Android Studio配置 AndroidAnnotations——Hi_博客 Android App 开发笔记

    以前用Eclicps 用习惯了现在 想学学 用Android Studio 两天的钻研终于 在我电脑上装了一个Android Studio 并完成了AndroidAnnotations 的配置. An ...

  9. react-router 组件式配置与对象式配置小区别

    1. react-router 对象式配置 和 组件式配置    组件式配置(Redirect) ----对应---- 对象式配置(onEnter钩子) IndexRedirect -----对应-- ...

随机推荐

  1. 专题五:redis的数据类型之set

    一.基本简介 现在出现了新的查询需求:存储大量数据的同时,还需要在查询方面提供更高的效率.虽然list满足存储大量的数据,也可以通过索引来进行访问,但是list底层是双向链表的结构,在查询上的效率并没 ...

  2. 团灭 LeetCode 打家劫舍问题

    有读者私下问我 LeetCode 「打家劫舍」系列问题(英文版叫 House Robber)怎么做,我发现这一系列题目的点赞非常之高,是比较有代表性和技巧性的动态规划题目,今天就来聊聊这道题目. 打家 ...

  3. 「SHOI2014」三叉神经树

    「SHOI2014」三叉神经树 给你一颗由\(n\)个非叶子结点和\(2n+1\)个叶子结点构成的完全三叉树,每个叶子结点有一个输出:\(0\)或\(1\),每个非叶子结点的输出为自己的叶子结点中较多 ...

  4. MySQL日期函数与日期转换格式化函数大全

    Mysql作为一款开元的免费关系型数据库,用户基础非常庞大,本文列出了MYSQL常用日期函数与日期转换格式化函数 1.DAYOFWEEK(date) 1 2 SELECT DAYOFWEEK('201 ...

  5. AMA指标原作者Perry Kaufman 100+套交易策略源码分享

    更多精彩内容,欢迎关注公众号:数量技术宅.想要获取本期分享的完整策略代码,请加技术宅微信:sljsz01 AMA技术指标与原作者 Kaufman 说起 Perry Kaufman 这个名字,不少读者会 ...

  6. C#泛型用法,附代码示列

    C#中的泛型,大致有如下几种:泛型方法,泛型类,泛型接口,泛型委托,泛型约束等 使用泛型的好处一个是为了减少代码量,更主要的是能提高效率,不需要进行拆箱和装箱的操作. 下面是写的简单的例子,共勉,加深 ...

  7. shell编程之字符串操作

    shell中字符串操作主要有以下几种,其中:pattern ,old中可以使用通配符: ${#var} :返回字符串变量var的长度 ${var:m} :返回${var}中从第m+1个字符到最后的部分 ...

  8. 命名管道FIFO及其读写规则

    一.匿名管道的一个限制就是只能在具有共同祖先的进程间通信命名管道(FIFO):如果我们想在不相关的进程之间切换数据,可以使用FIFO文件来做这项工作注意:命名管道是一种特殊类型文件.利用命令:$ mk ...

  9. 快速熟悉 Oracle AWR 报告解读

    目录 AWR报告简介 AWR报告结构 基本信息 Report Summary Main Report RAC statistics Wait Event Statistics 参考资料 本文面向没有太 ...

  10. spring的原理

    一.pring的原理 1.1 IOC控制反转 ==> 扫描机制通过代理方式动态创建对象 扫描注解,通过反射获取类路径,动态创建对应类的对象,放置在对象池中(多线程做法,防止短时间内创建对象过多, ...