Home Operation and Maintenance Safety How to configure the backend RS in lvs-dr mode

How to configure the backend RS in lvs-dr mode

May 15, 2023 am 09:04 AM
rs lvs-dr

1. Configure vip on lo
ip addr add 192.168.50.246/32 dev lo label lo:0

2. Suppress arp

echo 1 > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
echo 2 > ; /proc/sys/net/ipv4/conf/lo/arp_announce
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce

arp_ignore:
0 (default value): Respond to ARP query requests for any local IP address on any network interface
1: Only respond to ARP query requests whose target IP address is the local address of the visiting network interface

arp_announce:
2: Use the most appropriate local address for the query target. In this mode, the source address of this IP packet will be ignored and try to select a local address that can communicate with this address. The first is to select All network interfaces in the subnet that are in the outbound access subnet contain the local address of the destination IP address. If no suitable address is found, the current sending network interface or other network interfaces that are likely to receive the ARP response will be selected to send, restricting the use of local VIP addresses as the preferred network interface

The above is the detailed content of How to configure the backend RS in lvs-dr mode. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)