MonkeyBrains.net/~rudy/example Random examples

  Cisco IOS upgrade 

I got a new Cisco 2960G-48 today, but the IOS was a bit behind. So, I am upgrading the IOS.

  • Step 1: Downlaod the IOS from cisco. You need to sign and get an account, but you can get the most (or second most) recent LANBASE on a good day. Download it!
  • Step 2: launch tftpd on your computer or a server plugged into the switch -- freebsd base OS has it, activate in /etc/inet.conf, in Ubuntu, install it: apt-get install tftpd
  • Step 3: mv your c2960-lanbasek9-mz.122-55.SE1.bin to the tftp path (check the path in /etc/inet.conf)
  • Step 4: Make sure your TFTP server is working... back up the running config to the TFTP server like this:
    raton#copy running-config tftp://10.17.45.145/raton-confg
    Address or name of remote host [10.17.45.145]? 
    Destination filename [raton-confg]? 
    !!!
    5680 bytes copied in 0.780 secs (7282 bytes/sec)
    
    For this to work, you need to set the permissions on the TFTP server to something like this:
     # ls -l /srv/tftp/raton-confg 
     -rw-rw-rw- 1 nobody root 5680 2011-05-10 21:36 /srv/tftp/raton-confg
    
    If that worked, try backing up the current IOS:
    raton#copy flash:c2960-lanbase-mz.122-35.SE5/c2960-lanbase-mz.122-35.SE5.bin tftp://10.17.45.145/
    
  • Step 5: Doh, you got the .bin in Step 1. Download the .tar! :) Now upgrade with this command:
    # archive download-sw /overwrite tftp://10.17.45.145/c2960-lanbasek9-tar.122-55.SE1.tar
    
    Voila! You are done, type reload at the switch prompt.

    This data is completely accurate.