The application of three modes of NAT, DR and Tun of LVS in the configuration case

Source: Internet
Author: User

This article System Centos6.0

1, Nat mode;

NAT Model: Address conversion type, mainly to do address translation, similar to the iptables of Dnat type, it through multiple target address translation to achieve load balancing;

Features and requirements:

1, LVS (Director) above the need for dual network card: DIP (Intranet) and VIP (extranet)

2, the intranet of real server host IP must and dip in the same network, and require its gateway to point to the address of the dip

3, RIP are private IP address, only for the communication between the nodes

4, Director is located between client and real server, load processing all the inbound, outbound communication

5. Support Port Mapping

6, commonly used in large-scale application scenarios, but director easy to become the bottleneck of the entire architecture!

Related machine information;

(Director Server) LB1 eth0:192.168.244.132 (VIP) (Public network)

eth1:192.168.27.128 (DIP) (intranet)

Rs1 rs1 eth0:192.168.27.130 (RIP) (intranet) getway:192.168.27.128

RS2 rs2 eth0:192.168.27.131 (RIP) (intranet) getway:192.168.27.128

[Root@rs1 ~]# cat/etc/sysconfig/network-scripts/ifcfg-eth0
device= "eth0" bootproto=static IPADDR=
192.168.27.130
netmask=255.255.255.0
gateway=192.168.27.128
nm_controlled= "yes"
onboot= "yes"

The topology is as follows:

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.