Delete a configuration of an interface

Answered Question
Jun 14th, 2010
User Badges:

Hi everybody,


I want to know if there is any command that delete the configuration of an interface in one time, either of using "no" for each config.


assume this config:


interface GigabitEthernet1/1
switchport
switchport trunk encapsulation dot1q
switchport trunk native vlan 10
switchport trunk allowed vlan 10-14
switchport trunk pruning vlan none
switchport mode trunk
no vtp


either of doing no with each switchport, using one command to erase all this lines would be useful!

I precise for a physical interface, not a vlan interface where a no do the job


Thanks

Correct Answer by Giuseppe Larosa about 7 years 1 month ago

Hello Goldenbmw,


you can use


conf  t

default interface gi1/1


Hope to help

Giuseppe

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Giuseppe Larosa Mon, 06/14/2010 - 05:52
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

Hello Goldenbmw,


you can use


conf  t

default interface gi1/1


Hope to help

Giuseppe

goldenbmw Mon, 06/14/2010 - 05:55
User Badges:

Thanks a lot!!

that's it, you'are very quick, I've just found it

and it's very interesting using "range" for a range of interfaces

Actions

This Discussion