< Home

mac-address multiport

Function

The mac-address multiport command configures MAC address entries mapping multiple outbound interfaces in the interface view.

The undo mac-address multiport command deletes the MAC address entries mapping multiple outbound interfaces in the interface view.

By default, no MAC address entries on the device map multiple outbound interfaces.

Format

mac-address multiport mac-address vlan vlan-id

undo mac-address multiport 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.

Parameters

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.

vlan vlan-id

Specifies a VLAN that interfaces belong to.

The value is an integer that ranges from 1 to 4094.

Views

GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

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 or mac-address multiport interface 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 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.

Example

# Configure entries of the destination MAC address 03bf-2100-2200 mapping multiple outbound interfaces in VLAN 100 on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] mac-address multiport 03bf-2100-2200 vlan 100
# Configure entries of the destination MAC address 03bf-2100-2200 mapping multiple outbound interfaces in VLAN 100 on Eth-Trunk 6.
<HUAWEI> system-view
[HUAWEI] unknown-unicast load-balance enhanced
[HUAWEI] interface eth-trunk 6
[HUAWEI-Eth-Trunk6] mac-address multiport 03bf-2100-2200 vlan 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >