- 论坛徽章:
- 0
|
/sbin/ipvsadm -a -t $VIP:80 -r $RIP1:80 -g
楼主,你把-g改为-m试试。
ipvsadm Argument Forwarding Method
-g LVS-DR
-i LVS-TUN
-m LVS-NAT
The LVS-NAT forwarding method has several basic properties:
The cluster nodes need to be on the same network (VLAN or subnet) as the Director.
The RIP addresses of the cluster nodes normally conform to RFC 1918[2] (that is, they are private, non-routable IP addresses used only for intracluster communication).
The Director intercepts all communication (network packets going in either direction) between the client computers and the real servers.
The cluster nodes use the Director's DIP as their default gateway for reply packets to the client computers.
The Director can remap network port numbers. That is, a request received on the Director's VIP on one port can be sent to a RIP inside the cluster on a different port.
Any type of operating system can be used on the nodes inside the cluster.
A single Director can become the bottleneck for the cluster.
----摘自linux企业集群 |
|