F5 – CLI Virtual Server Basic Buildout (Nodes,Pools) with Partition

Let’s say we want to build out what we see below:

1. Nodes:
Name = web01 & IP = 10.10.10.1%1
Name = web02 & IP = 10.10.10.2%1
Name = web03 & IP = 10.10.10.3%1
Name = web04 & IP = 10.10.10.4%1
Name = web05 & IP = 10.10.10.5%1

2. Pools:
Name = web-pool_https
Health Monitor = https_custom
Members = web01, web02, web03, web04, web05

3. Virtual Server:
Name = web-pool_https
Source Address = 0.0.0.0%1/0
Destination Address = 10.1.1.10%1
Service Port = 443 HTTPS
Source Address Translate = Auto Map

Resources > Default Pool = web-pool_https

 

1 Adding more Servers:

Let’s say in the future I want to add 5 more servers and add them to the web-pool_https:
Name = web06 & IP = 10.10.10.6%1
Name = web07 & IP = 10.10.10.7%1
Name = web08 & IP = 10.10.10.8%1
Name = web09 & IP = 10.10.10.9%1
Name = web10 & IP = 10.10.10.10%1

CLI:

1. Configure Nodes:

create ltm node web01 { address 10.10.10.1%1 }
create ltm node web02 { address 10.10.10.2%1 }
create ltm node web03 { address 10.10.10.3%1 }
create ltm node web04 { address 10.10.10.4%1 }
create ltm node web05 { address 10.10.10.5%1 }

2. Configure Pool:

create ltm pool web-pool_https { members add { web01:443 web02:443 web03:443 web04:443 web05:443 } monitor https_custom }

3. Configure Virtual Server:

create ltm virtual web-pool_https { destination 10.1.1.10%1:443 source 0.0.0.0%1/0 pool web-pool_https translate-address enabled translate-port enabled }

 

To add five more servers to the existing `web-pool_https`, follow these steps:

1. Configure Nodes:

create ltm node web06 { address 10.10.10.6%1 }
create ltm node web07 { address 10.10.10.7%1 }
create ltm node web08 { address 10.10.10.8%1 }
create ltm node web09 { address 10.10.10.9%1 }
create ltm node web10 { address 10.10.10.10%1 }

2. Add Servers to the Pool:

modify ltm pool web-pool_https members add { web06:443 web07:443 web08:443 web09:443 web10:443 }