Using a Netscaler Container

netlab includes the Dockerfile needed to build a Netscaler CPX container that’s easy to start in a lab. We tested it with Netscaler releases 13.1 and 14.1; the default image is built from release 14.1-73.30.

To add a Netscaler node to a netlab lab topology:

  • Build a local netlab/netscaler container with netlab clab build netscaler

  • To build a different release, find its tag on the Netscaler CPX Quay.io page and use it with the –version parameter, for example netlab clab build netscaler --version 13.1-63.19. The resulting image is tagged netlab/netscaler:13.1-63.19.

  • Use the netscaler device to add the load balancer to a lab topology:

nodes:
  lb1:
    provider: clab
    device: netscaler
    image: netlab/netscaler    # or netlab/netscaler:13.1-63.19 for a --version build
  • With the netscaler device, netlab configures the hostname, the interfaces, and their IPv4 addresses (as SNIPs). netlab connect and SSH as user clab (password clab@123) start the Netscaler CLI. Use docker exec -it <container> bash to get a Linux shell.

  • Use the linux device with the netlab/netscaler image if you want to configure the Netscaler yourself. netlab does not configure the Netscaler, and you’ll get a bash shell when you connect to the node with netlab connect. Use the nscli command to start the Netscaler CLI, and log in with username clab and password clab@123.

You’ll find even more details in this Github discussion.