Setting up Basic Web Server Load Balance

-Give F5 vm 4 NICs card
Image
-check each NIC card vlan id and MAC address
DMZ: vlan 15 00:0c:29:f9:86:f9
SVR: vlan 20 00:0c:29:f9:86:03
HA: vlan 40 00:0c:29:f9:86:0d
MGMT: vlan 100 00:0c:29:f9:86:ef
-go to Network/Interfaces/Interface List and note down each MAC address belong to which interface.
For example DMZ= vlan 15 00:0c:29:f9:86:f9
Image
-create VLAN for each interface
Image
-create a Self IPs for each Interface
Image
-create PoolWWW
go to Local Traffic/Pools/Pool List
click Create
Image
-set Node Health Monitor to “Node Specific” icmp
go to Local Traffic/Nodes
click WWW1
set Configuration/Health Monitor to Node Specific
Select Monitor icmp
click Update
do the same to WWW2
-create VsWWW Virtual Server
go to Local Traffic/Virtual Servers
click Create
Name: VsWWW
Type: Standard
Destination Address: 10.0.15.50
Service Port 80 HTTP
Notify Status to Virtual Address: ticked
Configuration: Basic
Protocol: TCP
Protocol Profile (Client): tcp
Protocol Profile (Server): (Use Client Profile)
VLAN and Tunnel Traffic: All VLANs and Tunnels
Source Address Translation: Auto Map
Default Pool: PoolWWW
Result
Open your browser and go to http://10.0.15.50
Press Ctr-F5 to refresh
Image

CLI
-set hostname
#tmsh modify sys global-settings hostname f51.poc.com

-Create VLANs
#tmsh create net vlan DMZ interfaces add {1.1}
#tmsh create net vlan SVR interfaces add {1.2}

-Create Self IPs
#tmsh create net self 10.0.15.231/24 allow-service add { icmp:any } vlan DMZ
#tmsh create net self 10.0.20.231/24 allow-service add { icmp:any } vlan SVR

-Create node
#tmsh create / ltm node WWW1 {address 10.0.20.51 monitor icmp}
#tmsh create / ltm node WWW2 {address 10.0.20.52 monitor icmp}

-Create PoolWWW Pool
# tmsh create ltm pool PoolWWW load-balancing-mode round-robin members add {WWW1:80 WWW2:80} monitor http

-Create VsWWW Virtual Server
#tmsh create ltm virtual VsWWW destination 10.0.15.50:80 profiles add {tcp http} pool PoolWWW snat automap

-Save the config
#tmsh save sys config

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s