LVS负载均衡NAT模式(一)
拓扑图:

推荐步骤:
-
网站服务器LVS服务器存储和客户端配置ip地址
-
在Centos04配置NFS共享存储两台web服务器连接到共享存储服务器
-
在Centos01配置LVS的NAT模式指定LVS服务器的ip地址为192.168.200.10,将两台web服务器添加到负载均衡器服务池中,在Centos01搭建DNS客户端使用www.bdqn.com访问LVS
一.网站服务器LVS服务器储存和客户端配置ip地址
1.Cenos01的LVS服务器配置ip地址开启路由器功能
2.配置第一台apache网站服务器配置IP地址和服务






3.配置第二台Apche网站服务器ip地址和服务





4.配置共享服务器ip地址和安装NFS服务



5.客户端配置ip地址


二.在Centos04配置nfs共享储存两台web服务器链接到共享储存服务器
1.创建存储共享目录设置网站首页

2.配置nfs服务器运行两台网站服务器读写共享存储数据

3.设置第一台apache网站服务器连接共享储存




4.设置第二台aoache网站服务器链接共享存储




三.Centos01配置lvs的nat模式指定lvs服务器的IP地址为192.168.200.10,将两台web服务器添加到负载均衡服务器池中,在Centos01搭建dns客户端使用www.bdqn.com访问lvs
1.安装ipvsadmin



2.配置ipvsadmin负载均衡服务器


3.安装配置dns服务器







4.配置客户端访问lvs验证



