Friday, September 23, 2011

Switchport Host: Two commands in one blow!

 
There's this "mabangis" Cisco IOS command that I discovered recently. It is the switchport host command and it automatically does three things:

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



Syntax:


Remember:

This command is for ports that connect to endpoints (PCs, Laptops, etc) and NOT for other network devices.  The reason for this is that portfast puts the port in forwarding state and bypasses the listening and learning states. Thus there is a possibility that a switching loop will occur when a network device is plugged in to the port.