cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
211160
Views
23
Helpful
4
Replies

setting an interface back to defaults?

jimmcgrady
Level 1
Level 1

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.

4 Replies 4

ajay chauhan
Level 7
Level 7

(config)#default interface

Try this.

Thanks

Ajay

(config-if)#default interface

simionov.adrian
Level 1
Level 1

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

neil0367389
Level 1
Level 1

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.

 

 

 

Review Cisco Networking for a $25 gift card