Mac Address Table Configuration Example - 3Com S7906E Configuration Manual

S7900e family release 6600 series
Hide thumbs Also See for S7906E:
Table of Contents

Advertisement

To do...
Display the system or interface
MAC address learning state
Display MAC address statistics

MAC Address Table Configuration Example

Network requirements
The MAC address of one host is 000f-e235-dc71 and belongs to VLAN 1. It is connected to
GigabitEthernet2/0/1 of the device. To prevent MAC address spoofing, add a static entry into the
MAC address table of the device for the host.
The MAC address of another host is 000f-e235-abcd and belongs to VLAN 1. Because this host
once behaved suspiciously on the network, you can add a destination blackhole MAC address
entry for the MAC address to drop all packets destined for the host for security sake.
Set the aging timer for dynamic MAC address entries to 500 seconds.
Configuration procedure
# Add a static MAC address entry.
<Sysname> system-view
[Sysname] mac-address static 000f-e235-dc71 interface gigabitethernet 2/0/1 vlan 1
# Add a destination blackhole MAC address entry.
[Sysname] mac-address blackhole 000f-e235-abcd vlan 1
# Set the aging timer for dynamic MAC address entries to 500 seconds.
[Sysname] mac-address timer aging 500
# Display the MAC address entry for port GigabitEthernet2/0/1.
[Sysname] display mac-address interface gigabitethernet 2/0/1
MAC ADDR
000f-e235-dc71
---
1 mac address(es) found
# Display information about the destination blackhole MAC address table.
[Sysname] display mac-address blackhole
MAC ADDR
000f-e235-abcd
---
1 mac address(es) found
# View the aging time of dynamic MAC address entries.
[Sysname] display mac-address aging-time
Mac address aging time: 500s
Use the command...
display mac-address
mac-learning [ interface-type
interface-number ]
display mac-address
statistics
VLAN ID
STATE
1
Config static
---
VLAN ID
STATE
1
Blackhole
---
PORT INDEX
GigabitEthernet2/0/1
PORT INDEX
N/A
1-8
Remarks
AGING TIME
NOAGED
AGING TIME
NOAGED

Hide quick links:

Advertisement

Chapters

Table of Contents
loading

This manual is also suitable for:

S7910eS7906e-vS7903eS7903e-sS7902e

Table of Contents