Enabling pbslb for a port on a virtual server – Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 117
Brocade Virtual ADX Server Load Balancing Guide
101
53-1003247-01
Policy-based SLB
2
For example, to configure real server rs1 in
on page 96, enter commands such as the
following.
Virtual ADX(config)#server real rs1 10.95.7.1
Virtual ADX(config-rs-rs1)#port http group-id 1 1
Virtual ADX(config-rs-rs1)#exit
Syntax: [no] server real real-server-name ip-addr
Syntax: [no] port port group-id server-group-id-pairs
In this example, the server real command defines a real server called rs1 with an IP address of
10.95.7.1.
The port http group-id command indicates the server groups to which the real server belongs. The
server group is expressed as a pair of numbers, indicating a range of real server group IDs. The first
number is the lowest-numbered server group ID, and the second is the highest-numbered server
group ID. For example, if a real server belongs only to the server group with ID = 1, the last two
numbers in the port http group-id command would be 1 1. (Note the space between the two
numbers.) If a real server belongs to server groups 1 through 10, the last two numbers in the
command would be 1 10. Valid numbers for server group IDs are from 0 through 1023.
To include a real server in groups that are not consecutively numbered, enter up to four server
group ID pairs. For example, to include a real server in groups 1–5 and 11–15, enter the following
command.
Virtual ADX(config-rs-rs1)#port http group-id 1 5 11 15
You can also specify the server group ID pairs on separate lines; for example.
Virtual ADX(config-rs-rs1)#port http group-id 1 5
Virtual ADX(config-rs-rs1)#port http group-id 11 15
The configuration for the remaining real servers in
on page 96 is shown below. These
commands place real server rs2 in server group ID = 1 (along with real server rs1), real server rs3
in server group ID = 2, and real server rs4 in server group ID = 3.
Virtual ADX(config)#server real rs2 10.95.7.2
Virtual ADX(config-rs-rs2)#port http group-id 1 1
Virtual ADX(config-rs-rs2)#exit
Virtual ADX(config)#server real rs3 10.95.7.3
Virtual ADX(config-rs-rs3)#port http group-id 2 2
Virtual ADX(config-rs-rs3)#exit
Virtual ADX(config)#server real rs4 10.95.7.4
Virtual ADX(config-rs-rs4)#port http group-id 3 3
Virtual ADX(config-rs-rs4)#exit
Enabling PBSLB for a port on a virtual server
To enable policy-based SLB on a VIP for
on page 96, enter commands such as the
following.
Virtual ADX(config)#server virtual-name-or-ip mysite 10.157.22.63
Virtual ADX(config-vs-mysite)#port http
Virtual ADX(config-vs-mysite)#port http sw-l4-pbslb
Virtual ADX(config-vs-mysite)#bind http rs1 http rs2 http rs3 http rs4 http
Syntax: [no] port port sw-l4-pbslb