The configuration model file matching port security management is huawei-mac.yang.
Object |
Description |
Value |
Remarks |
---|---|---|---|
/huawei-mac:static-flapping-protect/enable |
Enables static MAC address flapping detection. |
The value is of the Boolean type:
|
Static MAC address flapping detection needs to be enabled only on the interfaces with port security enabled. |
/ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/enable |
Enables port security. |
The value is of the Boolean type:
|
The following objects can be configured only when this object is set to true:
|
/ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/maxinum |
Configures the maximum number of secure MAC addresses that can be learned on an interface. |
The value is an integer in the range from 1 to 1024. |
The total number of MAC addresses on interfaces enabled with port security cannot exceed 4096. |
/ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/action |
Configures the protection action to be taken when the number of learned MAC addresses on an interface enabled with port security exceeds the upper limit or static MAC address flapping is detected. |
The value is of the enumerated type:
|
N/A |
/ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/port-security-aging/aging-time |
Configures the aging time of secure dynamic MAC addresses on an interface. |
The value is an integer in the range from 1 to 1440, in minutes. |
N/A |
/ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/port-security-aging/aging-type |
Configures the type of the aging time of secure dynamic MAC addresses on an interface. |
The value is of the enumerated type:
|
N/A |
/ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/sticky |
Enables the sticky MAC function on an interface. |
Boolean type. Options:
|
Before setting this object to true, you must set /ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/enable to true. Before setting ietf-interfaces:interfaces/interface/huawei-mac:mac-security/port-security/enable to false, you must set this object to false. |