Lvs DR mode configuration

Source: Internet
Author: User

Lvs DR mode configuration

#! /Bin/bash # lvs setting # DIP # eth0: 192.168.233.145 # VIP # eth0: 0 192.168.233.250/32 # RIP1: 192.168.233.146 # RIP2: 192.168.233.147 # VIP #192.168.233.250/32 case $1 inrip) # VIP: iptables-Fsetenforce 0 echo 1>/proc/sys/net/ipv4/conf/lo/arp_ignoreecho 1>/proc/sys/net/ipv4/conf/all/arp_ignoreecho 2>/ proc/sys/net/ipv4/conf/lo/arp_announceecho 2>/proc/sys/net/ipv4/conf/all/arp_announceifconfig lo: 0 192.168.233.250 netmask 255.255.255.255.255 broadcast 192.168.233.250 uproute add-host 192.168.233.250 dev lo: 0; dip) # DIP: iptables-Fsetenforce 0 echo 1>/proc/sys/net/ipv4/ip_forwardifconfig eth0: 0 192.168.233.250 netmask 255.255.255.255 broadcast 192.168.233.250 up1_sadm-c1_sadm-A-t 192.168.23250: 80-s wlc1_sadm-a-t 192.168.233.250: 80-r 192.168.233.146-g1_sadm-a-t 192.168.233.250: 80-r 192.168.233.147-g1_sadm-Ln; esac # End #

 

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.