Three useful switch commands

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.