Port-Security Mac-Address Security - HPE FlexNetwork HSR6800 Security Command Reference

Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

Usage guidelines
After you execute this command, you cannot manually configure sticky MAC address, and secure
MAC addresses automatically learned by a port in autoLearn mode are also dynamic. All dynamic
MAC addresses are lost at reboot. Use this command when you want to clear all sticky MAC
addresses after a device reboot.
You can display dynamic secure MAC addresses by using the display port-security mac-address
security command.
Examples
# Enable the dynamic secure MAC function on interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] port-security mac-address dynamic
Related commands
display port-security mac-address security
mac-address dynamic

port-security mac-address security

Use port-security mac-address security to add a secure MAC address in Layer 2 Ethernet
interface view or system view.
Use undo port-security mac-address security to remove a secure MAC address.
Syntax
In Layer 2 Ethernet interface view:
port-security mac-address security [ sticky ] mac-address vlan vlan-id
undo port-security mac-address security [ sticky ] mac-address vlan vlan-id
In system view:
port-security mac-address security [
interface-number vlan vlan-id
undo port-security mac-address security [ [ mac-address [ interface interface-type
interface-number ] ] vlan vlan-id ]
Default
No secure MAC address entry is configured.
Views
Layer 2 Ethernet interface view, system view
Default command level
2: System level
Parameters
sticky: Specifies a sticky MAC address. If you do not provide this keyword, the command configures
a static secure MAC address.
mac-address: Secure MAC address, in the H-H-H format.
interface interface-type interface-number: Specifies a Layer 2 Ethernet port by its type and number.
vlan vlan-id: Specifies the VLAN that has the secure MAC address. The vlan-id argument represents
the ID of the VLAN in the range of 1 to 4094. Make sure that you have assigned the Layer 2 port to
the specified VLAN.
sticky ] mac-address interface interface-type
181

Advertisement

Table of Contents
loading

Table of Contents