+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Nov 2008
    Location
    CA
    Posts
    50

    Certifications
    MCSE 2003:M, MCSE:2003:SE, CCNA, SEC+
    #1

    Default clear switchport configuration command?

    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....
    Reply With Quote Quote  

  2. SS -->
  3. Senior Member miller811's Avatar
    Join Date
    Oct 2007
    Location
    Nashville
    Posts
    896

    Certifications
    CCNP, CCDP, MCSA, Security +. Network +, A+
    #2
    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)#
    Reply With Quote Quote  

  4. Member
    Join Date
    Nov 2008
    Location
    CA
    Posts
    50

    Certifications
    MCSE 2003:M, MCSE:2003:SE, CCNA, SEC+
    #3
    awesome! This really helps on old stuff that doesn't support the range command.
    Reply With Quote Quote  

  5. Senior Member miller811's Avatar
    Join Date
    Oct 2007
    Location
    Nashville
    Posts
    896

    Certifications
    CCNP, CCDP, MCSA, Security +. Network +, A+
    #4
    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
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks