Configuration example, Deleting a policy that has been applied to hosts – Brocade Virtual ADX Global Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 106

Advertising
background image

96

Brocade Virtual ADX Global Server Load Balancing Guide

53-1003245-01

Host-level policies for site selection

1

Deleting a Policy That Has Been Applied to Hosts

To remove references to, and delete a policy from all hosts to which the policy has been applied,
enter the following command on the GSLB Brocade Virtual ADX.

GSLB-Virtual ADX#clear gslb host-policy abc

Syntax: clear gslb host-policy policy-name

To remove references to hosts and delete all host-level GSLB policies, enter the following command
on the GSLB Brocade Virtual ADX.

GSLB-Virtual ADX#clear gslb host-policy

Syntax: clear gslb host-policy

Configuration example

The example configures a host-level GSLB policy. In this example, the GSLB Brocade Virtual ADX is
providing GSLB for the following three domains:

www.example12.com (IP addresses: 10.1.1.101 (Active), 10.1.1.23 (Down), 10.1.1.54 (Down)}

ftp.example12.com (IP addresses: 10.1.1.78 (Active), 10.1.1.76 (Down)}

ftp.example2.com (IP addresses: 10.1.1.101 (Active), 10.1.1.23 (Active), 10.1.1.63 (Down)}

1. Define a host-level policy named "test" as follows.

GSLB-Virtual ADX(config)#gslb-host-policy test

GSLB-Virtual ADX(config-gslb-host-policy-test)#dns active-only

GSLB-Virtual ADX(config-gslb-host-policy-test)#metric-order set health-check

GSLB-Virtual ADX(config-gslb-host-policy-test)#end

2. Configure the metric order for the GSLB policy.

GSLB-Virtual ADX#conf t

GSLB-Virtual ADX(config)#gslb policy

GSLB-Virtual ADX(config-gslb-policy)#metric-order set health-check

GSLB-Virtual ADX(config-gslb-policy)#end

3. Apply the host-level policy to host “www” for zone example12.com and host “ftp” for zone

example2.com.

GSLB-Virtual ADX#con t

GSLB-Virtual ADX(config)#gslb dns zone example12.com

GSLB-Virtual ADX(config-gslb-dns-example12.com)#host-info www http

GSLB-Virtual ADX(config-gslb-dns-example12.com)#host-info www gslb-policy test

GSLB-Virtual ADX(config-gslb-dns-example12.com)#exit

GSLB-Virtual ADX(config)#gslb dns zone example2.com

GSLB-Virtual ADX(config-gslb-dns-example2.com)#host-info ftp ftp

GSLB-Virtual ADX(config-gslb-dns-example2.com)#host-info ftp gslb-policy test

In the above example, with host policy “test” applied to host “www” for example12.com, when the
Brocade Virtual ADX receives client queries for www.example12.com, the GSLB Brocade Virtual
ADX returns only the healthy IP addresses with the best IP address at the top of the list (i.e.,
10.1.1.101 only).

Since the global GSLB policy is in effect for host "ftp" for example12.com, when the Brocade Virtual
ADX receives client queries for ftp.example12.com, the GSLB Brocade Virtual ADX will return all IP
addresses for this domain with the best IP address at the top of the list (i.e., it returns 10.1.1.78
and 10.1.1.76).

Advertising