lvs-dr
lvs-dr实验 1、机器四台: LVS:192.168.41.133 后台web服务器:192.168.41.131 192.168.41.132 VIP:192.168.41.188 VIP需要配置在LVS和两台web上 路由器:172.16.41.151 192.168.41.151 测试机:172.16.41.152 网络是两个:web1是172.16.41.0/24 web2是192.168.41.0/24 所有机器安装网络相关工具:yum -y install tcpdump net-tools 2、测试机:172.16.41.152 路由必须指向172.16.41.151 因为此处无法完全模拟真实环境,因此直接设置默认路由,路由如下: [root@centos610 22:00 ~]# route add default gw 172.16.41.151;route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.16.41.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 0.0.0.0 172.16.41.151 0.0.0