Forget that Last post.... Making a copy of a switch... so easy...


Making a copy of the original switch configuration (Allied Telesis AT-8000GS/24)

  1. Install Tera Term
  2. Telnet to the switch you want to make a copy of.
  3. Use ip and the user/pass
  4. expand the window to maximum
  5. use the command:
    sh run
  6. Keep pressing the spacebar till you reach the console #.
  7. Copy all of the text that was printed on screen, after the "sh run" command down to before the console # and paste it into a txt file in notepad.
  8. Save the file as the name of the switch you copied this from, but its only the text in the file you need.
  9. Quit out of Telnet

Copying the config to the new switch

Using a console cable (DB9_F to RJ45 and BD9_M to USB) connected, and using Tera Term do the following:
  1. Change Tera Term from SHH to Serial at the bottom left.
  2. Make sure its the right ComPort. Press ok.
  3. expand the window to maximum
  4.  change setup>serial port> Speed: 115200
  5. Press enter to get the prompt
  6. Enter user/pass
  7. enter the following command at the prompt - console#:
    configure
  8. now open the saved text file in Notepad, of the old switch configuration and copy all the text.
  9. switch back to Tera Term and paste all of the text in.
  10. when you paste, it will automatically add all of the configuration settings from the old switch
  11. wait for it to stop at the last line pasted, then press enter to complete this command.
    1. Adding Trunk ports (extra config - can skip this to step 12)
      To add some addition changes to the config, this is the example of adding an extra Trunk to one of the ports (port22).
      1. Type in this command to switch to config the specific port:
        interface ethernet g22
      2. Prompt will change from (config)# to (config-if)#
      3. Add trunk mode to this port:
        switchport mode trunk
      4. And I allowed a vlan to have access to this too:
        switchport trunk allowed vlan add 10
      5. exit out of specific port config with:
        exit
      6. console changes from (config-if)# to (config)# 
  12. type the next command to leave the configuration area eg: "8000GS(config)#":
    exit
  13. at the console prompt type the following to see the new config:
    sh run
  14. This should show you all of the new config and all the settings the new switch has loaded. Check all these settings to make sure you have this right.

NOTE: at this point the switch is configured to run, but has not saved these settings to the startup config. The startup config is the most important part, as this will softcode the config into the switch.

Saving the config to the startup config
  1. Hopefully you will still have Tera Term open and its still setting at the console prompt. Eg "8000GS#"
  2. type in the following command to save the current config to the start config:
    copy run start
  3. It will ask you if you want to overwrite the file, press y for Yes.
  4. this should end with "Copy Succeeded"
Now Power off the switch and power it back on and using serial, check the running configuration of the switch with the "sh run" command.

Oh so much easier than using a stupid Gui

Comments

Popular posts from this blog

Configuring Allied Telesis Switches with PuTTy

FASTER - Arma 3 Server Manager (#Arma3_DIYDGS) Part 1

#DIYDGS - The Basics - Learning Steam_CMD