CiscoC3750G TS - NonaSuomy/PuRe GitHub Wiki
Cisco C3750G-TS
Connect to Cisco Switch
VIA Console Cable: Plug in console cable
Arch Linux: cu - Call up another system
yaourt uucp
sudo cu -s 9600 -l /dev/ttyUSB0
Install "Screen" in linux or use Putty in windows: sudo apt-get install screen
sudo screen /dev/ttyS0 (or /dev/ttyS1 etc)
You can also use Minicom but screen works a lot better. Skip past this if you are happy with Screen, Here are the directions for Minicom any ways...
sudo apt-get install minicom
sudo minicom
Welcome to minicom 2.5
OPTIONS: I18n Compiled on May 2 2011, 10:05:24. Port /dev/ttyS1
Press CTRL-A Z for help on special keys
Press CTRL-A Z
Welco+-------------------------------------------------------------------+
| Minicom Command Summary |
OPTIO| | Compi| Commands can be called by CTRL-A <key></key> | Port | |
| Main Functions Other Functions |
Press| |
| Dialing directory..D run script (Go)....G | Clear Screen.......C | | Send files.........S Receive files......R | cOnfigure Minicom..O | | comm Parameters....P Add linefeed.......A | Suspend minicom....J | | Capture on/off.....L Hangup.............H | eXit and reset.....X | | send break.........F initialize Modem...M | Quit with no reset.Q | | Terminal settings..T run Kermit.........K | Cursor key mode....I | | lineWrap on/off....W local Echo on/off..E | Help screen........Z | | Paste file.........Y | scroll Back........B | | | | Select function or press Enter for none. | | | | Written by Miquel van Smoorenburg 1991-1995 | | Some additions by Jukka Lahtinen 1997-2000 | | i18n by Arnaldo Carvalho de Melo 1998 | +-------------------------------------------------------------------+ CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.5 | VT102 | Offline
Press 'o' for cOnfigure Minicom
Welcome to minicom 2.5
OPTIONS: I18n Compiled on May 2 2011, 10:05:24. Port /dev/ttyS1
Press CTRL-A Z for help on special keys
+-----[configuration]------+ | Filenames and paths | | File transfer protocols | | Serial port setup | | Modem and dialing | | Screen and keyboard | | Save setup as dfl | | Save setup as.. | | Exit | +--------------------------+ CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.5 | VT102 | Offline
Press down cursor then enter on 'Serial port setup' then press <enter></enter>
Welcome to minicom 2.5
OPTIONS: I18n Compiled on May 2 2011, 10:05:24. Port /dev/ttyS1
Press CTRL-A Z for help on special keys
+-----[configuration]------+ | Filenames and paths | | File transfer protocols | | Serial port setup | | Modem and dialing | | Screen and keyboard | | Save setup as dfl | | Save setup as.. | | Exit | +--------------------------+ CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.5 | VT102 | Offline
Press 'A' and type the proper serial port that you have the console cable plugged into in this example it in /dev/ttyS1 (caps matter) then press
Welcome to minicom 2.5
OPTI+-----------------------------------------------------------------------+ Comp| A - Serial Device : /dev/ttyS1 | Port| B - Lockfile Location : /var/lock |
| C - Callin Program : |
Pres| D - Callout Program : |
CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.5 | VT102 | Offline
Press 'E' then press 'C' 9600 '8N1' should be default then press
Welcome to minicom 2.5
OPTI+-----------------+---------[Comm]----------+----------------+ Comp| A - Serial De| | | Port| B - Lockfile Loc| Current: 9600 8N1 | |
| C - Callin Pro| Speed Parity Data | |
Pres| D - Callout Pro| A: <next></next> L: None S: 5 | |
CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.5 | VT102 | Offline
Someone said to change Hardware Flow Control to No as it's defaulted to Yes, Not sure if it matters or not but press 'F' to do so.
Welcome to minicom 2.5
OPTI+-----------------------------------------------------------------------+ Comp| A - Serial Device : /dev/ttyS1 | Port| B - Lockfile Location : /var/lock |
| C - Callin Program : |
Pres| D - Callout Program : |
CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.5 | VT102 | Offline
Press when done to leave this screen.
Next move down to Modem and dialing and press
Welcome to minicom 2.5
OPTIONS: I18n Compiled on May 2 2011, 10:05:24. Port /dev/ttyS1
Press CTRL-A Z for help on special keys
+-----[configuration]------+ | Filenames and paths | | File transfer protocols | | Serial port setup | | Modem and dialing | | Screen and keyboard | | Save setup as dfl | | Save setup as.. | | Exit | +--------------------------+ CTRL-A Z for help | 9600 8N1 | NOR | Minicom 2.5 | VT102 | Offline
Remove everything from the 'Init string' line so it doesn't fire this stuff at the Cisco switch when it opens the connection press then Cursor down to Exit and press
W+--------------------[Modem]---------------------+
| |
O| A - Init string ......... | C| B - Reset string ........ ^M~ATZ^M~ | P| C - Dialing prefix #1.... ATDT |
| D - Dialing suffix #1.... ^M |
P| E - Dialing prefix #2.... ATDP |
| F - Dialing suffix #2.... ^M | | G - Dialing prefix #3.... ATX1DT | | H - Dialing suffix #3.... ;X4D^M | | I - Connect string ...... CONNECT | | J - No connect strings .. NO CARRIER BUSY | | NO DIALTONE VOICE | | K - Hang-up string ...... ~~+++~~ATH^M | | L - Dial cancel string .. ^M | | | | M - Dial time ........... 45 Q - Auto bps detect ..... No | | N - Delay before redial . 2 R - Modem has DCD line .. Yes | | O - Number of tries ..... 10 S - Status line shows ... DTE speed | | P - DTR drop time (0=no). 1 T - Multi-line untag .... No | | | | Change which setting? (Return or Esc to exit) | +----------------------------------------------------------------------------+
Press CTRL-A X, Leaving Minicom? YES
sudo minicom
Press for the Cisco prompt to show up
unLab-Switch01#
Type: ? for help or type 'enable' to fully log in for more commands.
Setting switch back to factory settings
Reset Switch Configuration
To reset the switch to factory default, issue the erase startup-config or write erase command. This command does not clear the boot variables, such as config-register and boot system settings. You can alter the boot system parameters with the boot command. In Catalyst 4500/4000 and 6500/6000 series switches running Cisco IOS Software, you can change the configuration register value with the config-register command.
This example shows how to reset a switch running Cisco IOS Software to factory defaults with the write erase command:
unLab-Switch01# write erase Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK] Erase of nvram: complete unLab-Switch01# unLab-Switch01# reload
System configuration has been modified. Save? [yes/no]: n
!--- Do not save the configuration at this prompt. Otherwise, the switch !--- reloads with the current running configuration and does not reset to default.
Proceed with reload? [confirm]y
2w0d: %SYS-5-RELOAD: Reload requested
C3750 Boot Loader (C3570) Version 12.2(25r)SEE1, RELEASE SOFTWARE (fc1) Compiled Mon 22-Jul-02 18:57 by antonino WS-C3570G-TS starting...
!--- Output suppressed.
32K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address: 00:05:DC:C9:79:00 Motherboard assembly number: 73-5781-08 Motherboard serial number: FAB0515A069 Model revision number: 02 Model number: WS-C2950-24 System serial number: FAB0517Q00B
--- System Configuration Dialog ---
At this stage, the switch configuration has reset to the factory defaults, with the exclusion of the VLAN information.
Reset VLAN Information
To reset the VLAN information to the factory defaults, delete the vlan.dat file from the Flash or NVRAM and reload the switch. On the 6500/6000 series switches running Cisco IOS Software, the vlan.dat file is stored in const_nvram. On the 4500/4000 series switches running Cisco IOS Software, the vlan.dat file is stored in cat4000_flash:. On the 2940, 2950/2955, 2970, 3550, 3550, 3560, 3570, and 2900XL/3500XL fixed configuration switches, the vlan.dat file is stored in flash:.
To erase the vlan.dat file on the 6500/6000 switches, issue the erase const_nvram: command. On the 4500/4000 switches, issue the erase cat4000_flash:command. On the fixed configuration switches, issue the delete flash:vlan.dat command.
The example steps show how to delete the VLAN information on Catalyst fixed configuration switches. You can use the same steps, with their respective commands, for the 6500/6000 and 4500/4000 running Cisco IOS Software:
To verify the VLAN information, issue the show vlan command, and to verify the vlan.dat file, issue the dir command.
unLab-Switch01# show vlan
VLAN Name Status Ports
-------------------------------- --------- ------------------------------- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24
2 VLAN0002 active 3 VLAN0003 active 4 VLAN0004 active
!--- Despite the erase of the startup configuration file, !--- these user-created VLANs remain.
600 VLAN0600 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 1 enet 100001 1500 - - - - - 1002 1003 2 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 4 enet 100004 1500 - - - - - 0 0 600 enet 100600 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 1 1003 1003 tr 101003 1500 1005 - - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 IBM - 0 0 Switch#
unLab-Switch01# dir flash:
!--- On the 4500/4000, issue the dir cat4000_flash: command. !--- On the 6500/6000, issue the dir const_nvram: command.
Directory of flash:/
2 -rwx 2487439 Mar 11 1993 01:25:32 c2950-i6q4l2-mz.121-9.EA1d.bin 3 -rwx 840 Mar 20 1993 09:20:09 vlan.dat
!--- This vlan.dat file stores user-configured VLANs.
4 -rwx 2491435 Mar 08 1993 16:14:13 c2950-mvr.bin 6 -rwx 42 Mar 01 1993 00:07:35 env_vars 7 -rwx 109 Mar 11 1993 01:23:56 info 8 drwx 640 Mar 11 1993 01:26:35 html 19 -rwx 109 Mar 11 1993 01:26:35 info.ver
7741440 bytes total (1088512 bytes free) Switch#
Delete the VLAN information from Flash or NVRAM, and reload the switch.
Note: On the 6500/6000 and 4500/4000 running early versions of Cisco IOS Software, the delete command may not work. Instead, you must issue the command erase const_nvram: or the command erase cat4000_flash:. Do not specify the vlan.dat file in the command syntax. However, on later versions of Cisco IOS Software, the delete const_nvram:vlan.dat command works for the 6500/6000, and the delete cat4000_flash:vlan.dat command works on the 4500/4000.
unLab-Switch01# delete flash:vlan.dat Delete filename [vlan.dat]?
!--- Press Enter.
Delete flash:vlan.dat? [confirm]y
unLab-Switch01# reload Proceed with reload? [confirm]y 4w5d: %SYS-5-RELOAD: Reload requested
After reload, check the VLAN information with the show vlan command.
The user-configured VLANs no longer appear in the command output. Only factory-default VLAN information is on the switch.
Cat2950# show vlan
VLAN Name Status Ports
-------------------------------- --------- ------------------------------- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 1 enet 100001 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - IBM - 0 0 Switch#
Reset Catalyst Switches in Redundant Mode
For the 6500/6000 and 5500/5000 switches running CatOS in redundant mode, the standby Supervisor Engine synchronizes with changes made to the active Supervisor Engine. So, if you reset the configuration on the active Supervisor Engine to factory defaults with the clear config command, the standby Supervisor Engine also resets to factory defaults. Whether you set the configuration mode to binary or text mode with the set config mode command, the switch resets to factory defaults when you clear the configuration on the active Supervisor Engine.
To reset 6500/6000 switches running Cisco IOS Software in redundant mode to factory defaults, you need to complete these steps:
Erase the startup configuration with the erase startup-config command on the active Supervisor Engine.
Note: This also erases the startup configuration on the standby Supervisor Engine.
Delete the vlan.dat file as shown in the Reset VLAN Information section of this document.
Reload the active Supervisor Engine with the reload command
Note: If the Supervisor Engine enters the ROMmon mode after it reloads, check the boot variable to see if it is set to boot from the proper image. You may also refer to the document Recovering a Catalyst 6500/6000 Running Cisco IOS System Software from a Corrupted or Missing Boot Loader Image or ROMmon Modefor further troubleshooting information.
Setting up switch for first time
Setup Program If your switches are stacked and there are multiple console connections to individual switches in the stack, the initial setup dialog appears at the console where you first press Enter.
Follow these steps to complete the setup program and to create an initial configuration for the switch:
Step 1 Enter Yes at the following two prompts.
Would you like to enter the initial configuration dialog? [yes/no]: yes
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
Basic management setup configures only enough connectivity
for management of the system, extended setup will ask you
to configure each interface on the system.
Would you like to enter basic management setup? [yes/no]: yes
Step 2 Enter a host name for the switch, and press Return.
On a command switch, the host name is limited to 28 characters; on a member switch to 31 characters. Do not use -n, where n is a number, as the last character in a host name for any switch.
Enter host name [Switch]: host_name
Step 3 Enter an enable secret password, and press Return.
The password can be from 1 to 25 alphanumeric characters, can start with a number, is case sensitive, allows spaces, but ignores leading spaces. The secret password is encrypted, and the enable password is in plain text.
Enter enable secret: secret_password
Step 4 Enter an enable password, and press Return.
Enter enable password: enable_password
Step 5 Enter a virtual terminal (Telnet) password, and press Return.
The password can be from 1 to 25 alphanumeric characters, is case sensitive, allows spaces, but ignores leading spaces.
Enter virtual terminal password: terminal-password
Step 6 (Optional) Configure Simple Network Management Protocol (SNMP) by responding to the prompts. You can also configure SNMP later through the CLI, the device manager, or the Network Assistant application. To configure SNMP later, enter no.
Configure SNMP Network Management? [no]: no
Step 7 Enter the interface name (physical interface or VLAN name) of the interface that connects to the management network, and pressReturn. For this release, always use vlan1 as that interface.
Enter interface name used to connect to the
management network from the above interface summary: vlan1
Step 8 Configure the interface by entering the switch IP address and subnet mask and pressing Return. The IP address and subnet masks shown are examples.
Configuring interface vlan1:
Configure IP on this interface? [yes]: yes
IP address for this interface: 10.13.37.2
Subnet mask for this interface [255.255.254.0]: 255.255.254.0
Step 9 Enter Y to configure the switch as the cluster command switch. Enter N to configure it as a member switch or as a standalone switch.
If you enter N, the switch appears as a candidate switch in the Network Assistant GUI. You can configure the switch as a command switch later through the CLI, the device manager, or the Network Assistant application. To configure it later, enter no.
Would you like to enable as a cluster command switch? [yes/no]: no
You have now completed the initial configuration of the switch, and the switch displays its initial configuration. This is an example of output that appears:
The following configuration command script was created:
hostname switch1
enable secret 5 $1$Ulq8$DlA/OiaEbl90WcBPd9cOn1
enable password enable_password
line vty 0 15
password terminal-password
no snmp-server
!
no ip routing
!
interface Vlan1
no shutdown
ip address 10.13.37.2 255.255.254.0
!
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
interface GigabitEthernet1/0/3
!
...<output></output>
!
interface GigabitEthernet1/0/23
!
end
Step 10 These choices appear:
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
If you want to save the configuration and use it the next time the switch reboots, save it in nonvolatile RAM (NVRAM) by selecting option 2.
Enter your selection [2]:2
Make your selection, and press Return.
After you complete the setup program, the switch can run the default configuration that you created. If you want to change this configuration or want to perform other management tasks, use Cisco Network Assistant, the Cluster Management Suite (CMS), or another management tool for further configuration.
Upgrading the Cisco Firmware
Anytime Cisco releases a new IOS image for its network switch (or router), it is recommended that you upgrade it.
Since you’ll be upgrading the IOS image, make sure you have physical access to the switch and you are in front of it. Use a console cable to connect to the switch.
Please note that the steps given below will be similar to both switches and routers. However this examples shows how to upgrade ios image on a cisco catalyst switch.
Setup TFTP Server First, let’s install all the necessary packages:
sudo apt-get install xinetd tftpd tftp -y
Next, we need to create a configuration file:
sudo nano /etc/xinetd.d/tftp
Put the following content into the file.
service tftp {
protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = var/lib/tftpboot -s disable = no
}
In the server_args, I have var/lib/tftpboot, which represents the location of the tftp root, i.e., /var/lib/tftpboot. Notice that I skip the root /.
Now let’s change the ownership of the directory:
sudo mkdir /var/lib/tftpboot sudo chown -R nobody:nogroup /var/lib/tftpboot sudo chmod -R 777 /var/lib/tftpboot
and start the TFTP service:
sudo service xinetd stop sudo service xinetd start
Verify the TFTP is running correctly or not:
netstat -anu | grep 69
You should see something like this:
tcp 0 0 0.0.0.0:69 0.0.0.0:* LISTEN
Test: Upload a file to TFTP Server Make a file:
touch myfile.jpg
Now let’s test the TFTP server by logging into the server first:
tftp localhost
and upload a file:
tftp> put myfile.jpg Sent 56733279 bytes in 5.7 seconds
Quit:
q
Make sure that file has been uploaded:
ls -l /var/lib/tftpboot
Test: Download a file from TFTP Server
Now, let’s go to a different directory and download the file we just upload.
cd some_other_directory
and log in to the tftp server again:
tftp localhost
and get the file:
tftp> get myfile.jpg Received 56733279 bytes in 5.7 seconds
You are done.
Troubleshooting (e.g., Error code 2: Access violation)
If you see a message like: Error code 2: Access violation
Make sure that you: - Follow the exact procedure in this tutorial - Make sure that the tftp is started with -s flag. - Check the permission of the directory, i.e., 777 - After you’ve made any changes to the TFTP configuration, make sure that you stop and start the inet service again. - Don’t forget to quit tftp before retrying the command.
Download the firmware image to to the TFTP folder we made above and extract the tar.
Cisco Version Information: http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_35_se/release/notes/OL11481.html#wp432964 Google for an image name from Cisco's website, For our C3750G-TS we can find version nFo here: http://www.cisco.com/cisco/software/release.html?mdfid=278169791&softwareid=280805680&release=12.2.55-SE6&flowid=2510 (Sorry if this link is br0k in the future)
Something like this: http://mirror.linux.kg/pub/cisco/ios/catalysts/cat3750/
So for instance we will grab this one:
Description: IP SERVICES WITH EXPRESS SETUP
Release: 12.2.55-SE6
Release Date: 01/Aug/2012
File Name: c3750-ipserviceslmk9-tar.122-55.SE6.tar
Min Memory: DRAM 128 MB Flash 16 MB
Size: 12.98 MB (13608960 bytes)
MD5 Checksum: 50f12aeda93ee06707292528806ebf12
Release Notes for 12.2(55)SE6 | Release Notes for 12.2(55)SE6 C3750ME |Release Notes for 12.2(55)SE6 ME3400 & ME3400E | Field Notices
MD5 file checking
Google for: c3750-ipserviceslmk9-tar.122-55.SE6.tar and hopefully you find it. then MD5 check your file you downloaded because you probably didnt get it from Cisco as you need to be Special to get it from them.
On the current Cisco site above you can hover over the original file that you can't download without a Cisco Valid account but they give you the MD5 Checksum as shown above. (50f12aeda93ee06707292528806ebf12)
unlab@unlab-hackbox10:~$ /usr/bin/md5sum '/home/unlab/Downloads/c3750-ipserviceslmk9-tar.122-55.SE6.tar' 50f12aeda93ee06707292528806ebf12 /home/unlab/Downloads/c3750-ipserviceslmk9-tar.122-55.SE6.tar
Looks good to me.
Extract it to our TFTP folder we setup previous
In your home directory or where ever you downloaded it to:
unlab@unlab-hackbox10:~$ cd downloads cp c3750-ipserviceslmk9-tar.122-55.SE6.tar /var/lib/tftpboot/ tar -xvf c3750-ipserviceslmk9-tar.122-55.SE6.tar sudo chmod 777 /var/lib/tftpboot/c3750-ipserviceslmk9-tar.122-55.SE6.tar cd /var/lib/tftpboot/
cp c3750-ipservicesk9-mz.122-55.SE6/c3750-ipservicesk9-mz.122-55.SE6.bin . sudo chmod 777 c3750-ipservicesk9-mz.122-55.SE6.bin
if you don't have enough room in flash, just extract via TFTP
IOS Console: archive tar /xtract tftp://10.13.37.253/c3750-ipserviceslmk9-tar.122-55.SE6.tar flash: Note: if you do the extract the first way the web interface will be missing.
FLASHING THE SWITCH
1. Verify Current IOS Version
After you login, go to enable mode, by entering the enable password. This example uses two cisco catalyst 3750 switches configured in stack mode as shown below. So, while upgrading you should upgrade the image on both the flash cards.
- show switch
H/W Current
Switch# Role Mac Address Priority Version State
- 1 Master 0012.abcd.1234 10 0 Ready
2 Member 0012.abcd.2345 1 0 Ready
If you have only one cisco catalyst switch (non stack mode), follow all the steps mentioned in this document, but you’ll be doing it only on one flash card.
First, verify the content of the flash cards, using “dir flash1:” command.
- dir flash1:
- dir flash2:
As you see above, both the flash cards contains the current IOS image file, which is version “122.35.SE5″
Verify what version of IOS image your switch is currently running. Most likely this will be same as the current IOS image file that you see in your flash card. As you see below, it is using “12.3(35)SE5″
- show ver
----- ----- ---------- ----------
- 1 24 WS-C3750G-24T 12.2(35)SE5 C3750-IPBASEK9-M
2 24 WS-C3750G-24T 12.2(35)SE5 C3750-IPBASEK9-M
2. Download Latest IOS Image from Cisco Website
Download the latest IOS image for your cisco website Go to cisco.com -> IOS Software -> Select your Siwtch (for example: Cisco Catalyst Switch 3750G-24T) -> Click on “Download IP BASE” -> Select the latest version that you want to download (for example: 12-2.55.SE6).
While you are on this download page, copy/paste the MD5 given to your system. After we download the IOS image and move it to the switch, we’ll verify the MD5 checksum before installing the image.
3. Delete Old IOS Software Image from Flash
Since we’ll be downloading the new ISO image and moving it to the flash card, we need some space. So, delete the current old image from the flash card.
- delete /f /r flash1:c3750-ipbase-mz.122.35-35.SE5
- delete /f /r flash2:c3750-ipbase-mz.122-35.SE5
- dir flash1:
- dir flash2:
On a side note, you should be using some software to monitor your switch status. If you are not doing it install Nagios, and monitor your switches.
4. Copy the IOS image to Cisco Switch
To transfer the IOS image from your laptop to Cisco Switch, you should run a TFTPserver on your laptop (or on the system where you’ve downloaded the IOS image).
If you are running a TFTPserver on your laptop, and connected to the switch using a console cable, assign a ip-address to your laptop, and put your laptop on the same network as the switch.
Copy the ISO image to the flash as shown below using the “copy command”. This will ask you to enter the address of the remote host (which is your laptop in this case), and the source filename that needs to be transferred (which is the ISO image you downloaded from cisco website).
- copy tftp flash1
Once you’ve copied it, make sure the file is there on the flash card.
- dir flash1:
Just to make sure nothing went wrong during the copy, do a MD5 check-sum on this, and compare with the MD5 that you noted down from cisco website while downloading the IOS image. To create MD5 checksum of a file in Cisco catalyst switch, use the “verify” command as shown below.
- verify /md5 flash1:c3750-ipservicesk9-mz.122-55.SE6.bin
- copy tftp flash2:
- dir flash2:
- verify /md5 flash2:c3750-ipservicesk9-mz.122-55.SE6.bin
Now it is time to tell switch cisco to use the new ISO image to boot from. Before changing the boot information, verify the current configuration, and change it using the “boot system” command as shown below.
- show boot
- config t
- boot system switch all flash:c3750-ipservicesk9-mz.122-55.SE6/c3750-ipservicesk9-mz.122-55.SE6.bin
6. Save Config and Restart the Switch
Verify the current boot information, save the current configuration, and reboot the cisco switch as shown below.
- show boot
- write mem
- reload
7. Final Verification after IOS Upgrade
Finally verify the current IOS version of the switch, after the upgrade, it should display the new version as shown below.
- show ver
----- ----- ---------- ----------
- 1 24 WS-C3750G-24T 12.2(55)SE6 C3750-IPBASEK9-M
2 24 WS-C3750G-24T 12.2(55)SE6 C3750-IPBASEK9-M
Make sure to verify your interface and vlan status, to make sure everything is running properly without any issues.
I had to replace (hack) the switches power supply with a computer psu so excuse all the warnings of failures on the console just ignore them it's working fine :D
Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Mon 23-Jul-12 13:22 by prod_rel_team 00:01:51: %HARDWARE-2-FAN_ERROR: Fan Failure 00:01:51: %PLATFORM_ENV-1-FAN: Faulty fan detected 00:01:51: %PLATFORM_ENV-1-TEMP: Abnormal temperature detected 00:01:51: %PLATFORM_ENV-1-PWR_RPS: Redundant power supply faulty or in standby mode 00:01:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to up 00:01:54: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/1, changed state to up% Generating 1024 bit RSA keys, keys will be non-exportable...[OK] 00:02:10: %SSH-5-ENABLED: SSH 1.99 has been enabled 00:02:13: %PKI-6-AUTOSAVE: Running configuration saved to NVRAM 00:02:22: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up It will keep annoying you with specifically this line:
00:01:51: %PLATFORM_ENV-1-PWR_RPS: Redundant power supply faulty or in standby mode
Just pretend like its not there and type away.