26
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Disable MAC entry aging
timer refresh based on
destination MAC address.
mac-address destination-hit
disable
By default, MAC entry aging timer
refresh based on destination MAC
address is enabled.
Application example
Microsoft Network Load Balancing (NLB) is a load balancing technology for server clustering developed
on Windows Server.
Figure 5
NLB cluster
NLB supports load sharing and redundancy among servers within a cluster. To implement fast failover,
NLB requires that the switch forwards network traffic to all servers or specified servers in the cluster, and
each server filters out unexpected traffic.
In NLB unicast mode, when a server joins the cluster or a failover occurs, a packet with a virtual source
MAC address is sent within the cluster. The switch then adds the virtual MAC address to its MAC address
table, and packets destined for the server use the virtual MAC address (although not used by the server)
as their destination address. If the virtual MAC address never ages out, the switch forwards packets only
through the port associated with the virtual MAC address rather than all ports connected to the servers
within the cluster.
To address this issue, disable MAC entry aging timer refresh based on destination MAC address to age
out the virtual MAC address, so that the switch can forward packets to all servers within the cluster.
Configuring the MAC learning limit on ports
To prevent the MAC address table from getting too large, you can limit the number of MAC addresses
that a port can learn.
To configure the MAC learning limit on a Layer 2 Ethernet interface or all ports in a port group:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
NLB
cluster
Device