• 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)#

  • 相关阅读:
    BZOJ 4260: Codechef REBXOR (trie树维护异或最大值)
    BZOJ 3744 Gty的妹子序列 做法集结
    BZOJ 3289: Mato的文件管理 (区间查询逆序对)
    [JSOI2007]文本生成器
    [TJOI2013]单词
    模板 AC自动机
    POJ 3710 Christmas Game
    HDU 3094 A tree game
    BZOJ 3817 Sum
    BZOJ 4589 Hard Nim
  • 原文地址:https://www.cnblogs.com/appresearch/p/5485048.html
Copyright © 2020-2023  润新知