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/