Removal of several ports (physical interface) on a switch config?

How do I remove several ports (physical interface) on a switch config?

Unfortunately , I copied the running config from a stacked switch to a single switch.

Rather than starting over, I would like to remove the physical ports gi2/0/1 - gi3/0/48.

Any thoughts on how to do that?
Member_2_6498066Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JustInCaseCommented:
conf t
no switch 2 provision <model>
no switch 3 provision <model
do copy run start
do reload
Member_2_6498066Author Commented:
Arg. I'm afraid to do that, but will back up what I have. No way to just do it port by port so to speak?
JustInCaseCommented:
nope... if you want remove interfaces from configuration...

Provisioning switches is what placed ports in configuration.

you can remove port configuration by issuing
default interface range gi2/0/1-48, gi3/0/1-48
but it will not remove interfaces from configuration

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Member_2_6498066Author Commented:
Is there phraseology in the config settings that will lead me to the switch model so that I can issue the no switch 2 provision <model> command?

What if they are all the same model?

Would that mean the entire config would be emptied of ports?
JustInCaseCommented:
#show run | i provision

no switch X  provision <model> <-- is removing just switch X even if all switches are the same mode.

I think that model may not even be needed for removal
no switch X  provision
without model should be enough to delete. I wrote delete command as it is written in running configuration, but not always all keywords present in command are needed for removal.

Just do it, have fun...
Member_2_6498066Author Commented:
Well done. It worked. Thank you.
Member_2_6498066Author Commented:
Thank you.
JustInCaseCommented:
You're welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switch

From novice to tech pro — start learning today.