« Recovering IOS from ROMMON via TFTP | Main | Throttling Bandwidth for Certain Internet Sites »

November 6, 2006

Two very cool switch commands

I've got two hot commands for you that I think you'll find very handy on your NativeIOS switches:

First off, in most environments, just about every port should be set to "spanning-tree portfast" to eliminate the 30 second delay before a switchport goes active. Here's a way to do it globally:

Switch(config)# spanning-tree portfast default

This command automatically sets any port configured as an access port (non-trunking) to the correct mode.

Now, speaking of access ports, check this out. Cisco came out with a secret-ninja command that automatically does three things:

1. Configures a switchport to access mode (for hosts)
2. Enables portfast
3. Disables Etherchannel capabilities

Here it is:

Switch(config)# interface range fa0/1 - 24
Switch(config-if-range)# switchport host
switchport mode will be set to access
spanning-tree portfast will be enabled
channel group will be disabled

Nice!!!

Posted by JC at November 6, 2006 3:11 PM

Trackback Pings

TrackBack URL for this entry:
http://www.cioara.org/cgi-bin/mt-tb.cgi/112

Comments

This has nothing to do with your post but I can't find your email on the site.

I've got a question.. What command do you use to check when a port was last used on a switch?

Posted by: missenlinx at November 8, 2006 9:29 PM

Another that has nothing to do with your post.
I have just finished your ISCW nuggets and must say I am glad your still putting them out. I am taking the exam this Friday and whether I pass or not I feel once again I have learned so much from another one of your videos. Excellent! Keep it up for the guys like me who can't stand the mundane, put you to sleep instructors. Can't wait for the next one. I feel like Luke first meeting Yoda, The force is strong.
Moses

Posted by: David Lundgren at November 11, 2006 10:53 PM

Thanks kindly David - I'm glad you enjoyed it. Quick tip on the ISCW exam - be sure to study up on your general security practices - IOS Firewall, security policies, access-lists, & VPN configurations. Know your way around the SDM and be able to verify configurations using the utility.

My recent ISCW exam experience:
72 Questions
790 Passing Score
90 Minutes

...did I say that out loud?

Posted by: JC at November 14, 2006 5:34 AM

With the above command we can also use following for enabling BPDU with portfast.

set spantree portfast bpdu-guard enable

Posted by: Sikandar at November 17, 2006 7:58 AM

nice

Posted by: arindam at February 10, 2007 12:39 AM

stp

Posted by: arup nandi at March 21, 2007 6:09 AM

Post a comment




Remember Me?

(you may use HTML tags for style)