In LVS's DR mode, the IP address of the packet received by Real Server is VS. How to prevent Real Server from dropping the packet?

The

DR mode is sent to the back-end server by modifying the MAC hair of the packet, but if the back-end server receives the packet but finds that it does not accept the IP address, shouldn"t the packet be discarded? What is the means to get the back-end server to accept and process the package?

Aug.19,2021
You also need to configure on

rs. Vip, is generally configured on lo, and then set to disable arp response, so that rs will find this address on the local machine


when the request comes. In

DR mode, RS also needs to be bound to vip, which is generally bound to localhost. At the same time, you need to set arptables-related content and do not respond to arp requests from vip.
in this way, if a request from vip is received on RS, it will not be discarded

RS binding vip setting:

ifconfig lo:0 172.16.206.110 netmask 255.255.255.255 broadcast 172.16.206.110

ARP suppression configuration is as follows:

-sharp echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore   
-sharp echo "2" > /proc/sys/net/ipv4/conf/lo/arp_announce 
-sharp echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore       
-sharp echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce

reference link

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35842-2bf81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35842-2bf81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?