Link to home
Start Free TrialLog in
Avatar of Dumas
Dumas

asked on

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
end
ASKER CERTIFIED SOLUTION
Avatar of ccie22921
ccie22921
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi

#write erase
then

reload

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


Avatar of Dumas
Dumas

ASKER

Fantastic!!!

You dont know how much time this is going to save me.
Thank you!
Avatar of Dumas

ASKER

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.