Mac Address Table Configuration Example; Network Requirements; Configuration Procedure - HP 6125G Configuration Manual

Layer 2 - lan switching
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

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.

MAC address table configuration example

Network requirements

As shown in
The MAC address of Host A is 000f-e235-dc71 and belongs to VLAN 1. It is connected to
GigabitEthernet 1/0/1 of the device. To prevent MAC address spoofing, add a static entry for the
host in the MAC address table of the device.
The MAC address of Host B is 000f-e235-abcd and belongs to VLAN 1. For security, because this
host once behaved suspiciously on the network, add a blackhole MAC address entry for the host
MAC address, so all packets destined for the host are dropped.
Set the aging timer for dynamic MAC address entries to 500 seconds.
Figure 3 Network diagram

Configuration procedure

# Add a static MAC address entry.
<Sysname> system-view
[Sysname] mac-address static 000f-e235-dc71 interface gigabitethernet 1/0/1 vlan 1
Command
display mac-address [ mac-address [ vlan vlan-id ] |
[ [ dynamic | static ] [ interface interface-type
interface-number ] | blackhole ] [ vlan vlan-id ]
[ count ] ] [ | { begin | exclude | include }
regular-expression ]
display mac-address aging-time [ | { begin |
exclude | include } regular-expression ]
display mac-address mac-learning [ interface-type
interface-number ] [ | { begin | exclude | include }
regular-expression ]
display mac-address statistics [ | { begin | exclude |
include } regular-expression ]
Figure
3:
24
Remarks
Available in any view
Available in any view
Available in any view
Available in any view

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents