beautypg.com

Configuration example – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 91

background image

Brocade Virtual ADX Server Load Balancing Guide

75

53-1003247-01

Multiple port binding

2

Configuration example

To implement the configuration described above, enter commands such as the following.

Virtual ADX(config)#server real-name r1 10.0.1.5

Virtual ADX(config-rs-r1)#port http

Virtual ADX(config-rs-r1)#port 180

Virtual ADX(config-rs-r1)#exit

Virtual ADX(config)#server real-name r2 10.0.2.200

Virtual ADX(config-rs-r2)#port http

Virtual ADX(config-rs-r2)#port 180

Virtual ADX(config-rs-r2)#exit

Virtual ADX(config)#server virtual-name-or-ip VIP1 10.157.22.88

Virtual ADX(config-vs-VIP1)#port http

Virtual ADX(config-vs-VIP1)#bind http r1 http r2 http

Virtual ADX(config-vs-VIP1)#exit

Virtual ADX(config)#server virtual-name-or-ip VIP2 10.157.22.99

Virtual ADX(config-vs-VIP2)#port http

Virtual ADX(config-vs-VIP2)#no port http translate

Virtual ADX(config-vs-VIP2)#bind http r1 180 r2 180

The well-known port (80) is used for VIP1, but an alias (180) is used for VIP2. The real servers
actually use port 80 for traffic to both virtual IP addresses. However, the alias port enables the ISP
to distinguish among the two IP addresses and their traffic when they display SLB information on
the Brocade Virtual ADX. The no port http translate command is required. This command enables
the Brocade Virtual ADX to send traffic from multiple VIPs to the same real TCP/UDP port on the
real server (in this example, “http” (port 80)). If you leave this command out, the Brocade Virtual
ADX does not use port 180 as an alias but instead sends the VIP traffic to TCP/UDP port 180 on
the real server rather than 80.

NOTE

Because the untranslated port is logically bound to the translated port and both ports are bound to
the same port on the real server, state information for the untranslated port is based on the
translated port’s state. In this example, state information for port 180 is based on the state for port
80. The state is shown in the Ms (Master port state) field of the display produced by the show server
real command. Refer to

“Displaying real server information and statistics”

on page 371.

NOTE

You can configure the Brocade Virtual ADX to perform health checks on each VIP independently.
Refer to

“Health check of multiple websites on the same real server”

on page 224.