Device Initialization

Onboard LED Indicators

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Status LEDs and the Mode button for a Cisco Catalyst 2960 Switch.
– System (SYST)
Shows whether the system is receiving power and is functioning properly.
  • If the LED is off, it means the system is not powered on.
  • If the LED is green, the system is operating normally.
  • If the LED is amber, the system is receiving power but is not functioning properly.
– Redundant Power System (RPS)
Shows the RPS status.
  • If the LED is off, the RPS is off, or it is not properly connected.
  • If the LED is green, the RPS is connected and ready to provide backup power.
  • If the LED is blinking green, the RPS is connected but is unavailable because it is providing power to another device.
  • If the LED is amber, the RPS is in standby mode, or in a fault condition.
  • If the LED is blinking amber, the internal power supply in the switch has failed, and the RPS is providing power.
– Port Status (STAT)
Indicates that the port status mode is selected when the LED is green. This is the default mode. When selected, the port LEDs will display colors with different meanings:
  • If the LED is off, there is no link, or the port was administratively shut down.
  • If the LED is green, a link is present. If the LED is blinking green, there is activity and the port is sending or receiving data.
  • If the LED is alternating green-amber, there is a link fault.
  • If the LED is amber, the port is blocked to ensure that a loop does not exist in the forwarding domain and is not forwarding data (typically, ports will remain in this state for the first 30 seconds after being activated).
  • If the LED is blinking amber, the port is blocked to prevent a possible loop in the forwarding domain.
– Port Duplex (DUPLX)
Indicates that the port duplex mode is selected when the LED is green. When selected, the port LEDs will display colors with different meanings:
  • If the LED is off, the port is in half-duplex mode.
  • If the LED is green, the port is in full-duplex mode.
– Port Speed (SPEED)
Indicates that the port speed mode is selected. When selected, the port LEDs will display colors with different meanings.
  • If the LED is off, the port is operating at 10 Mbps.
  • If the LED is green, the port is operating at 100 Mbps.
  • If the LED is blinking green, the port is operating at 1000 Mbps.
– Power over Ethernet Mode (PoE)
If PoE is supported, a PoE mode LED will be present.
  • If the LED is off, it indicates the PoE mode is not selected and that none of the ports have been denied power or placed in a fault condition.
  • If the LED is blinking amber, the PoE mode is not selected but at least one of the ports has been denied power or has a PoE fault.
When the LED is green, it indicates the PoE mode is selected and the port LEDs will display colors with different meanings.
  • If the port LED is off, the PoE is off.
  • If the port LED is green, the PoE is on.
  • If the port LED is alternating green-amber, PoE is denied because providing power to the powered device will exceed the switch power capacity.
  • If the port LED is blinking amber, PoE is off because of a fault.
  • If the port LED is solid amber, PoE for the port has been disabled.

The mode button (7) is used to toggle through port status, port duplex, port speed, and if supported, the Power over Ethernet (PoE) status of the port LEDs (8).

Boot Sequence

After a Cisco switch is powered on, it goes through the following five-step boot sequence:

Power-On Self-Test program (POST)
POST tests the CPU, DRAM, and the portion of the flash device that makes up the flash file system.
Boot-loader software initializes
The boot-loader is a small program stored in ROM that is run immediately after POST successfully completes.
Boot-loader performs low-level CPU initialization
The boot-loader initializes the switch's CPU registers, which control where physical memory is mapped, the quantity of memory, and its speed.
Boot-loader initializes the flash file system on the system board
Boot-loader starts IOS
The default IOS operating system software image is located and loaded into memory, after which control of the switch is handed over to the IOS.

The switch attempts to automatically boot by using information in the BOOT environment variable. If this variable is not set, the switch attempts to load and execute the first executable file it can find.

The IOS operating system then initializes the interfaces using the Cisco IOS commands found in the startup-config file. The startup-config file is called config.text and is located in flash.

Boot System Command

the BOOT environment variable is set using the boot system global configuration mode command.

S1(config)# boot system flash:/c2960-lanbasek9-mz.150-2.SE/c2960-lanbasek9-mz.150-2.SE.bin

The following table defines each part of the boot system command:

Command Definition
boot system
The main command
flash:
The storage device
c2960-lanbasek9-mz.150-2.SE/
The path to the file system
c2960-lanbasek9-mz.150-2.SE.bin
The IOS file name

Use the command show boot to see what the current IOS boot file is set to.

Recovering from a System Crash

The boot loader provides access into the switch if the operating system cannot be used because of missing or damaged system files. The boot loader has a command-line interface that provides access to the files stored in flash memory.

The boot loader can be accessed through a console connection following these steps:

  1. Connect a PC by console cable to the switch console port. Configure terminal emulation software to connect to the switch.
  2. Unplug the switch power cord.
  3. Reconnect the power cord and, within 15 seconds, press and hold down the Mode button while the System LED is still flashing green.
  4. Continue holding the mode button until the System LED turns briefly amber and then solid green; then release the mode button.
  5. The boot loader switch: prompt appears in the terminal emulation software on the PC.

Type the help or ? at the boot loader prompt to view a list of available commands.

By default, the switch attempts to automatically boot up by using information in the BOOT environment variable. To view the path of the switch BOOT environment variable type the set command. Then, initialize the flash file system using the flash_init command to view the current files in flash, as shown in the output.

switch: set
# BOOT=flash:/c2960-lanbasek9-mz.122-55.SE7/c2960-lanbasek9-mz.122-55.SE7.bin
# <...output omitted...>
switch: flash_init
# Initializing Flash...
# flashfs[0]: 2 files, 1 directories
# flashfs[0]: 0 orphaned files, 0 orphaned directories
# flashfs[0]: Total bytes: 32514048
# flashfs[0]: Bytes used: 11838464
# flashfs[0]: Bytes available: 20675584
# flashfs[0]: flashfs fsck took 10 seconds.
# ...done Initializing Flash.

After flash has finished initializing you can enter the dir flash: command to view the directories and files in flash, as shown in the output.

switch: dir flash: 
# Directory of flash:/
#     2  -rwx  11834846                 c2960-lanbasek9-mz.150-2.SE8.bin
#     3  -rwx  2072                     multiple-fs

Enter the BOOT=flash command to change the BOOT environment variable path the switch uses to load the new IOS in flash. To verify the new BOOT environment variable path, issue the set command again. Finally, to load the new IOS type the boot command without any arguments, as shown in the output.

switch: BOOT=flash:c2960-lanbasek9-mz.150-2.SE8.bin
switch: set
# BOOT=flash:c2960-lanbasek9-mz.150-2.SE8.bin
# <...output omitted...>
switch: boot

The boot loader commands support initializing flash, formatting flash, installing a new IOS, changing the BOOT environment variable and recovery of lost or forgotten passwords.