Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to configure back-end RS in lvs-dr mode

Shulou Source: shulou.com Published: 2022-05-31 16:12:45 10月02日 Update

This article introduces how to configure the back-end RS in lvs-dr mode. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

1. Configure vip on lo

Ip addr add 192.168.50.246/32 dev lo label lo:0

two。 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): responds to arp query requests for any local IP address on any network interface

1: only answer ARP query requests where the destination IP address is the local address of the visiting network interface

Arp_announce:

2: use the most appropriate local address for the query destination. In this mode, the source address of the IP packet is ignored and the local address that can communicate with that address is attempted. The first thing is to select the local address that contains the destination IP address in the outbound access subnet of all network interfaces. If no suitable address is found, the current sending network interface or other network interface that is likely to receive the ARP response will be selected for transmission, limiting the use of the local vip address as the priority network interface.

This is the end of how to configure the back-end RS in lvs-dr mode. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Address interface network mode configuration target query selection content more subnet help good appropriate appropriate interest buddy partner data article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Tech Info Apple Huawei Redmi