LVS Dr Mode disables ARP broadcast response settings for real backend servers

Source: Internet
Author: User

When deploying the LVS-DR mode, we need to disable ARP broadcast response to the VIP set for the backend RealServer, the backend RealServer may be Linux or Windows

(1) how to configure VIP for backend servers when RealServer is a Linux System

Real Server Configuration

IP configuration

1) IP Address: 10.0.0.11/16

GW: 10.0.0.139

 

VIP: 172.16.10.100

# Ifconfig lo: 0 172.16.10.100/32 broadcast 172.16.10.100 set the broadcast address to yourself.

 

Disable receiving broadcast response Configuration

# Vim/etc/sysctl. conf

Net. ipv4.conf. Lo. arp_ignore = 1

Net. ipv4.conf. Lo. arp_announce = 2

Net. ipv4.conf. All. arp_ignore = 1

Net. ipv4.conf. All. arp_announce = 2

# Sysctl-P

Or

# Yum install arptables_jf

# Arptables-A in-D 172.16.10.100-J Drop

 

Add route

# Route add-host 172.16.10.100 Dev lo: 0



(2) how to add a virtual IP address (VIP) of a Windows Server:

1. Disable or disable built-in Firewall

2. New loopback Nic

Method: start -- run -- hdwwiz

Or Win (the key between CTRL and ALT) + r key -- hdwwiz press Enter.

650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/> 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/37/C6/wKioL1OvqlmxzotmAAIszno7Ukg566.jpg "Title =" clipboard.png "alt =" wkiol1ovqlmxzotmaaiszno7ukg566.jpg "/>

Then

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/37/C7/wKiom1OvqrGhEGDIAAFDLmM4Tck228.jpg "Title =" clipboard.png "alt =" wkiom1ovqrghegdiaafdlmm4tck228.jpg "/>

650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

Next step


650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/> 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/37/C6/wKioL1OvqqWyNY6VAADvBN4elLY365.jpg "Title =" clipboard.png "alt =" wkiol1ovqqwyny6vaadvbn4elly365.jpg "/>

Next step


650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/> 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/37/C7/wKiom1OvqvShgjpqAADdf6CiYqM375.jpg "Title =" clipboard.png "alt =" wkiom1ovqvshgjpqaaddf6ciyqm375.jpg "/>

Next step

650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/> 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/37/C6/wKioL1Ovqubzm-QtAAF98TrOyYg907.jpg "Title =" clipboard.png "alt =" wKioL1Ovqubzm-QtAAF98TrOyYg907.jpg "/>

Next (wait a few seconds) select the option on the way

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/37/C7/wKiom1OvqzewVJHUAAIPfl070d4539.jpg "Title =" clipboard.png "alt =" wkiom1ovqzewvjhuaaipfl070d4539.jpg "/>

650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

Continue to the next step.

Open the network adapter and you will see an additional lo interface 650) This. width = 650; "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/37/C7/wKiom1Ovq1XBN7QUAAG5YXPDBN0414.jpg "Title =" clipboard.png "alt =" wkiom1ovq1xbn7quaag5yxpdbn0414.jpg "/>

3. Configure the IP address of the loop IP address as the VIP address, mask 255.255.255.255

4. Modify Nic Information

Modify it in the command line, start -- run -- cmd
Netsh interface IPv4 set interface "Local Connection" weakhostreceive = Enabled
Netsh interface IPv4 set interface "Local Connection" weakhostsend = Enabled
Netsh interface IPv4 set interface "local connection 2" weakhostreceive = Enabled
Netsh interface IPv4 set interface "local connection 2" weakhostsend = Enabled


This article from the "poor path-the beginning of the Heart" blog, please be sure to keep this source http://aixocm.blog.51cto.com/4208464/1432068

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.