For more information about vswitch configurations, see the following command:
1. spanning-tree portfast
Normally, the Spanning Tree Protocol ensures redundancy while avoiding loop loops. However, status changes require some latency, which may not be allowed in the network, especially for connected hosts, cisco has new features such as portfast, but it is very painful to configure this command on each port. In fact, you can configure this command in global mode.
Switch (config) # spanning-tree portfast default
This command configures all ports configured as access ports in the correct mode.
2. switchport host
This command can be used to configure the port to the following mode, saving a lot of commands
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
3. smartport
Smartport is a macro, which can be applied to the port to simplify configuration. Cisco has the following smartport templates by default.
Switch # Show parser macro brief
Cisco-Desktop
Cisco-phone
Cisco-Switch
Cisco-Router
Sample-Macro
Of course, you can define
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
@
the specific configuration commands are not mentioned. Cisco has detailed documents. It's a great time to get started.