Configuration Prerequisites; Configuration Procedure - H3C S5120-HI Security Configuration Manual

Hide thumbs Also See for S5120-HI:
Table of Contents

Advertisement

Table 14 A comparison of static, sticky, and dynamic secure MAC addresses
Type
Static
Sticky
Dynamic

Configuration prerequisites

Enable port security.
Set port security's limit on the number of MAC addresses on the port. Perform this task before you
enable autoLearn mode.
Set the port security mode to autoLearn.

Configuration procedure

To configure a secure MAC address:
Step
1.
Enter system view.
2.
Set the secure MAC aging
timer.
Address sources
Aging mechanism
Not available.
They never age out unless you manually remove
Manually added
them, change the port security mode, or disable
the port security feature.
Sticky MAC addresses by default do not age
out, but you can configure an aging timer or use
the aging timer together with the inactivity aging
Manually added or
function to delete old sticky MAC addresses:
automatically learned
when the dynamic
secure MAC function
(port-security
mac-address
dynamic) is disabled.
Converted from sticky
MAC addresses or
automatically learned
Same as sticky MAC addresses.
after the dynamic
secure MAC function
is enabled.
Command
system-view
port-security timer autolearn aging
time-value
If only an aging timer is configured, the
aging timer counts up regardless of whether
traffic data has been sent from the sticky
MAC address.
If both an aging timer and the inactivity
aging function are configured, the aging
timer restarts once traffic data is detected
from the sticky MAC address.
160
Can be saved and
survive a device
reboot?
Yes.
Yes.
The secure MAC aging
timer restarts at a
reboot.
No.
All dynamic secure
MAC addresses are
lost at reboot.
Remarks
N/A
Optional.
By default, secure MAC addresses
do note age out, and you can
remove them only by performing the
undo port-security mac-address
security command, changing the
port security mode, or disabling the
port security feature.

Advertisement

Table of Contents
loading

Table of Contents