Displaying And Maintaining The Mac Address Table; Mac Address Table Configuration Example; Network Requirements - H3C S7500E-X Configuration Manual

Layer 2 lan switching
Hide thumbs Also See for H3C S7500E-X:
Table of Contents

Advertisement

Step
Enable SNMP
2.
notifications for
the MAC address
table.
Displaying and maintaining the MAC address
table
Execute display commands in any view.
Task
Display MAC address table
information.
Display the aging timer for dynamic
MAC address entries.
Display the system or interface MAC
address learning state.
Display MAC address statistics.
Display the MAC address move
records (in standalone mode).
Display the MAC address move
records (in IRF mode).

MAC address table configuration example

Network requirements

On a network:
Host A at MAC address 000f-e235-dc71 is connected to interface GigabitEthernet 1/0/1 of
Device and belongs to VLAN 1.
Host B at MAC address 000f-e235-abcd, which behaved suspiciously on the network, also
belongs to VLAN 1.
Configure the MAC address table as follows:
To prevent MAC address spoofing, add a static entry for Host A in the MAC address table of
Device.
To drop all frames destined for Host B, add a blackhole MAC address entry for Host B.
Set the aging timer to 500 seconds for dynamic MAC address entries.
Command
snmp-agent trap enable mac-address
[ mac-move ]
Command
display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic
| static ] [ interface interface-type interface-number ] | blackhole |
multiport ] [ vlan vlan-id ] [ count ] ]
display mac-address aging-time
display mac-address mac-learning [ interface interface-type
interface-number ]
display mac-address statistics
display mac-address mac-move [ slot slot-number ]
display mac-address mac-move [ chassis chassis-number slot
slot-number ]
14
Remarks
By default, SNMP notifications
are enabled for the MAC address
table.
When SNMP notifications are
disabled for the MAC address
table, syslog messages are sent
to notify important events on the
MAC address table module.

Advertisement

Table of Contents
loading

Table of Contents