The mac-address multiport interface command configures MAC address entries mapping multiple outbound interfaces in the system view.
The undo mac-address multiport interface command deletes the MAC address entries mapping multiple outbound interfaces in the system view.
By default, no MAC address entries on the device map multiple outbound interfaces.
mac-address multiport mac-address interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> vlan vlan-id
undo mac-address multiport mac-address interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> vlan vlan-id
undo mac-address multiport { all | [ mac-address ] vlan vlan-id }
Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
Parameter | Description | Value |
---|---|---|
mac-address |
Specifies a MAC address. |
The value is in the H-H-H format. An H contains 1 to 4 hexadecimal digits. |
interface-type interface-number1 [ to interface-type interface-number2 ] |
Specifies the interface type and number.
|
- |
vlan vlan-id |
Specifies a VLAN that interfaces belong to. |
The value is an integer that ranges from 1 to 4094. |
all |
Specifies all MAC address entries mapping multiple outbound interfaces. |
- |
Usage Scenario
The servers in an NLB server cluster use the same IP address (cluster IP address) and MAC address (cluster MAC address). When a device functioning as the access gateway connects to the NLB server cluster, the device needs to send the packet destined to the cluster IP address to each server in the cluster. In this case, run the mac-address multiport interface or mac-address multiport command to configure MAC address entries mapping multiple outbound interfaces, and run the arp static command to configure short static ARP entries. By configuring short static ARP entries, you can determine the MAC address and VLAN mapping the cluster IP address. Query the MAC address table based on the MAC address and VLAN to determine multiple outbound interfaces, and then connect the interfaces to the NLB server cluster.
Precautions
The VLAN specified in the mac-address multiport interface command cannot be a MAC VLAN, super VLAN, leased line VLAN, or control VLAN of Smart Ethernet Protection (SEP) and Rapid Ring Protection Protocol (RRPP).
On the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S, when the outbound interfaces are Eth-Trunk interfaces, you must run the unknown-unicast load-balance enhanced command to configure the load balancing mode for BUM traffic on the interfaces. Otherwise, the configuration is invalid.
On the S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720S-SI, and S6720-SI, when the outbound interfaces are Eth-Trunk interfaces, you must run the load-balance command to configure load balancing based on IP addresses. Otherwise, the configuration is invalid.
<HUAWEI> system-view [HUAWEI] mac-address multiport 02bf-2100-2200 interface gigabitethernet 0/0/1 to gigabitethernet 0/0/4 vlan 100
<HUAWEI> system-view [HUAWEI] unknown-unicast load-balance enhanced [HUAWEI] mac-address multiport 02bf-2100-2200 interface eth-trunk 4 to eth-trunk 6 vlan 10