3com 8807 Guia Do Utilizador
118
C
HAPTER
16: MAC A
DDRESS
T
ABLE
M
ANAGEMENT
Configuring Maximum
MAC Address Number
Learned by Ethernet
Port and Forwarding
Option Example
Network requirements
■
Set the maximum number of MAC addresses learned by Ethernet port
Ethernet3/1/3 to 600
Ethernet3/1/3 to 600
■
Set the switch to drop the packets whose source MAC addresses are not
learned by the port when the number of MAC addresses learned exceeds 600
learned by the port when the number of MAC addresses learned exceeds 600
Configuration procedure
1 Enter system view.
<SW8800> system-view
[SW8800]
2 Enter Ethernet port view.
[SW8800] interface ethernet 3/1/3
3 Set the maximum number of MAC addresses learned by Ethernet port
Ethernet3/1/3 to 600.
[3Com-Ethernet3/1/3] mac-address max-mac-count 600
4 Set the switch to drop the packets whose source MAC addresses are not learned
by the port when the number of MAC addresses learned exceeds 600.
[3Com-Ethernet3/1/3] undo mac-address max-mac-count enable forward
Configuring Max
Number of MAC
Addresses that can be
Learned in a VLAN
Number of MAC
Addresses that can be
Learned in a VLAN
The MAC address learning function enables Switch 8800 Family series switches to
obtain the MAC addresses of the network devices in network segments connected
to a VLAN. However, if the MAC address table in a VLAN is too big in size, the
forwarding performances of the switch will be decreased.
obtain the MAC addresses of the network devices in network segments connected
to a VLAN. However, if the MAC address table in a VLAN is too big in size, the
forwarding performances of the switch will be decreased.
After setting the maximum number of MAC addresses that can be learned in a
VLAN, you can control the number of MAC address entries maintained by the
switch. With the maximum number of MAC addresses set, the switch stops
learning new MAC addresses when the set maximum number of MAC addresses
is reached.
VLAN, you can control the number of MAC address entries maintained by the
switch. With the maximum number of MAC addresses set, the switch stops
learning new MAC addresses when the set maximum number of MAC addresses
is reached.
n
If you execute the mac-address max-mac-count max-mac-num command with
the max-mac-num argument specifying a number smaller than the current
number of MAC addresses learned, the switch does remove the existing MAC
address entries, neither does it learn new MAC addresses. The switch resumes
MAC address learning when the number of MAC addresses learned is less than
the value of the max-mac-num argument.
the max-mac-num argument specifying a number smaller than the current
number of MAC addresses learned, the switch does remove the existing MAC
address entries, neither does it learn new MAC addresses. The switch resumes
MAC address learning when the number of MAC addresses learned is less than
the value of the max-mac-num argument.
Table 101 Configure the maximum number of MAC addresses that can be learned in a
VLAN
VLAN
Operation
Command
Description
Enter system view
system-view
-
Enter VLAN view
vlan vlan-id
-
Set the maximum number of
MAC addresses that can be
learned in a VLAN
MAC addresses that can be
learned in a VLAN
mac-address
max-mac-count
max-mac-num
max-mac-count
max-mac-num
By default, the number of
MAC addresses in a VLAN is
not limited.
MAC addresses in a VLAN is
not limited.