Contents
About This Document.....................................................................................................................ii
1 MAC Address Table Configuration...........................................................................................1
1.1 Introduction to the MAC Address..................................................................................................................................2
1.2 Principles........................................................................................................................................................................2
1.2.1 MAC Address Table....................................................................................................................................................2
1.2.2 Disabling MAC Address Learning and Limiting the Number of MAC Addresses....................................................4
1.2.3 Port Security................................................................................................................................................................5
1.2.4 MAC Address Flapping...............................................................................................................................................5
1.3 Application Environment...............................................................................................................................................7
1.4 Configuration Task Summary........................................................................................................................................7
1.5 Default Configuration.....................................................................................................................................................9
1.6 Configuring the MAC Address Table............................................................................................................................9
1.6.1 Configuring the MAC Address Table.........................................................................................................................9
1.6.1.1 Configuring a Static MAC Address Entry..............................................................................................................10
1.6.1.2 Configuring a Blackhole MAC Address Entry.......................................................................................................10
1.6.1.3 Setting the Aging Time of Dynamic MAC Address Entries..................................................................................11
1.6.1.4 Disabling MAC Address Learning.........................................................................................................................11
1.6.1.5 Limiting the Number of Learned MAC Addresses................................................................................................12
1.6.1.6 Checking the Configuration....................................................................................................................................13
1.6.2 Configuring Port Security..........................................................................................................................................14
1.6.2.1 Configuring the Secure MAC Function on an Interface.........................................................................................14
1.6.2.2 Configuring the Sticky MAC Function on an Interface.........................................................................................16
1.6.2.3 Checking the Configuration....................................................................................................................................17
1.6.3 Configuring MAC Address Flapping Detection........................................................................................................17
1.6.4 Configuring the Router to Discard Packets with an All-0 MAC Address.................................................................18
1.7 Configuration Examples...............................................................................................................................................19
1.7.1 Example for Configuring the MAC Address Table...................................................................................................19
1.7.2 Example for Configuring Port Security.....................................................................................................................21
1.7.3 Example for Configuring MAC Address Limiting Rules on Interfaces....................................................................23
1.7.4 Example for Configuring a MAC Address Learning Rule in a VLAN.....................................................................24
1.8 Common Configuration Errors.....................................................................................................................................26
1.8.1 Correct MAC Address Entry Cannot Be Learned on the Device..............................................................................26
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
Contents
Issue 01 (2014-11-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
v