No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
NLB Server Cluster Association Configuration Commands

NLB Server Cluster Association Configuration Commands

NOTE:

The CE6810LI does not support NLB server cluster association.

display mac-address multiport

Function

The display mac-address multiport command displays the mapping between a unicast or multicast MAC address and multiple outbound interfaces.

NOTE:

The CE6810LI does not support this command.

Format

display mac-address multiport [ mac-address [ vlan vlan-id ] | total-number | vlan vlan-id [ total-number ] ]

Parameters

Parameter Description Value
mac-address

Displays the mapping between the specified unicast or multicast MAC address and multiple outbound interfaces.

If this parameter is not specified, the mappings between all unicast or multicast MAC addresses and multiple outbound interfaces are displayed.

The value is in the format of H-H-H. Each H is a 4-digit hexadecimal integer, such as 00e0. If an H contains less than 4 bits, 0s are padded ahead. For example, if e0 is entered, 00e0 is displayed.
vlan vlan-id

Displays the mapping between unicast or multicast MAC addresses and multiple outbound interfaces in the specified VLAN.

If this parameter is not specified, the mappings between unicast or multicast MAC addresses and multiple outbound interfaces in all VLANs are displayed.

The value is an integer ranging from 1 to 4094.
total-number Displays the number of MAC addresses that are bound to multiple outbound interfaces. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If a unicast or multicast MAC address has been bound to multiple outbound interfaces using the mac-address multiport command, you can run the display mac-address multiport command to check the mapping between the unicast or multicast MAC address and multiple outbound interfaces. The command output helps you check whether the configuration is correct and locate the fault if the configuration is incorrect.

Example

# Display the mappings between all unicast or multicast MAC addresses and multiple outbound interfaces.

<HUAWEI> display mac-address multiport
Total Group(s) : 1
--------------------------------------------------------------------
MAC Address         VLAN    Interface Count   Out Interface
--------------------------------------------------------------------
0002-0002-0002        20                  2   10GE1/0/1
                                              10GE1/0/1
--------------------------------------------------------------------

# Display the mapping between the specified unicast or multicast MAC address and multiple outbound interfaces.

<HUAWEI> display mac-address multiport 1-1-1
Total Group(s) : 1
--------------------------------------------------------------------
MAC Address         VLAN    Interface Count   Out Interface
--------------------------------------------------------------------
0001-0001-0001        10                  2   10GE1/0/1
                                              10GE1/0/2
 --------------------------------------------------------------------

# Display the mapping between unicast or multicast MAC addresses and multiple outbound interfaces in the specified VLAN.

<HUAWEI> display mac-address multiport vlan 10
Total Group(s) : 1
--------------------------------------------------------------------
MAC Address         VLAN    Interface Count   Out Interface
--------------------------------------------------------------------
0001-0001-0001        10                  2   10GE1/0/1
                                              10GE1/0/2
 --------------------------------------------------------------------

# Display the number of MAC addresses that are bound to multiple outbound interfaces.

<HUAWEI> display mac-address multiport total-number
Total number of mac-address : 2
Table 14-63  Description of the display mac-address multiport command output

Item

Description

MAC Address

Unicast or multicast MAC address

VLAN

VLAN of the outbound interface that is bound to the unicast or multicast MAC address

Interface Count

Number of outbound interface that is bound to the unicast or multicast MAC address

Out Interface

Outbound interface that is bound to the unicast or multicast MAC address

Total Group(s)

Number of MAC addresses that are bound to multiple outbound interfaces

Total number of mac-address

Number of MAC addresses that are bound to multiple outbound interfaces

mac-address multiport

Function

The mac-address multiport command binds a unicast or multicast MAC address to multiple outbound interfaces.

The undo mac-address multiport command unbinds a unicast or multicast MAC address from multiple outbound interfaces.

By default, a MAC address is bound to only one outbound interface.

NOTE:

The CE6810LI does not support this command.

Format

# Bind a unicast or multicast MAC address to multiple outbound interfaces in batches in the system view.

mac-address multiport mac-address interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> vlan vlan-id

# Unbind a unicast or multicast MAC address from multiple outbound interfaces in batches in the system view.

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 }

# Bind a unicast or multicast MAC address to an outbound interface in the interface view.

mac-address multiport mac-address vlan vlan-id

NOTE:

To bind a unicast or multicast MAC address to multiple outbound interfaces, run this command on multiple interfaces.

# Unbind a unicast or multicast MAC address from an outbound interface in the interface view.

