lvs-users,您好!
first of all, thanks for your answer, below table is LVS-DR work flow, why
realserver need public ip? at last step, realserver use local routing table and
find VIP, it generates reply use VIP, if realserver reply client use VIP, i
think it not use own public ip, why it need public ip?
packet source dest data
1. request from client CIP:3456 VIP:23 -
2. ipvsadm table:
director chooses server=RIP1, creates link-layer packet
MAC of DIP MAC of RIP1 IP datagram
source=CIP:3456,
dest=VIP:23,
data= -
3. realserver recovers IP datagram
CIP:3456 VIP:23 -
4. realserver looks up routing table, finds VIP is local,
processes request locally, generates reply
VIP:23 CIP:3456 "login:"
5. packet leaves realserver via its default gw, not via DIP.
致
礼!
凤翼天翔
kingnetwork@xxxxxxx
2005-11-29
|