beautypg.com

Using a port range under a real server definition – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 83

background image

Brocade Virtual ADX Server Load Balancing Guide

67

53-1003247-01

Port ranges

2

Using a port range under a real server definition

You can define port ranges under a real server definition.

Virtual ADX(config)#server real real1 10.0.0.1

Virtual ADX(config-rs-real1)#port-range pr1

Syntax: [no] port-range port-range-name

Enter the ID of the port range for port-range-name. Refer to the rules in

“Defining a port range”

on

page 66 for additional rules.

You can add more than one port range to a real server; however, the ports in the port ranges
cannot overlap. For example, if you define PR1 to include ports 8051 to 8100 and define PR2 to
include ports 8061 to 8110, then you cannot use these two port ranges under the same real server
because ports are overlapping. Also, if a port is included inside a port range and that port range is
specified under real server, then the port cannot be specified separately under same real server.

All commands available to a single application port are available to the ports in a port range. For
example, you can configure keepalive for a port range as you would for a single port.

Virtual ADX(config)#server real rs1 10.0.0.1

Virtual ADX(config-rs-rs1)#port-range pr1 keepalive

Using a port range under a virtual server definition

You can define a port range under a virtual server.

Virtual ADX(config)#server virtual-name-or-ip virtual1 10.0.0.1

Virtual ADX(config-vs-virtual1)#port-range pr1

Syntax: [no] port-range port-range-name

Enter the ID of the port range for port-range-name.

The rules for including port ranges to a real server also apply to a virtual server. (Refer to

“Using a

port range under a real server definition”

.)

Binding a port range for virtual ports to a real server

You can bind a port range from under a virtual server to real servers. Binding a port range is
equivalent to binding all ports contained in the port range to the specified real server. All rules that
apply to single port bindings also apply to binding port ranges. In addition, you can bind different
port ranges to a virtual server if the port ranges each have the same number of ports.

The binding is a one-to-one mapping, where the starting port in the virtual server port range is
bound to the starting port in the real server port range. The second port in a virtual server port
range is bound to the second port of a real server port range.

Virtual ADX(config)#port-range pr1

Virtual ADX(config-pr-pr1)#port 8051 to 8100

Virtual ADX(config-pr-pr1)#exit

Virtual ADX(config)#port-range pr2

Virtual ADX(config-pr-pr2)#port 7051 to 7100

Virtual ADX(config-pr-pr2)#exit

Virtual ADX(config)#server virtual-name-or-ip virtual1 10.0.0.1

Virtual ADX(config-vs-virtual1)#bind-range pr1 realserver1 pr1 realserver2 pr2

Syntax: [no] bind-range port-range-name real-server-name port-range-name