• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7196
  • Last Modified:

How to clear config from a Cisco Catalyst 3750 port

Is there a command that can be run to clear the configuration off a switch port on a Cisco Catalyst 3750?

I know that you can go and use the "no" command to remove the configuration line by line. I would like to use a single command to remove all the lines of configuration.
Take a look at the port configuration below. This is a typical configuration for each one of our ports. You can see why using the "no" command is time consuming.

interface FastEthernet1/0/1
 switchport access vlan 100
 switchport mode access
 switchport voice vlan 101
 switchport port-security maximum 3
 switchport port-security aging time 2
 switchport port-security violation restrict
 switchport port-security aging type inactivity
 srr-queue bandwidth share 10 10 60 20
 srr-queue bandwidth shape  10  0  0  0
 mls qos trust device cisco-phone
 mls qos trust cos
 macro description cisco-phone
 auto qos voip cisco-phone
 dot1x pae authenticator
 dot1x timeout quiet-period 3
 dot1x timeout tx-period 15
 dot1x guest-vlan 106
 dot1x auth-fail vlan 106
 spanning-tree portfast
 spanning-tree bpduguard enable
  • 3
  • 2
  • 2
1 Solution
config t
default interface fa1/0/1

#write erase


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

type n

have fun

Wow, MEMO, you really want him to swat a fly with a cadillac don't ya?  

I came back here to update you and tell you that it works with the interface range as well.  

config t
default interface range fa1/0/1 -2
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

wait a second
may im not understanding your question?
are you trying to erase only configuration for that port ??
if yes
then my post is not fit your need
it erase your configurations

you are totally right ccie22921:

i apology for that ,, i thought clear all configurations ..

DumasAuthor Commented:

You dont know how much time this is going to save me.
Thank you!
DumasAuthor Commented:
Thanks for the laugh Memo.
When I read your first reply, I thought you were just being witty.
Good thing I knew what that command did.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now