Avatar of Member_2_6498066
Member_2_6498066
Flag for United States of America asked on

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?
* SwitchSwitches / Hubs

Avatar of undefined
Last Comment
Predrag Jovic

8/22/2022 - Mon
Predrag Jovic

conf t
no switch 2 provision <model>
no switch 3 provision <model
do copy run start
do reload
Member_2_6498066

ASKER
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?
ASKER CERTIFIED SOLUTION
Predrag Jovic

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Member_2_6498066

ASKER
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?
Your help has saved me hundreds of hours of internet surfing.
fblack61
Predrag Jovic

#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_6498066

ASKER
Well done. It worked. Thank you.
Member_2_6498066

ASKER
Thank you.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Predrag Jovic

You're welcome.