cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

Is possible to create a down Virtual Server when creating the first VIP?

JDamian
Nimbostratus
Nimbostratus

Hi

 

When I create the first VIP for an IP address, an up-and-running Virtual Server Address is also created -- "up-and-running" means replying ICMP and ARP.

This is true even when that first VIP is created "disabled".

 

Is any way to create that fist VIP and its associated Virtual Address both disabled?

 

Best regards

1 REPLY 1

Pedro_Haoa
F5 Employee
F5 Employee

Hi,

 

Here some quick alternatives for your project.

 

Option 1: Concatenate tmsh in Advanced Shell

tmsh create ltm virtual test_vs destination 10.1.1.5:80 disabled pool test_pool ip-protocol tcp source-address-translation { type automap } && tmsh modify ltm virtual-address 10.1.1.5 enabled no arp disabled icmp-echo disabled

Option 2: Concatenate iControl REST

curl -sku admin:admin https://<host>/mgmt/tm/ltm/virtual -H "Content-Type: application/json" -X POST -d '{"name":"test_vs", \ "destination":"10.1.1.5:80", \ "mask":"255.255.255.255", \ "pool":"test_pool", \ "profilesReference": {"items": [ {"context": "all", "name": "tcp"}] }, \ "sourceAddressTranslation": {"type": "automap"} }'   curl -sku admin:admin https://<host>/mgmt/tm/ltm/virtual-address -H "Content-Type: application/json" -X POST -d '{"name":"10.1.1.5", \ "address":"10.1.1.5", \ "arp":"enabled", \ "enabled":"yes", \ "icmpEcho":"enabled" }'

I hope it helps.

 

Cheers!