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: