clear switchport configuration command?

hollow666hollow666 Posts: 50Member ■■□□□□□□□□
So this might sound dumb but is there any single command or macro I can use on a switchport or a switchport range that will completely remove all configuration? The closet thing I have found is just running the switchport host macro but that only removes certain things and not speed,duplex,description,etc....

Comments

  • miller811miller811 Posts: 897Member
    default interface x/x will do the trick, this will work on a router switch interface

    3550_48(config)#default interface f0/22
    Interface FastEthernet0/22 set to default configuration
    3550_48(config)#
    I don't claim to be an expert, but I sure would like to become one someday.

    Quest for 11K pages read in 2011
    Page Count total to date - 1283
  • hollow666hollow666 Posts: 50Member ■■□□□□□□□□
    awesome! This really helps on old stuff that doesn't support the range command.
  • miller811miller811 Posts: 897Member
    This will also work with the range command

    3550_48#show int status

    Port Name Status Vlan Duplex Speed Type
    Fa0/30 notconnect 1 auto auto 10/100BaseTX
    Fa0/31 notconnect 1 half 10 10/100BaseTX
    Fa0/32 notconnect routed auto auto 10/100BaseTX
    Fa0/33 notconnect 1 half 100 10/100BaseTX

    3550_48(config)#default interface range f0/30 - 33
    3550_48(config)#
    20:25:58: %LINK-3-UPDOWN: Interface FastEthernet0/32, changed state to down
    20:25:59: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/32, changed state to down

    3550_48(config)#do sho int status

    Port Name Status Vlan Duplex Speed Type
    Fa0/30 notconnect 1 auto auto 10/100BaseTX
    Fa0/31 notconnect 1 auto auto 10/100BaseTX
    Fa0/32 notconnect 1 auto auto 10/100BaseTX
    Fa0/33 notconnect 1 auto auto 10/100BaseTX
    I don't claim to be an expert, but I sure would like to become one someday.

    Quest for 11K pages read in 2011
    Page Count total to date - 1283
Sign In or Register to comment.