When building the Dr mode of The LVS cluster, we need to modify the arp_ignore and arp_announce parameters of the Real Server. The main purpose of modifying these two parameters is to ensure that the request is sent to the VIP on ctor when the client sends a request to the VIP, instead of the VIP on the Real Server. The following describes the meanings of different values of these two parameters.
Arp_ignore Parameters:
When the target address of the request is set to a local IP address, the ARP query mode varies. The default value is 8. We only use 2 values.
When arp_ignore is 0, it indicates that no matter which Nic receives the ARP query request, as long as the local Nic has this MAC address, it will respond.
When arp_ignore is set to 1, it indicates that only the requested MAC address is responded by its Nic. For example, a server has two NICs, one of which receives ARP requests, but the requested Mac is another Nic of the local machine. Then this NIC will not respond.
Arp_announce parameters:
Sets the level when the NIC declares its IP-MAC to the outside. There are three values.
When arp_announce is 0, it indicates that no matter which Nic receives the ARP request, as long as the local machine has a requested Mac, it will respond.
When arp_announce is set to 1, it means to avoid responding to ARP requests where Mac is not the network card. If a host has multiple NICs, one of which receives the ARP request and finds that the requested Mac is from another Nic on the host, at this time, the NIC that receives the ARP request tries to avoid response.
When arp_announce is 2, it indicates that the most suitable Nic is always used for response. One host has multiple NICs, one of which receives the ARP request and finds that the requested Mac is from another Nic of the local host, at this time, the NIC that receives the ARP request will not respond. It will only respond to the request when it finds that the requested Mac is its own.
Description of arp_ignore and arp_announce parameters in LVS-DR Mode