From 8b8b8dd23e9b9251f33471efeefe259f49b4ae0f Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 21 Feb 2018 02:52:07 -0500 Subject: [PATCH] MAC fixing info, fan speed, revert update hugeeee --- documentation/index.md | 66 +++++++++++++++++++---------------------- documentation/mac.md | 63 +++++++++++++++++++++++++++++++++++++++ documentation/revert.md | 5 ++-- 3 files changed, 96 insertions(+), 38 deletions(-) create mode 100644 documentation/mac.md diff --git a/documentation/index.md b/documentation/index.md index 1e936b1..d2e861b 100644 --- a/documentation/index.md +++ b/documentation/index.md @@ -1,4 +1,5 @@ + # Flashing the LB6M to a Brocade TurboIron 24X ## Disclaimer & Caveats @@ -156,49 +157,28 @@ Monitor> ``` In the Brocade software, over serial or telnet, you need to use shift+backspace to backspace. You can remedy this by changing your Putty/terminal settings to "Control+H" for backspace method under Terminal>Keyboard and backspace won't require shift. -Firstly boot the OS image via tftp. You need to first give the bootloader a temporary unique IP, then boot the firmware file using the IP address of your tftp server: +First we need to give the bootloader a temporary IP, then reflash the bootloader using Brocade's flash routine. This fixes the boot sector flash permissions: ``` ip address 192.168.1.50/24 -boot system tftp 192.168.1.49 brocadeimage.bin +copy tftp flash 192.168.1.49 brocadeboot.bin boot ``` - -It will now boot into the full Brocade firmware, however we still need to actually flash it to the device flash as well as fix flash permissions by re-flashing the bootloader using Brocade's official flashing routine. - -First give the management interface an address so it can contact your tftp server: +After a few seconds it should complete the flashing process. Now that the boot sector matches stock, we can flash the main OS: ``` -enable -conf t -int management 1 -ip addr 192.168.1.50/24 -exit -write mem -exit -``` -Reflash the bootloader using Brocade's flash routine to fix permissions, substitute the IP with your tftp server: -``` -copy tftp flash 192.168.1.49 brocadeboot.bin bootrom -``` -You should see some dots as it flashes - after they stop moving, wait 30 seconds or so and hit enter to return to the prompt. Reboot the switch so the new bootloader fixes perms - you won't be able to write to flash until you do this: -``` -reload -``` - -It will reboot to the bootloader because we still haven't flashed the OS. Just like above, temporarily tftp-boot the OS: -``` -ip address 192.168.1.50/24 -boot system tftp 192.168.1.49 brocadeimage.bin -``` -If your management IP config from earlier didn't save, you'll need to redo those steps to give it an IP again. Now load and write the firmware: -``` -enable copy tftp flash 192.168.1.49 brocadeimage.bin primary ``` -You'll see some dots as it flashes like before, when they stop hit enter to return to the prompt. It now perfectly matches a stock Brocade TurboIron. Reboot and it will come up on it's own like a stock device: + +Your switch is now fully flashed to Brocade. To boot into the OS for the first time run the following: ``` -reload +boot system flash primary ``` -That's it! This first official boot will take a few minutes as it copies the primary image to the backup secondary image partition. You can ditch the serial cable and telnet to the management IP. If you want to use SSH, you'll need to enable it - follow the included Brocade docs or the Quick Guide on the left. +That's it! This first official boot will take a few minutes as it copies the primary image to the backup secondary image partition. The bootloader still has not been re-run since we reflashed it using Brocade's routine, so it's a good idea to make that happen by reloading the switch once it finishes booting: + +``` +enable +reload +``` +The switch will completely reboot, re-initializing the brocade bootloader, and you're ready to go. To ditch the serial cable and telnet/SSH to the switch, follow the [L3 Quick Guide](http://brokeaid.com/config/) on this site to give it an IP. Some commands to check out your new system: @@ -210,6 +190,21 @@ show media ``` This is the full layer 3 image that ships with all features enabled, so please follow the included guides in the Documentation folder to configure your new switch. A quick guide is available on the left, but this site is not a substitute for learning Brocade's documentation. +## Fixing The MAC Address + +Flashing the switch resets the base MAC address to a default of 00e0.5200.0100 - on it's own this isn't a problem, but if you connect multiple flashed switches they're all going to have the same base MAC, and you're going to have serious collision issues. We highly recommend taking the extra 2 minutes to follow the [MAC Reset Guide](http://brokeaid.com/mac/) - it also allows you to customize the serial number you see in the output of ```show version```. + +## Fan Speeds +The Brocade firmware has the ability to set fan speeds and quiet it down. [This video](https://www.youtube.com/watch?v=QbMITnNv2FM) shows the audible difference. The OS has 3 fan speeds it automatically cycles through as temperature rises and falls. To bypass this and lock the fan speeds at the lowest level, run the below once the switch has booted into the OS: +``` +enable +conf t +fan-speed 1 +write memory +``` +Take a look at the output of ```show chassis``` and make sure your temperatures are below the indicated warning level. For 90% of environments, ```fan-speed 1``` will still keep it plenty cool. +If you'd like to get more advanced, there's also the ```fan-threshold``` command, which allows you to customize the temperature thresholds for each fan level, instead of locking it to one speed - but that's beyond this guide. + ## SFP+ Information Brocade does not restrict the use of optics by manufacturer, they'll take anything given it's the right protocol. However optical monitoring information is disabled unless it sees Brocade or Foundry optics. @@ -226,7 +221,6 @@ telnet@Route2(config)#sh optic 5 You'll need to pick up some official Brocade or Foundry optics on ebay, or buy some flashed optics from FiberStore. - ### Thanks: [**Jon Sands**](http://fohdeesha.com/) [**Bengt-Erik Norum**](http://amateurfoundation.org/) @@ -235,4 +229,4 @@ You'll need to pick up some official Brocade or Foundry optics on ebay, or buy s ### Contributing: The markdown source for these guides is hosted on [**our Github repo.**](https://github.com/Fohdeesha/quanta-brocade) If you have any suggested changes or additions feel free to submit a pull request. -```Documentation version:``` [ v2.0 (02-15-18)](https://github.com/Fohdeesha/quanta-brocade/commits/master) \ No newline at end of file +```Documentation version:``` [ v2.1 (02-21-18)](https://github.com/Fohdeesha/quanta-brocade/commits/master) \ No newline at end of file diff --git a/documentation/mac.md b/documentation/mac.md new file mode 100644 index 0000000..91ddb23 --- /dev/null +++ b/documentation/mac.md @@ -0,0 +1,63 @@ + + +# Fixing The MAC Address + +## Why Do This? +The flashing procedure resets the switches base MAC to 00e0.5200.0100 - this is the MAC address used for the management port, as well as the base address used to generate MACs for all the individual ports and vlan interfaces. Being set to this default MAC isn't a problem on it's own, but will cause serious issues if you use multiple flashed switches together. + +## Customizing The Chassis +There's a diagnostic menu that allows you to easily enter a new MAC as well as serial information (the serial string is what's displayed in the output of ```show version```). You'll need serial port access to the switch (just like you had during the flash guide). Assuming that's taken care of, reboot the switch, then hit b to enter the bootloader prompt: +``` +enable +reload +#watch the output and hit b when prompted +``` +You should be dropped into the Brocade bootloader with a prompt that looks like this: +``` +Monitor> +``` +Run the following command to enable a hidden diag menu on next boot: +``` +set diag_mode +``` +Now tell the system to boot: +``` +boot system flash primary +``` +It will boot into the diagnostic menu, which should resemble the below: + +``` + Diagnostic Test Main Menu v1.0 ( LB6M ) + +[1 ] File Management + +[2 ] Board Information + +[3 ] Diagnostic Test + +[4 ] Manufacturing Test Mode Set + +[5 ] Test Error Log File Management + +[6 ] PING + +[7 ] Reset + +[8 ] For Vibration Test + + Enter your choice: +``` +Yes, it does indeed say "LB6M" in the menu title, and no, this is not a piece of software left over from the Quanta firmware. Brocade seemingly re-used a bit of code from Quantas/Broadcoms reference, which again goes to show how similar the Brocade TurboIron is to our LB6M. + +Anyway, we need to customize the chassis information. Enter ```2``` into the menu for ```Board Information``` - on the menu following, enter ```1``` for ```Configure Board Info```. You will enter an interactive menu that allows you to input new values for each item. +After some trial and error it will tell you the length and format each item needs to be in. No need to be careful, you cannot break anything here. Other than the MAC address, every item in here is aesthetic only. When it asks for the MAC Address, this is where you enter in your original unique MAC. It can usually be found on the side of your switch on a sticker. If you can't find it but want to set a unique MAC, you can use an [online MAC generator](https://www.miniwebtool.com/mac-address-generator/). + +After finishing each item, it will write to EEPROM and you're done. Hit ESC until you're back to the main diagnostic menu, then enter ```7``` to reset the switch. It will reboot into the OS as normal, and now ```show chassis``` should have your new MAC at the bottom of the output. If the MAC displayed there is off by the end character, that's normal - it's using your specified base MAC to iterate upon. If you set a custom serial, you can also see that with ```show version``` - your chassis is now properly customized. + +**Note to advanced users:** This custom information is all stored in EEPROM. In the ```t2``` test menu (initiated from the bootloader or hidden OS prompt), there are tests that wipe all this data. Namely the I2C and EEPROM tests - they both write garbage data to the EEPROM. If for some reason you need to run these tests, you'll need to run this customization procedure again. + + + +### Thanks: +[**Jon Sands**](http://fohdeesha.com/) +[**Bengt-Erik Norum**](http://amateurfoundation.org/) \ No newline at end of file diff --git a/documentation/revert.md b/documentation/revert.md index 080af23..472529a 100644 --- a/documentation/revert.md +++ b/documentation/revert.md @@ -1,4 +1,5 @@ + # Reverting To Stock Fastpath ## Introduction @@ -110,13 +111,13 @@ fffffffc: 4bfff004 xxxxxxxx xxxxxxxx xxxxxxxx 0000002c: xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx ``` -If it matches, skip on to **Booting Quanta** below - the risky part is over. However if it doesn't match, don't panic. You either entered a command wrong, or skipped one. Do not reboot yet! To recover the original Brocade bootloader back, run the below command: +If it matches, skip on to **Booting Quanta** below - the risky part is over. However if it doesn't match, don't panic. You either entered a command wrong, or skipped one. Do not reboot yet! To recover the original Brocade bootloader back, run the below command. You'll need to make sure brocadeboot.bin from the zip is on your tftp server: ``` #for recovery only! copy tftp flash 192.168.1.49 brocadeboot.bin boot ``` -After that command finishes you can reboot into the bootloader again and try once more. +If that command finishes succesfully, you can reboot into the bootloader again and try once more.