This blog is specific to the CIsco Catalyst 3560, but should work with other Catalyst switches.
Reset Port Config to Default for One Port
Use the command below to clear the configuration on a port.
s3560(config)#default interface gigabitEthernet 0/3
Interface GigabitEthernet0/3 set to default configuration
Use the command below to verify that the running config for the port has been reset to the default configuration.
s3560#show running-config interface gigabitEthernet0/3
Building configuration...Output below
Current configuration : 36 bytes
!
interface GigabitEthernet0/3
end
Now write your changes to memory.
s3560#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
0 bytes copied in 1.427 secs (0 bytes/sec)
Reset Port Config to Default for a Range of Ports
Below we are going to clear/delete the config from a range of ports
s3560#conf terminal
s3560(config)#default interface range gigabitEthernet 0/13 - 24
Again, don’t forget to save your changes.
s3560#conf terminal s3560#copy run start