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. 盘点.NET JIT在Release下由循环体优化所产生的不确定性Bug

    盘点在Release下由循环体优化所产生的不确定性Bug 在这篇文章中,我将介绍一些在测试环境(DEBUG)下正常,但在生产环境(Release)下却会出现的一些让人难以捉摸的Bug. 如果你对开源技 ...

  2. Learn day6 模块pickle\json\random\os\zipfile\面对对象(类的封装 操作 __init__)

    1.模块 1.1 pickle模块 # ### pickle 序列化模块 import pickle """ 序列化: 把不能够直接存储的数据变得可存储 反序列化: 把数 ...

  3. windows下redis的PHP扩展安装

    1.查看已安装PHP的信息,打印phpinfo(); 主要看三个信息:PHP版本,是否线程安全(TS或NTS),系统是x64还是x86.用以确定扩展文件的版本. 2.需要php_redis.dll这个 ...

  4. Java中的(String args[])

    1. DOS下运行 首先,String args[] 这个形式可以直接看出它就是一个字符串数组充当main函数形式参数,args是arguments的缩写,不是关键字(就是一个数组名),可以改但没必要 ...

  5. MySQL的安装及安装问题解答(一)

    1. MySQL简介 MySQL属于关系型数据库管理系统,RDBMS(Relational Datebase Management System), 前身为瑞典MySQL AB公司开发,当前属于Orq ...

  6. W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915

    在执行sudo update-initramfs -u过程中 出现这个错误意思就是说少了固件,只要去下载放到/lib/firmware/i915文件夹下就好了. 下载链接如下: https://git ...

  7. 17 c10k问题

    所谓c10k问题,指的是服务器同时支持成千上万个客户端的问题,也就是concurrent 10 000 connection(这也是c10k这个名字的由来). 推荐: https://my.oschi ...

  8. git引入_版本控制介绍

    八个字形容git技术: 公司必备,一定要会 一.git概念: git是一个免费的,开源的分布式版本控制系统,可以快速高效的处理从小型到大型的项目 二.什么是版本控制: 版本控制是一种一个记录一个或若个 ...

  9. Linux下Flask环境

    一,安装python3.6.4 wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz tar -xvzf Python-3.6.4. ...

  10. Effective Modern C++ ——条款5 优先选择auto,而非显式型别声明

    条款5 对于auto ,他的好处不仅仅是少打一些字这么简单. 首先在声明的时候, 使用auto会让我们养成初始化的习惯: auto x;//编译不通过必须初始化. 再次对于auto而言,它可以让我们定 ...