
| 设备名 | 主机MAC | IP |
|---|---|---|
| Client | 00:0c:29:d5:7f:43 | CIP:172.25.254.101 |
| Router | eth0: 00:0c:29:c1:d3:ac | VIP:172.25.254.101 |
| Router | eth1: 00:0c:29:c1:d3:b6 | DIP:192.168.0.100 |
| VSNode | 00:0c:29:a0:15:38 | DIP:192.168.0.50 ;VIP:192.168.0.50 |
| RS1 | 00:0c:29:99:91:03 | RIP:192.168.0.20 |
| RS2 | 00:0c:29:64:c4:7b | RIP:192.168.0.30 |
流量流向:
-
Client访问192.168.0.200,没直连,找网关172.25.254.100。
-
数据包到Router,找到192.168.0.200的网关192.168.0.100,进行LVS中的DR模式,所以在wireshark中看到的是192.168.0.100。
-
数据包到VSNode,找到DIP,通过DIP找到RIP。
-
数据包到RS,通过路由表中的网关回到Router中。
-
通过Router回到Client



[root@RS1 ~]# arp
Address HWtype HWaddress Flags Mask Iface
192.168.0.50 ether 00:0c:29:a0:15:38 C eth0
_gateway ether 00:0c:29:c1:d3:b6 C eth0
192.168.0.1 ether 00:50:56:c0:00:01 C eth0