Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Certification Preparation
Cisco
CCST & CCNA (Entry-level & Associate)
clear switchport configuration command?
hollow666
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....
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
miller811
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)#
hollow666
awesome! This really helps on old stuff that doesn't support the range command.
miller811
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
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS