putyourheart 2020-03-04 00:17 采纳率: 50%
浏览 146
已结题

利用VM搭建LVS实验的问题

利用VM虚拟机,创建3台主机(一台均衡+两台Real Server),以完成LVS-NAT模式的搭建实验,但是由于比较菜,看了很多搭建的博客,对shell命令都大同小异,但是对于三个主机的先决条件的IP地址,不太明白。

想知道,

#安装httpd服务,创建httpd测试页面,启动httpd服务
[root@web1 ~]# yum -y install httpd
[root@web1 ~]# service httpd start
[root@web1 ~]# echo "RS1-web1 Allentuns.com" > /var/www/html/index.html
[root@web2 ~]# yum -y install httpd
[root@web2 ~]# echo "RS2-web2 Allentuns.com" > /var/www/html/index.html
[root@web2 ~]# service httpd start

#测试httpd服务是否OK! 
[root@web1 ~]# curl http://localhost
RS1-web1 Allentuns.com 
[root@web1 ~]# curl http://172.16.100.11
RS2-web2 Allentuns.com

中,
curl http://172.16.100.11
却提示:
curl: (7) Failed to connect to 192.168.119.129: 网络不可达
我想知道三台主机在VM中的

图片说明

都如何设置,谢谢。
另外如何查询(或设置)Director的DIP和VIP,Real Server的RIP。
明白涵义,但是实在不知如何设置,谢谢。

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 已结题 (查看结题原因) 4月5日