Error message

  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /data03/toxictux/public_html/main/includes/
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /data03/toxictux/public_html/main/includes/

Cisco 2950

Cisco IOS commands to perform a manufacturer reset and do some basic configuration on a 2950 switch (probably others).
Resetting the switch
To rest the switch: Connect to the console line and then poweroff the switch (pull the plug). Hold the mode button on the front and power it on. 
You should see the following on the console:

The system has been interrupted prior to initializing the

flash filesystem.  The following commands will initialize

the flash filesystem, and finish loading the operating

system software:







At the switch prompt type in "flash_init",

When the prompt return type "load_helper"

Now delete the old config by typing "del flash:config.text"

Finally type "boot" to start the switch. You should now go into the initial setup to configure the switch. 


Initial Setup

When the switch is booted without a config.text it will ask you if you want to enter the initiial configuration: 

    Would you like to enter the initial configuration dialog? [yes/no]: yes

    Would you like to enter basic management setup? [yes/no]: yes

    Enter host name [Switch]: <BadSwitchName>

    Enter enable secret: <BadSecretPassphrase>

    Enter enable password: <BadSecretPaddword>

    Enter virtual terminal password: <BadVirtTermPassword>

    Configure SNMP Network Management? [no]: no

    Enter interface...from the above interface summary: <vlan1 or interface name>

    Configure IP on this interface? [no]: yes

        IP address for this interface: <IP address>

        Subnet mask for this interface [] : <subnet mask>

    Would you like to enable as a cluster command switch? [yes/no]: no




    [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.

    Enter your selection [2]: 2



Require access authentication

Enter the configuration terminal (conf term) and run the following commands to enable case-sensitive authentication. You must use the username directive to create an account before you log out.



    conf term 

    aaa new-model

    aaa authentication login default local-case

    username <username> secret <password> 


Save config to flash

When the switch is configured you need to save the running configuration to flash so it is restored when the switch is rebooted. In the enable mode type "copy running-config startup-config"