Common commands for maintaining secure vswitch port settings

Source: Internet
Author: User

Common commands for maintaining secure vswitch port settings, master the following knowledge about vswitch port settings. You only need to install vswitch port settings in a few minutes. The basic commands for setting vswitch ports are also mentioned in this article.

Vswitch Port Security: vswitch port security is defined by configuring the switch interface, which only allows a specific mac address to send frames to the vswitch interface. If the vswitch receives the mac address frame, the frames from the device are discarded.

Basic commands for vswitch port settings:
Switch (config) # int f0/0
Switch (config-if) # switchport mode access/configure this interface as an access interface, which cannot be a relay interface/
Switch (config-if) # switchport port-security/enable switch port settings security/
Switch (config-if) # switchport port-security mac-address mac
/Specify the mac address that allows frames to be sent to this interface. Use this command multiple times to define multiple mac addresses/

 

Vswitch port settings

Other commands for setting vswitch ports:
Switch (config-if) # switchport port-security macaddress sticky
. Use the adhesive tape learning to dynamically learn and configure the mac address of the currently connected host/

Switch (config-if) # switchport port-security maxinum
/Specify the maximum number of mac addresses allowed by the current interface. The default value is one/

Switch (config-if) # switchport port-security violation {protect | restrict | shutdown}
/Specifies the action to be taken when receiving a frame from a mac address outside the specified address. By default, the switch port setting is disabled/
Switch # show port-security int f0/0/View Interface security status/

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.