09-20-2012 01:37 AM - edited 03-07-2019 08:59 AM
Hello,
I am on a 48 port switch and I have shutdown ports 20-40 using the interface range command, now I need remove the lines of config from those ports. Normally I use the no command but it takes ages as the ports are quite specific, is there a quicker way as I have to do this at another 28 sites!
Thanks
Solved! Go to Solution.
09-20-2012 01:44 AM
Hi Andy,
you can use interface default command witch will remove all the config and put the inter face to default mode.
like, default int range
Please do rate if the given information helps
Thanks
09-20-2012 01:47 AM
Hello Andy,
there is the default command that should restore the default configuration of a port
It should be something like
config t
default interface type x/y
You need to shut the interfaces again as default settings is not shut
Hope to help
Giuseppe
09-20-2012 01:44 AM
Hi Andy,
you can use interface default command witch will remove all the config and put the inter face to default mode.
like, default int range
Please do rate if the given information helps
Thanks
09-20-2012 01:47 AM
Hello Andy,
there is the default command that should restore the default configuration of a port
It should be something like
config t
default interface type x/y
You need to shut the interfaces again as default settings is not shut
Hope to help
Giuseppe
09-20-2012 01:53 AM
Brilliant, thanks guys, this we will help loads.
09-20-2012 02:03 AM
That is one switch done, can you see why this range wont work?
int range FastEthernet 0/1 -4 , fa 0/6 , fa 0/9 , fa 0/13 , fa 0/16-28 , fa 0/33-48 , gig 0/2
^
It shows there is an issue between fa 0/16-28 , fa 0/33-48
^
Thanks
09-20-2012 02:12 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Andy White wrote:
That is one switch done, can you see why this range wont work?
int range FastEthernet 0/1 -4 , fa 0/6 , fa 0/9 , fa 0/13 , fa 0/16-28 , fa 0/33-48 , gig 0/2
^
It shows there is an issue between fa 0/16-28 , fa 0/33-48
^
Thanks
There's a limit of 5 parameters per range command.
09-21-2012 02:15 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
You need to shut the interfaces again as default settings is not shut
BTW, I believe I've noticed not all devices shut status is impacted by the default interface command. To be safe, I follow up default command with similar inteface range command to set or unset shut status as required.
Also, on some devices, defaulting an interface will impact other interfaces QoS settings. (Just some QoS commands; interfaces controlled by same ASIC.)
09-20-2012 01:48 AM
Hello Andy,
You could use the default interface range command - this will literally erase all the ports' configuration back to their default settings. Could this be helpful?
Best regards,
Peter
09-20-2012 02:29 AM
Hi Andy,
create different macro's with 5 int in each and then default those macros once
thanks
09-20-2012 05:37 PM
When you use the "default int range" command note that some IOS releases on some devices are picky on syntax for the interface ranges. I always specify them in the format:
fa1/0/1 - 6, fa1/0/9 - 11
My 3550's were the ones that were very finicky on the format they accepted.
Sent from Cisco Technical Support Android App
04-05-2024 12:02 AM
conf t
default interface range gig1/x-y
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide