Set cisco interface switch to default configuration

Published on by dellpe

You want to set to default configuration of cisco WS-C3560X-48T-S interface switches.

In order to perform the procedures described in this document, you must have "enable"

In certain situations, it is desirable to restore the Catalyst switch configuration to the original default factory settings. This is useful when you want to remove an undesirable configuration that is present in the switch. If you have configured a switch and the configuration has become very complex or if you want to move a switch from one network to other, you can reset the switch to factory defaults and configure it as a new switch. This document provides information and sample command logs to reset your switches.

To reset the Catalyst switches to factory defaults, you need access to the switch console through either a physical console or a Telnet connection. You also need the console/enable passwords. If you forget the console and enable password of your switch, you cannot reset the switch configuration to factory default to reset the password. In this case, you need to follow the password recovery procedures for your switch. Refer to this document for steps to recover the passwords on your Catalyst switches:


If you have a running cisco switch, often you have some configuration commands on each interfaces. Basically you can disable the command using the ‘no’ negation. If there is only one line or two, its ok but if there are more than that, it would take some times to disable one by one.
To set to default config, you can use ‘default interface [interface-number]‘ command in the config enable mode terminal.
Here is an example.
Let’s say we want to set interface Fa0/20 of a cisco catalyst to default configuration.

core-swc02#sh run int f0/20
Building configuration...

Current configuration : 160 bytes
!
interface FastEthernet0/20
 description TrunkJKT-SBY
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 834,835
 switchport mode trunk
end

As you can see above, there are four configuration lines inside it.
If we want to set interface FastEthernet0/20 to default, run “default interface f0/20″ as below:

core-swc02#conf t
core-swc02(config)#default int f0/20
Interface FastEthernet0/20 set to default configuration

To make sure it has been set to default, check the run config for interface fastethernet0/20:

core-swc02(config)#do sh run int f0/20
Building configuration...

Current configuration : 69 bytes
!
interface FastEthernet0/20
 switchport mode dynamic desirable
end

Hope this would be useful.

Published on Cisco 3560X

To be informed of the latest articles, subscribe:
Comment on this post
O
Thanks for sharing your nice post
Reply
C
Thank to Information
Reply
O
Nice Post. Your Information Sangat Membantu
Reply
C
Tuhan tuntunlah aku kejalanmu. jalan yang lurus dan benar
Reply
O
Aku sangat membutuhkanmu untuk saat ini dan selamanya
Reply