该命令可以把端口配置成下列模式,省去了好多命令
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
当然你可以自己定义
Switch# config t
Switch(config)# macro name Test-Macro
Enter macro commands one per line. End with the character ‘@'.
switchport block unicast
switchport block multicast
@
具体的配置命令就不说了,思科有详细的文档,很好玩吧。