Description of arp_ignore and arp_announce parameters in LVS-DR Mode

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.