undo mac-address multiport mac-address vlan vlan-id

Parameters

Parameter Description Value
mac-address

Specifies the unicast or multicast MAC address.

In an NLB cluster, mac-address indicates the NLB cluster MAC address.

The value is in the format of H-H-H. Each H is a 4-digit hexadecimal integer, such as 00e0. If an H contains less than 4 bits, 0s are padded ahead. For example, if e0 is entered, 00e0 is displayed.

mac-address cannot be all 0s or 1s.

vlan vlan-id

Specifies the ID of a VLAN to which the specified interface belongs.

The VLAN cannot be a super-VLAN, sub-VLAN, or a VLAN in which protocol tunneling is configured.

The value is an integer ranging from 1 to 4090.
interface-type interface-number1 [ to interface-type interface-number2 ]
Specifies an outbound interface that is bound to the unicast or multicast MAC address.
  • interface-type specifies the type of an interface.
  • interface-number1 specifies the number of the start outbound interface that is bound to the unicast or multicast MAC address.
  • interface-number2 specifies the number of the end outbound interface that is bound to the unicast or multicast MAC address. interface-number1 and interface-number2 specifies an interface range. The value of interface-number2 must be greater than that of interface-number1.
  • If the interface-type interface-number1 [ to interface-type interface-number2 ] parameters are run more than once, all configurations take effect.
-
all Displays the mappings between all unicast or multicast MAC addresses and multiple outbound interfaces. -

Views

System view, GE interface view, Eth-Trunk interface view, or interface group view

Default Level

2: Configuration level

Usage Guidelines

Network Load Balancing (NLB) is developed by Microsoft and used on Windows servers. NLB supports load balancing and redundancy among servers in an NLB cluster. If a server in the cluster fails, data can be fast switched. To ensure that data can be fast switched, a gateway needs to send service data to all servers in the NLB cluster. After receiving the service data, each server performs an NLB calculation to determine whether to process the service data.

On the network shown in Figure 14-3, each server in the NLB cluster has one unique IP address and MAC address. In addition, all the servers share one virtual IP address (NLB cluster IP address) and one MAC address (NLB cluster MAC address). TOR1 functions as a gateway and is connected to the NLB cluster. It is required that the service data that TOR1 sends to the NLB cluster IP address reach each server in the NLB cluster.

Figure 14-3  NLB networking

TOR1 sends an ARP packet to servers in the NLB cluster to request the NLB cluster MAC address. After receiving such a packet, each server replies with a packet carrying the source IP address (NLB cluster IP address) and source MAC address (NLB cluster MAC address).

  • If the NLB cluster works in unicast mode, the NLB cluster IP address is bound to only one outbound interface in the ARP mapping table of TOR1. As a result, TOR1 can send service data to only one server in the NLB cluster.
  • If the NLB cluster works in multicast mode, TOR1 does not learn the MAC addresses of the servers after receiving the ARP reply packets because the source MAC address is a multicast MAC address. If the NLB cluster IP address is bound to the NLB cluster MAC address in a static ARP entry, only one outbound interface can be specified. As a result, TOR1 can send service data to only one server in the NLB cluster.

To ensure that TOR1 can send service data to each server in the NLB cluster, run the mac-address multiport command to bind the NLB cluster MAC address to multiple outbound interfaces that are connected to servers in the NLB cluster and run the arp static command to configure a static ARP entry by binding the NLB cluster IP address to the NLB cluster MAC address. After receiving service data destined for the NLB cluster IP address, TOR1 searches the ARP mapping table for the NLB cluster MAC address and VLAN of the NLB cluster, checks the outbound interfaces bound to the NLB cluster MAC address, and sends service data from these outbound interfaces. Therefore, each server in the NLB cluster can receive the service data.

Prerequisites

A VLAN has been created, and the outbound interfaces have been added to the VLAN.

Precautions

An NLB cluster can work in either of the following modes:

  • Unicast mode, in which the virtual MAC address is a unicast address beginning with 02BF
  • Multicast mode, in which the virtual MAC address is a multicast address beginning with 03BF

Example

# Bind a unicast or multicast MAC address to multiple outbound interfaces in batches.

<HUAWEI> system-view
[~HUAWEI] mac-address multiport 1-1-1 interface 10ge 1/0/1 to 10ge 1/0/2 vlan 10

# Bind a unicast or multicast MAC address to one outbound interface.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] mac-address multiport 1-1-1 vlan 10
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52041

Downloads: 339

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next