Brocade
show log
show stat eth <problem-port>
show int eth <problem-port>
show media
Brocade Cheat Sheet
Ajouter un nouveau user pour les sauvegardes (par exemple pour les backups avec RANCID) :
Switch>enable
Switch#configure terminal
Switch(config)#username <username> privilege 5 password <password>
Fonctionne pas "Switch(config)#enable read-only-password <password>"
Switch(config)#privilege exec level 5 skip-page-display
Switch(config)#write memory
To copy the currently running* configuration :
copy running-config tftp <TFTP_Server_IP> running-config.cfg
*Running configuration file - This file contains the configuration active in the system RAM but not yet saved to flash. These changes could represent a short-term requirement or general configuration change. To display this file, enter the show running-config or write terminal command at any CLI prompt.
To copy the configuration saved to the flash* memory :
copy startup-config tftp <TFTP_Server_IP> startup-config.cfg
*Startup configuration file - This file contains the configuration information that is currently saved in flash. To display this file, enter the show configuration command at any CLI prompt.
To restore the remote config to your device :
copy tftp start <TFTP_Server_IP> switch-name.cfg
Assigning IP Address
# conf t
# ip address <address> <subnet mask>
# ip default-gateway <gateway ip>
Passwords
#conf t
#enable super-user-password <password> # Pour admin (root)
#enable telnet password <password>
#enable read-only-password <password>
#crypto-ssl certificate generate (this will take a few seconds)
# username <username> password <password>
# aaa authentication login default local
# aaa authentication web-server default local
To disable password encryption
# no service password-encryption
QoS for VoIP
These commands are Global:
# qos mechanism mixed-sp-wrr
# qos name qosp3 VOIP-CTRL
# qos name qosp6 VOIP-RTP
# qos tagged-priority 5 VOIP-RTP
# qos-tos map dscp-priority 46 to 6
Also interface into each Layer 3 interface (your VE interfaces within Brocade):
Config t
Int ve ##
Trust dscp
VLANs
vlan <id> name <name> by port
(un)tagged ethe 1/1/1 to 1/1/48
or
(un)tagged ethe 3/1/1 to 3/1/8 (for front facing fibre)
Spanning Tree
spanning-tree rstp
Stacking (Manual)
config t
stack unit 1
priority 255
stack enable
# ( Enable stacking. This unit actively participates in stacking )
write memory
# ( Write startup-config done. )
end
Stacking (Automatic)
conf t
stack enable
exit
stack secure-setup
To clear stacking config
stack unconfigure all
To use stacking port as Data Port
To configure a default port to use the long preamble,
enter the long-preamble command at the
Interface level of the CLI.
Brocade(config)#interface ethernet 1/2/1
Brocade(config-if-e10000-1/2/1)#long-preamble
If using a non-Brocade switch be sure to set the port speed to match.
i.e., speed 1000-full-master for 1G Full Duplex
: Syntax: [ no] long-preamble
# Use the no form of the command to revert to the 4-byte Ethernet preamble.
Firmware Upgrade ( 64xx Series )
copy tftp flash <ip address of tftp server> <name of firmware file> primary | secondary | boot
copy tftp flash 192.168.100.105 ICX64S08020.bin primary
copy tftp flash 192.168.100.105 ICX64R08020.bin secondary
copy tftp flash 192.168.100.105 kxz10104.bin boot
Firmware Upgrade ( 72xx Series )
copy tftp flash <ip adress of tftp server> <name of firmware file> primary | secondary | boot
copy tftp flash 192.168.100.105 SPS08030g.bin primary
copy tftp flash 192.168.100.105 SPR08030g.bin secondary
copy tftp flash 192.168.100.105 spz10105.bin boot
Misc
erase startup-config
reload
Power over Ethernet
To group a range of ethernet ports together use this command;
# int ethe 1/1/1 to 1/1/12
You’ll get a prompt that looks like this # ICX7250-24P Switch(config-mif-1/1/1-1/1/12)
Issue this command to turn on PoE for the group of ports # inline power power-by-class 0
Inline Power Power-by-class Command
Affiche les détails du POE pour chaque ports
# sh inline power
# config t
# int eth 1/1/1 to 1/1/46
# nt-swi-02(config-mif-1/1/1-1/1/46)#inline power power-by-class 2
Warning: Inline power configuration on port 1/1/46 has been modified.
# nt-swi-02(config-mif-1/1/1-1/1/46)#exit
# nt-swi-02(config)#exit
Brocade ICX Switch: Password Recovery
Quick post on how to do a password recovery on the ICX Brocade products. Just stop the boot process in the beginning by pressing "b", and type in "no password" at the prompt. See below:
Enter 'b' to stop at boot monitor: 0
ICX64XX-boot>> no password
OK! Skip password check when the system is up.
ICX64XX-boot>> boot
Booting image from Primary
ICX6450-48 Switch>
Stack unit 1 PS 1, Internal Power supply detected and up.
ICX6450-48 Switch>en
No password has been assigned yet...
ICX6450-48 Switch#
Brocade ICX: How To Do A Password Reset And Erase Startup-Config
Real quick, when booting the 6610 (in my case), press "b" when booting up. You will see the chance to do that, as it does tell you. Then, follow the below to reset the password. I also erased the startup-config so that I could start from scratch, so if you dont want to loose the config, dont do that step below.
ICX Boot Code Version 10.1.00 (grz10100)
Enter 'a' to stop at memory test Enter 'b' to stop at boot monitor * Interrupted by entering 'b' *** BOOT INFO: load monitor from boot flash, cksum = 71f1 BOOT INFO: verify flash files............. Monitor>no password OK! Skip password check when the system is up. Monitor>erase startup-config Monitor>reset
Afficher les mot de passe (hash) lors d'un listing de la commande "show running-config"
#enable password-display
NTP server
6610#config t
6610(config)#ntp
6610(config-ntp)#server 10.0.0.254
Reading CDP packets
Cisco Discovery Protocol (CDP) packets are used by Cisco devices to advertise themselves to other Cisco devices. By default, Brocade devices forward these packets without examining their contents. You can configure a Brocade device to intercept and display the contents of CDP packets. This feature is useful for learning device and interface information for Cisco devices in the network.
Brocade devices support intercepting and interpreting CDP version 1 and version 2 packets.
NOTE
The Brocade device can interpret only the information fields that are common to both CDP version 1 and CDP version 2.
NOTE
When you enable interception of CDP packets, the Brocade device drops the packets.
As a result, Cisco devices will no longer receive the packets.
Enabling interception of CDP packets globally
To enable the device to intercept and display CDP packets, enter the following command at the global CONFIG level of the CLI.
FastIron(config)# cdp run
Syntax: cdp run
The feature is disabled by default.
Enabling interception of CDP packets on an interface
You can disable and enable CDP at the interface level. You can enter commands such as the following.
FastIron(config)# int e 2/1
FastIron(config-if-2/1)# cdp enable
Syntax: cdp enable
By default, the feature is enabled on an interface once CDP is enabled on the device.
Displaying CDP information
You can display the following CDP information:
• Cisco neighbors
• CDP entries for all Cisco neighbors or a specific neighbor
• CDP packet statistics
Displaying neighbors
To display the Cisco neighbors the Brocade device has learned from CDP packets, enter the following command.
To display detailed information for the neighbors, enter the following command.
To display information about a neighbor attached to a specific port, enter a command such as the following.
Syntax: show fdp neighbors <portnum>]
Displaying CDP entries
To display CDP entries for all neighbors, enter the following command.
FastIron# show fdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
(*) indicates a Cisco device
Device ID Local Int Holdtm Capability Platform Port ID
(*)Router Eth 1/1 124 R cisco RSP4
FastEthernet5/0/0 FastIron# show fdp neighbors detail
Device ID: Router
Entry address(es):
IP address: 207.95.6.143
Platform: cisco RSP4, Capabilities: Router
Interface: Eth 1/1, Port ID (outgoing port): FastEthernet5/0/0
Holdtime : 150 seconds
Version :
Cisco Internetwork Operating System Software
IOS (tm) RSP Software (RSP-JSV-M), Version 12.0(5)T1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Thu 19-Aug-99 04:12 by cmong
FastIron# show fdp neighbors ethernet 1/1