Route Health Injection

Interface Level

The following commands configure an IP sub-net address that is in the same sub-net as the web site’s IP address. Enter these commands on the interface that connects the routing switch to the real server or to the SLB that is load balancing for the IP address.

The ip dont_advertise command configures the routing switch to block advertisement of the host route for the interface. If you do not block the network route, the routing switch will still advertise a network route to the network containing the web site even if the web site itself is unavailable. After you enter the ip dont_advertise command, the routing switch advertises only a host route to the IP address. Thus, if the web site fails the HTTP health check, the routing switch removes the static host route for the web site’s IP address and also does not advertise a network route for the network containing the IP address.

Syntax: ip address <ip-addr> <ip-mask> [secondary]

Or

Syntax: ip address <ip-addr>/<mask-bits>

Syntax: ip dont_advertise <ip-addr> <ip-mask>

Or

Syntax: ip dont_advertise <ip-addr>/<mask-bits>

Configuring the HTTP Health Check on the Routing Switch

To configure a routing switch to perform the HTTP health check for a web site and to manage a static host route for the IP address, do the following:

Identify the web site’s IP address on the routing switch.

Enable the HTTP keepalive (health check).

Optionally modify the health-check keepalive interval and retries.

Optionally modify site-specific health check parameters (the URL requested by the health check and the HTTP status codes that the routing switch will accept as a normal response).

Configure the port that connects the routing switch to the HTTP application (SLB or real server) to not advertise the network route for the IP sub-net the SLB or real server and the port are on.

For example, to configure routing switches for the configuration shown in Figure 17.1, enter the following CLI commands.

CLI Commands for 6308M-SX R1

To configure the health check on 6308M-SX R1, enter the following commands:

HP6308-R1(config) server real S1 209.157.22.249

HP6308-R1(config-rs-S1) port http keepalive

HP6308-R1(config-rs-S1) interface ethernet 6

HP6308-R1(config-if-6) ip address 209.157.22.1/24

HP6308-R1(config-if-6) ip dont_advertise 209.157.22.1/24

HP6308-R1(config-if-6) write memory

Syntax: server real <name> <ip-addr>

Syntax: port http keepalive

Syntax: ip dont_advertise <ip-addr> <ip-mask>

Or

Syntax: ip dont_advertise <ip-addr>/<mask-bits>

17 - 5