【原创】Avi GSLB功能部署及测试指南-03-多场景验证

A/S场景下的全局服务配置

配置全局服务

#1 配置服务gweb02.gslb.vmwlab.net,SDDC1下的web服务为主,SDDC2下的web服务为备。

Graphical user interface, text, application Description automatically generated

Graphical user interface, application Description automatically generated

#2 配置SDDC1 的Pool ,优先级为20,并关联SDDC1本地VS为VS-DC1-Web02

Graphical user interface, application, Teams Description automatically generated

#3 配置SDDC2 的Pool ,优先级为10,并关联SDDC2本地VS为VS-DC2-Web02

Graphical user interface, application Description automatically generated

# 配置完成确认当前GLSB服务状态

Graphical user interface, application, website Description automatically generated

Graphical user interface, text, application, email Description automatically generated

Note:

如果DNS Site状态不正常,请检查路由设置,是否在SDDC1和SDDC2配置了到彼此DNS VS的路由。

SDDC1-通过SDDC1 承载GSLB DNS服务的SE有路由到SDDC2发布的GSLB服务

SDDC2-通过SDDC2 承载GSLB DNS服务的SE有路由到SDDC1发布的GSLB服务

测试验证 

#1 由于SDDC1下的Pool的优先级高于SDDC2下的Pool,通过浏览器访问gweb02.gslb.vmwlab.net,发现响应的是SDDC1下的GSLB-VM-WEB12的这台VM,清除缓存再次访问依然不变。

Graphical user interface, text Description automatically generated

Graphical user interface, text, application Description automatically generated

#2将SDDC1的本地VS Disable,再次访问gweb02.gslb.vmwlab.net后发现已经切换到SDDC2的VS(GSLB-VM-WEB22)

Graphical user interface, application Description automatically generated

Text Description automatically generated

A/A场景下的全局服务配置

添加第三方站点

#1 本测试用例,增加了第三方站点,通过一个台web服务器来模拟。

Graphical user interface, application Description automatically generated

Graphical user interface, text, application Description automatically generated

Graphical user interface, application Description automatically generated

配置全局服务

#1可以配置多个Application Name作为别名,为了测试效果,此处的GSLB Pool的Algorithm为Round Robin,TTL设置为1

Graphical user interface, application Description automatically generated

#2 配置GSLB的Pool ,其中有三个Member,一个Member为SDDC1的VS,另一个为SDDC2的VS。第三个选择第三方站点,其IP地址使用模拟第三方站点的web服务器IP。

Graphical user interface, application, Teams Description automatically generated

#3 查看服务状态

Graphical user interface, application Description automatically generated

Graphical user interface, application Description automatically generated

测试验证 

#1 由于设置了RoundRobin,通过浏览器访问gweb01.gslb.vmwlab.net,会以轮询的方式在SDDC1,SDDC2,以及第三方站点间轮询访问。

Graphical user interface, text, application Description automatically generated

Graphical user interface Description automatically generated

Shape Description automatically generated

基于地理位置的全局服务配置

准备Geo数据库

#1 下载免费GeoIP Database (需要注册账户)

https://www.maxmind.com/en/accounts/752280/geoip/downloads

Graphical user interface, application Description automatically generated

#2上传Geo Profile文件 ,选择格式为MaxMind City

Graphical user interface, text, application Description automatically generated

#3 创建Geo Profile

Graphical user interface, text, application, email Description automatically generated

Graphical user interface, text, application, email Description automatically generated

设置站点地理位置

#1 假设SDDC1位于北京,配置北京所在的经纬度

Graphical user interface, text, application Description automatically generated

Graphical user interface, application Description automatically generated

#2 假设SDDC2位于上海,配置上海所在的经纬度

Graphical user interface, text, application Description automatically generated

Graphical user interface, application Description automatically generated

配置全局服务

Graphical user interface, application Description automatically generated

A screenshot of a computer Description automatically generated with medium confidence

测试验证 

#1 通过Dig命令模拟原始地址进行测试,1.116.0.0/15 为北京地址段,反复使用如下命令,验证持续响应地址为SDDC1下的本地服务VIP

dig @192.168.70.200 +subnet=1.116.0.100 gweb03.gslb.vmwlab.net

Text Description automatically generated

#2 通过Dig命令模拟原始地址进行测试,8.27.67.52/32 为杭州地址段,反复使用如下命令,验证持续响应地址为SDDC2下的本地服务VIP

dig @192.168.70.200 +subnet=8.27.67.52/32 gweb03.gslb.vmwlab.net

Text Description automatically generated

#3 查看GSLB VS(DNS VS)的日志,发现已经识别其经纬度。 Graphical user interface, text, application, table Description automatically generated

Leave a Reply