1.spanning-tree portfast
这个命令就会把所有配置为access port的端口配置成正确的模式。
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# show parser macro brief
cisco-desktop
cisco-phone
cisco-switch
cisco-router
Sample-Macro
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
@
具体的配置命令就不说了,思科有详细的文档,很好玩吧。