Foundry Networks Switch and Router Installation And Configuration Manual page 991

Switch and router
Table of Contents

Advertisement

Route Health Injection
CLI Commands for NetIron N1
To configure the health check on NetIron N1, enter the following commands:
NetIron(config) server real S1 209.157.22.249
NetIron(config-rs-S1) port http keepalive
NetIron(config-rs-S1) interface ethernet 6
NetIron(config-if-6) ip address 209.157.22.1/24
NetIron(config-if-6) ip dont-advertise 209.157.22.1/24
NetIron(config-if-6) write memory
Syntax: server real <name> <ip-addr>
Syntax: port http keepalive
Syntax: ip dont-advertise <ip-addr> <mask>
Or
Syntax: ip dont-advertise <ip-addr>/<mask-bits>
The server real command in this example configures the NetIron to send an HTTP health check to the HTTP port
on IP address 209.157.22.249. When you press Enter after this command, the CLI changes to the Real Server
level of the CLI. This level allows you to configure health check parameters for the HTTP port on the IP address.
The port http keepalive command in this example is entered at the Real Server level and enables the HTTP
health check. The health check is disabled by default, so you must enter this command. You can enter additional
commands at this level to modify the health check parameters. These commands are shown in the examples for
BigIron B1 and NetIron N2.
The ip address command adds an IP interface for the connection to the IP address. This interface must be in the
same sub-net as the IP address.
NOTE: To configure the ServerIron itself for multiple IP sub-nets, add IP addresses using the source-ip
command. See the Foundry ServerIron Installation and Configuration Guide for information.
The ip dont-advertise command configures the Foundry Layer 3 Switch to block advertisement of the network
route for this IP sub-net address. This command ensures that the Layer 3 Switch advertises only the host route to
the IP address. If the Layer 3 Switch advertises the network route to the sub-net containing the IP address, then
even if the Layer 3 Switch removes the host route from its routing table, it will still advertise the network route to
the IP address (and thus to the web server), defeating the failover capability of globally-distributed SLB.
CLI Commands for BigIron B1
The following commands configure BigIron B1 for the configuration shown in Figure 2.
BigIron(config) server real S2 209.157.22.249
BigIron(config-rs-S2) port http keepalive
BigIron(config-rs-S2) port http url "/sales.html"
BigIron(config-rs-S2) port http status_code 200 205
BigIron(config-rs-S2) interface ethernet 1/3
BigIron(config-if-1/3) ip address 209.157.22.2/24
BigIron(config-if-1/3) ip dont-advertise 209.157.22.2/24
BigIron(config-if-1/3) write memory
Syntax: port http url "[GET | HEAD] [/]<URL-page-name>"
Syntax: port http status_code <range> [<range>[<range>[<range>]]]
The port http url command changes the URL that the Layer 3 Switch sends as part of the health check. By
default, the Layer 3 Switch sends an HTTP HEAD request for the default page ("1.0"). If you enter a URL, the
health check instead requests that URL. The slash ( / ) is an optional parameter. If you do not set the GET or
December 2000
26 - 7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents