02-12-2012 11:12 PM - edited 03-07-2019 04:53 AM
On a 6500 switch running ios 12.2, is there a way of clearing all config settings for a specified interface? I want to avoid going through and having to type "no blah blah etc" for each line.
02-12-2012 11:21 PM
(config)#default interface
Try this.
Thanks
Ajay
05-09-2024 08:46 AM
(config-if)#default interface
02-13-2012 08:21 AM
Using NO commands will not bring the interface to default. For example, some switch models have no shutdown as default, other models have shutdown as default.
As mentioned before, using the command:
(config)#default interface
you will bring the interface to the default configuration. Please note that this command is a macro inside the IOS, and you can create your own macros.
http://blog.ioshints.info/2007/06/default-interface-configuration-command.html
11-17-2024 01:15 PM
The command even allows you specify which interface (this was actually from packet tracer). Note that on some models the commands may not work
Switch(config)#default interface ?
Ethernet IEEE 802.3
FastEthernet FastEthernet IEEE 802.3
GigabitEthernet GigabitEthernet IEEE 802.3z
Vlan Catalyst Vlans
range interface range command
Switch(config)#default interface fa0/1
Building configuration...
Apparently, if for example if you have changed the speed to an interface for example:
Switch(config)#int fa0/1
Switch(config-if)#speed 10
To bring the interface back to its default you can issue the command:
Switch(config-if)#no speed
May need some research this.
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