F5 - Creating a basic node, a pool and a VIP via CLI
How to Create a basic node, a pool and a VIP via CLI
- Log into the traffic management shell via the command tmsh:
config # tmsh
- creating a node:
(tmos)# create ltm node abc-1.2.3.4 address 1.2.3.4
(tmos)# create ltm node abc-5.6.7.8 address 5.6.7.8
- Creating a pool (http):
create ltm pool name-pool-http members add { abc-1.2.3.4:http { address 1.2.3.4 session user-enabled state user-up } abc-5.6.7.8:http { address 5.6.7.8 session user-enabled state user-up } } monitor http
Creating a pool (https):
create ltm pool name-pool-https members add { abc-1.2.3.4:https { address 1.2.3.4 session user-enabled state user-up } abc-5.6.7.8:https { address 5.6.7.8 session user-enabled state user-up } } monitor https
- Creating a VIP (performance layer4 - http):
create ltm virtual name-vip-http { destination 9.10.11.12:http ip-protocol tcp mask 255.255.255.255 pool name-pool-http profiles add { nPath-FastL4 { } } translate-address disabled translate-port disabled vlans add { VLAN-NAME } vlans-enabled }
Creating a VIP (performance layer4 - https):
create ltm virtual name-vip-https { destination 9.10.11.12:http ip-protocol tcp mask 255.255.255.255 pool name-pool-https profiles add { nPath-FastL4 { } } translate-address disabled translate-port disabled vlans add { VLAN-NAME } vlans-enabled }