Technical data

Configuring FWLB and SLB
May 31, 2012 © 2012 Brocade Communications Systems, Inc. 8 - 5
Binding the Real Server to the Virtual Server
To bind the real servers to the virtual server, enter the following commands on the Internet ServerIron
(ServerIron A). Notice that the port binding takes place on the Virtual Server configuration level.
USING THE CLI
ServerIronA(config)# server virtual www.brocade.com
ServerIronA(config-vs-www.brocade.com)# bind http RS1 http
ServerIronA(config-vs-www.brocade.com)# bind http RS2 http
ServerIronA(config-vs-www.brocade.com)# exit
Syntax: [no] bind <port> <real server name> <port>
Enabling SLB-to-FWLB
To enable SLB-to-FWLB, enter the following command on the Internet ServerIron (ServerIron A).
ServerIronA(config)# server slb-fw
Syntax: [no] server slb-fw
Configuration Example for SLB-to-FWLB
The following sections show all the ServerIron commands you would enter on each ServerIron to implement the
SLB-to-FWLB configuration shown in Figure 8.1 on page 8-2.
Commands on ServerIron A (External)
Enter the following commands to configure SLB. In an SLB-to-FWLB configuration, all SLB configuration takes
place on the Internet ServerIron (ServerIron A, the External ServerIron, in this example).
The following commands change the ServerIron’s host name to “ServerIronA", configure the ServerIron’s
management IP address, and specify the default gateway.
ServerIron(config)# hostname ServerIronA
ServerIronA(config)# ip address 192.168.1.100 255.255.255.0
ServerIronA(config)# ip default-gateway 192.168.1.1
The following commands configure the real servers. Notice that the servers are configured as remote servers.
This is required for SLB-to-FWLB.
ServerIronA(config)# server remote-name RS1 192.168.2.50
ServerIronA(config-rs-RS1)# port http
ServerIronA(config-rs-RS1)# exit
ServerIronA(config)# server remote-name RS2 192.168.2.60
ServerIronA(config-rs-RS2)# port http
ServerIronA(config-rs-RS2)# exit
The following commands configure the virtual server and bind it to the real servers with TCP port 80 (HTTP).
ServerIronA(config)# server virtual-name www.brocade.com 192.168.1.2
ServerIronA(config-vs-www.brocade.com)# port http
ServerIronA(config)# server virtual www.brocade.com
ServerIronA(config-vs-www.brocade.com)# bind http RS1 http
ServerIronA(config-vs-www.brocade.com)# bind http RS2 http
Enter the following command to enable SLB-to-FWLB.
NOTE: This command applies only to the ServerIron that contains the SLB configuration. Do not enter this
command on the internal ServerIron (ServerIronB).
ServerIronA(config)# server slb-fw
The the following commands to add two firewalls, FW1-IPin and FW2-IPin.