This is just a quick post about an awesome little command I just saw on Networking-Forum. The command is “default interface”. First we’ll look at an interface config:

CORE#sh run int gi0/32
[...]
interface GigabitEthernet0/32
 switchport access vlan 10
 switchport mode access
 spanning-tree portfast
end

Now we’ll run the command:

CORE(config)#default interface GigabitEthernet0/32
Interface GigabitEthernet0/32 set to default configuration

Results:

CORE#sh run int gi0/32
[...]
interface GigabitEthernet0/32
end

You can also use this with the “interface range” command if you want to reset a bunch of ports to their default settings. Simple little command with a lot of power.

Colby

Colby Glass has been in IT since 2002. He is currently a Systems Engineer (presales) with a Cisco Gold partner and holds the CCNP R/S, CCNP DC, CCDP, CCIP, JNCIA-ER.

More Posts