< Home

Example for Connecting a Device to an NLB Cluster Working in Multicast Mode (Using Multi-Interface ARP)

Networking Requirements

In Figure 1, the Switch connects to three NLB servers respectively through GE0/0/1, GE0/0/2, and GE0/0/3 in VLAN 10.

Figure 1 Networking diagram for configuring multi-interface ARP

The NLB cluster works in multicast mode. Each server in the NLB cluster has an IP address and a MAC address. All servers in the cluster share the cluster IP address (10.128.246.252/24) and cluster MAC address (03bf-0a80-f6fc). There are reachable routes between the Switch and Client.

The customer requires that the Switch send the packet destined for the cluster IP address to each server in the NLB cluster.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure IP addresses for interfaces and add the interfaces to VLANs.
  2. Configure a MAC address entry mapping multiple outbound interfaces and configure a static ARP entry so that the Switch can send the packets destined for the cluster IP address to the three servers in the NLB cluster.

Procedure

  1. Create VLANs and add interfaces to the VLANs.

    # Create a VLAN on the Switch and add the interfaces to the VLAN.
    <HUAWEI> system-view
    [HUAWEI] sysname Switch
    [Switch] interface gigabitethernet 0/0/1
    [Switch-GigabitEthernet0/0/1] port link-type access
    [Switch-GigabitEthernet0/0/1] quit
    [Switch] interface gigabitethernet 0/0/2
    [Switch-GigabitEthernet0/0/2] port link-type access
    [Switch-GigabitEthernet0/0/2] quit
    [Switch] interface gigabitethernet 0/0/3
    [Switch-GigabitEthernet0/0/3] port link-type access
    [Switch-GigabitEthernet0/0/3] quit
    [Switch] vlan 10
    [Switch-vlan10] port gigabitethernet 0/0/1 to 0/0/3
    [Switch-vlan10] quit

  2. # Create a VLANIF interface on the Switch and assign an IP address to the VLANIF interface.

    [Switch] interface vlanif 10
    [Switch-Vlanif10] ip address 10.128.246.251 24
    [Switch-Vlanif10] quit

  3. Configure a MAC address entry mapping multiple outbound interfaces on the Switch.

    [Switch] mac-address multiport 03bf-0a80-f6fc interface gigabitethernet 0/0/1 to gigabitethernet 0/0/3 vlan 10

  4. Configure static ARP entries on the Switch.

    [Switch] arp static 10.128.246.252 03bf-0a80-f6fc
    [Switch] quit

  5. Verify the configuration.

    # Run the display mac-address multiport vlan 10 command on the Switch to check the configured MAC address entry mapping multiple outbound interfaces.

    <Switch> display mac-address multiport vlan 10
    --------------------------------------------------------------------------------
    MAC Address       VLANID    Out-Interface               Status                                                                      
    --------------------------------------------------------------------------------
    03bf-0a80-f6fc    10        GigabitEthernet0/0/1        Active                                
                                GigabitEthernet0/0/2        Active                                
                                GigabitEthernet0/0/3        Active                                
                                                3 port(s)                           
    --------------------------------------------------------------------------------
     Total Group(s) : 1 
    

    # Run the display arp static command on the Switch to check static ARP entries.

    <Switch> display arp static
    IP ADDRESS      MAC ADDRESS     EXPIRE(M) TYPE        INTERFACE   VPN-INSTANCE  
                                              VLAN/CEVLAN(SIP/DIP)                
    ------------------------------------------------------------------------------
    10.128.246.252  03bf-0a80-f6fc            S--         Multi-port:3            
    ------------------------------------------------------------------------------
    Total:1        Dynamic:0      Static:1     Interface:0 
    

Configuration Files

Switch configuration file

#
sysname Switch
#
vlan batch 10 
#
interface Vlanif10
 ip address 10.128.246.251 255.255.255.0
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
 mac-address multiport 03bf-0a80-f6fc vlan 10 
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 10
 mac-address multiport 03bf-0a80-f6fc vlan 10
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 10
 mac-address multiport 03bf-0a80-f6fc vlan 10
#
arp static 10.128.246.252 03bf-0a80-f6fc
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >