該命令可以把端口配置成下列模式,省去了好多命令 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 @ 具體的配置命令就不說了,思科有詳細的文檔,很好玩吧。