Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Configuring a Cisco Catalyst

2900/3500/3550 XL switch
If the switch does not ask you about continuing with the initial configuration dialog, you
must reset it to factory defaults. If the enable password is not set:

switch> enable

switch# erase startup-config

Verify that it worked:

switch# show startup-config

%% Non-volatile configuration memory is not present

Then power cycle the switch.

If you cannot get into enable mode without a password, see the section explaining how
to break in on the console and reset the password.

To enter a new configuration:

1. Enter Y at the first prompt:


Continue with configuration dialog? [yes/no]: y
2. Enter the switch IP address:
Enter IP address: XXX.XXX.XXX.XXX
3. Enter the subnet mask:
Enter IP netmask: XXX.XXX.XXX.XXX
4. Press <enter> to enter a default gateway:
Would you like to enter a default gateway address? [yes]:
5. Enter the IP address of the default gateway:
IP address of the default gateway: XXX.XXX.XXX.XXX
6. Enter the fully-qualified hostname for the switch:
Enter a host name: [Switch] switchname.example.com
7. Enter the enable secret password:
Enter enable secret: your password here
8. Press enter if you want a Telnet password:
Would you like to configure a Telnet password? [yes]:
9. Enter the Telnet password:
Enter Telnet secret: your password here
10. Enter no unless you really want to enable this as a cluster command switch:
Would you like to enable as a cluster command switch? [yes/no]: 
no
11. It will show the initial configuration. Type yes if you got it all right, or no to re-
do it.
12. Now you need to fix the default SNMP settings, plus possibly more. Start by
pressing enter to get a prompt.
13. Get into enable mode:
switch>enable
14. Get into configuration mode:
switch#configure terminal
Note that you only need to type conf t, or you can type conf and press <tab>
and then type t and press <tab> to get the IOS to auto-complete.
15. If you want to support SNMP read-only access, set a password which is not the
well-known default:
switch(c)#snmp-server community new-snmp-password RO
16. Definitely disable the well-known default SNMP passwords (community
strings):
switch(c)#no snmp-server community private RW
switch(c)#no snmp-server community public RO
17. You probably want to turn off Cisco Discovery Protocol:
switch(c)#no cdp run
18. When you are done making configuration changes, exit the configuration:
switch(c)#end
00:03:18: %SYS-5-CONFIG_I: Configured from console by console
19. Verify that the configuration looks right:
switch#show running-config
20. If all looks good, save the configuration:
switch#copy running-config startup-config

To erase an existing configuration

Get into enable mode and erase the startup configuration:

switch>enable
switch#erase startup-config

Verify that it worked:

switch# show startup-config


%% Non-volatile configuration memory is not present

You might also like