- Table of Contents
-
- H3C WX6103 Access Controller Switch Interface Board Configuration Guide-6W102
- 00-Preface
- 01-Login Configuration
- 02-VLAN Configuration
- 03-IP Addressing and IP Performance Configuration
- 04-QinQ-BPDU Tunneling Configuration
- 05-Port Correlation Configuration
- 06-Link Aggregation Configuration
- 07-MAC Address Table Management Configuration
- 08-Port Security Configuration
- 09-MSTP Configuration
- 10-IP Routing-GR Overview Configuration
- 11-IPv4 Routing Configuration
- 12-IP Source Guard Configuration
- 13-DLDP Configuration
- 14-Multicast Configuration
- 15-LLDP Configuration
- 16-sFlow Configuration
- 17-ARP Configuration
- 18-DHCP Configuration
- 19-ACL Configuration
- 20-QoS Configuration
- 21-Port Mirroring Configuration
- 22-UDP Helper Configuration
- 23-SNMP-RMON Configuration
- 24-NTP Configuration
- 25-DNS Configuration
- 26-File System Management Configuration
- 27-Information Center Configuration
- 28-System Maintaining and Debugging Configuration
- 29-NQA Configuration
- 30-SSH Configuration
- 31-SSL-HTTPS Configuration
- 32-PKI Configuration
- 33-Track Configuration
- 34-Acronyms
- 35-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
07-MAC Address Table Management Configuration | 50.14 KB |
Table of Contents
1 MAC Address Table Management Configuration
Introduction to MAC Address Table
Configuring MAC Address Table Management
Configuring MAC Address Aging Timer
Configuring the Maximum Number of MAC Addresses an Ethernet Port or a Port Group Can Learn
Displaying and Maintaining MAC Address Table Management
MAC Address Table Management Configuration Example
When configuring MAC address table management, go to these sections for information you are interested in:
l Introduction to MAC Address Table
l Configuring MAC Address Table Management
l Displaying and Maintaining MAC Address Table Management
l MAC Address Table Management Configuration Example
l The term switch in this document refers to a switch in a generic sense or an access controller configured with the switching function unless otherwise specified.
l This guide covers only static, dynamic and blackhole MAC address table management. For the management of multicast MAC address table management, refer to Multicast Protocol in H3C WX6103 Access Controller Switch Interface Board Configuration Guide.
Introduction to MAC Address Table
A switch maintains a MAC address table for frame forwarding. Each entry in this table contains the MAC address of a connected device, to which port this device is connected and to which VLAN the port belongs.
A MAC address table consists of two types of entries: static and dynamic. Static entries are manually configured and never age out. Dynamic entries can be manually configured or dynamically learned and may age out.
The following is how a switch learns a MAC address after it receives a frame from a port, port A for example:
1) Check the frame for the source MAC address (MAC-SOURCE for example), and consider frames with destination MAC address MAC-SOURCE be forwarded through port A.
2) Look up the MAC address table for an entry corresponding to the MAC address and do the following:
l If an entry is found for the MAC address, update the entry.
l If no entry is found, add an entry containing the MAC address and port A.
When receiving a frame destined for MAC A, the switch then looks up the MAC address table and forwards it from port A.
Dynamically learned MAC addresses cannot overwrite static MAC address entries, but the latter can overwrite the former.
As shown in Figure 1-1, when forwarding a frame, the switch looks up the MAC address table. If an entry is available for the destination MAC address, the switch forwards the frame directly from the hardware. If not, it does the following:
1) Broadcast the frame.
2) After the frame reaches the destination, the destination sends back a response with its MAC address. (If no response is received, the frame will be dropped.)
3) Upon receipt of the response, the device adds an entry in the MAC address table, indicating from which port the frames destined for the MAC address should be sent.
4) Forward subsequent frames destined for the same MAC address directly from the hardware.
5) If the frame cannot reach the destination device, the switch is still unable to learn the MAC address table entries of the destination device and therefore broadcasts the frames destined to this device afterwards.
Figure 1-1 Forward frames using the MAC address table
Configuring MAC Address Table Management
This section covers these topics:
l Configuring MAC Address Aging Timer
l Configuring the Maximum Number of MAC Addresses an Ethernet Port or a Port Group Can Learn
Configuring MAC Address Aging Timer
The MAC address table on your device is available with an aging mechanism for dynamic entries to prevent its resources from being exhausted. Set the aging timer appropriately: a long aging interval may cause the MAC address table to retain outdated entries and fail to accommodate latest network changes; a short interval may result in removal of valid entries and hence unnecessary broadcasts which may affect device performance.
Follow these steps to configure the MAC address aging timer:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Configure the aging timer for dynamic MAC address entries |
mac-address timer { aging seconds | no-aging } |
Optional 300 seconds by default. |
The MAC address aging timer takes effect globally on dynamic MAC address entries (learned or administratively configured) only.
Configuring the Maximum Number of MAC Addresses an Ethernet Port or a Port Group Can Learn
To prevent a MAC address table from getting so large that it may degrade forwarding performance, you may restrict the number of MAC addresses that can be learned. One approach is to do this on a per-port or port group basis.
Follow these steps to configure the maximum number of MAC addresses that an Ethernet port or port group can learn:
To do… |
Use the command… |
Remarks |
|
Enter system view |
system-view |
— |
|
Enter Ethernet port or port group view |
Enter Ethernet port view |
interface interface-type interface-number |
Required Use either command to configure on a port or ports in a group. |
Enter port group view |
port-group { aggregation agg-id | manual port-group-name } |
||
Configure the maximum number of MAC addresses that can be learned on an Ethernet port or port group. |
mac-address max-mac-count count |
Required The maximum number of MAC addresses that can be learned on a port or port group is not configured by default. |
Displaying and Maintaining MAC Address Table Management
To do… |
Use the command… |
Remarks |
Display MAC address table information |
display mac-address blackhole [ vlan vlan-id ] [ count ] |
Available in any view |
display mac-address [ mac-address [ vlan vlan-id ] | [ dynamic | static ] [ interface interface-type interface-number ] [ vlan vlan-id ] [ count ] ] |
||
Display the aging timer for dynamic MAC address entries |
display mac-address aging-time |
MAC Address Table Management Configuration Example
Network requirements
Log onto your device from the Console port to configure MAC address table management. Set the aging timer to 500 seconds for dynamic MAC address entries.
Configuration procedure
# Set the aging timer for dynamic MAC address entries to 500 seconds.
[Sysname] mac-address timer aging 500