Configuring Multi-Interface ARP
After you configure multi-interface ARP, a device forwards packets destined for an NLB group to all servers in the group through interfaces connected to the servers.
Pre-configuration Tasks
- Creating VLANs and adding interfaces to these VLANs
The VLAN cannot be a super-VLAN, sub-VLAN, or VLAN through which protocol packets are transparently transmitted.
Context
All servers in an NLB group share a virtual IP address and a virtual MAC address. When the NLB group works in unicast mode, the virtual MAC address is a unicast MAC address. When the NLB group works in multicast mode, the virtual MAC address is a multicast MAC address. In both modes, when a device directly connects to the NLB group and functions as the access gateway, the device needs to forward packets destined for the virtual IP address to all servers in the NLB group, and each server determines how to process the packets. You can configure multi-interface ARP on the device to allow it to forward packets destined for the virtual IP address to all servers in the NLB group.
Procedure
- Run:
system-view
The system view is displayed.
- Use the following methods to configure a multi-interface MAC address entry.
Configure a multi-interface MAC address entry in the system view.
Run:
mac-address multiport mac-address interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> vlan vlan-id
A multi-interface MAC address entry is configured.
By default, no multi-interface MAC address entry is configured on a device.
You can set mac-address to a unicast or multicast MAC address, excluding 0000-0000-0000 or FFFF-FFFF-FFFF.
The value of interface-number2 must be greater than that of interface-number1, and the two values determine an interface range.
Configure a multi-interface MAC address entry in the interface view.
Run:
interface interface-type interface-number
The interface view is displayed.
Run:
mac-address multiport mac-address vlan vlan-id
A multi-interface MAC address entry is configured.
By default, no multi-interface MAC address entry is configured.
You can set mac-address to a unicast or multicast MAC address, excluding 0000-0000-0000 or FFFF-FFFF-FFFF.
Run:
quit
Return to the system view.
Repeat the preceding steps on multiple interfaces to respectively configure a MAC address to match multiple outbound interfaces in the MAC address table.
- Run:
arp static ip-address mac-address [ vpn-instance vpn-instance-name ]
A short static ARP entry is configured.
By default, the ARP mapping table is empty and address mappings are obtained using dynamic ARP.
You must set mac-address to the same as the MAC address in the multi-interface MAC address entry.
- Run:
commit
The configuration is committed.
Checking the Configuration
After the configurations are complete, run the following commands in any view to check the multi-interface ARP configurations.
- Run the display mac-address multiport [ mac-address [ vlan vlan-id ] | total-number | vlan vlan-id [ total-number ] ] command to check the multi-interface MAC address table.
- Run the display arp [ network network-address [ network-mask | mask-length ] ] static command to check the static ARP mapping table.