32
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view.
interface
interface-type
interface-number
N/A
3.
Enable MAC Information on
the interface.
mac-address information enable
{
added
|
deleted
}
Disabled by default.
Configuring MAC Information mode
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure MAC Information
mode.
mac-address information mode
{
syslog
|
trap
}
Optional
trap
by default.
Configuring the interval for sending Syslog or trap
messages
To prevent Syslog or trap messages from being sent too frequently, change the interval for sending Syslog
or trap messages.
To set the interval for sending Syslog or trap messages:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the interval for sending
Syslog or trap messages.
mac-address information interval
interval-time
Optional
One second by default.
Configuring the MAC Information queue length
If the MAC Information queue length is 0, the device sends a Syslog or trap message immediately after
learning or deleting a MAC address.
If it is not 0, the device stores MAC address changes in the queue:
•
When the timer set for sending Syslog or trap messages does not expire, the device overwrites the
last piece of information written into the queue with the new MAC address change if the queue has
been exhausted.
•
When the timer set for sending Syslog or trap messages expires, the device sends Syslog or trap
messages regardless of whether the queue has been exhausted.
To configure the MAC Information queue length:
Step Command
Remarks
1.
Enter system view.
system-view
N/A