Link to home
Create AccountLog in
Avatar of Member_2_6498066
Member_2_6498066Flag 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?
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

conf t
no switch 2 provision <model>
no switch 3 provision <model
do copy run start
do reload
Avatar of 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
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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?
#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...
Well done. It worked. Thank you.
Thank you.
You're welcome.