NetScaler ADC lab 7 of 13
Content switching
Put one front-door address in front of three services: a content-switching virtual server sends image and API requests to their own load-balanced pools and everything else to the shop.
Run this lab
It needs Lite: its 4 nodes are set to 5 vCPU and 5,120 MB in total. It is ready about 7 minutes after you start it. It starts already set up, with nothing to paste before the first task. It fits the free demo too.
In your workspace: Shared, then Load balancing and ADC on NetScaler guided labs, then 07 - Content switching
Try it free for 30 minutesRun it on Lite from £3 a day
- About 7 min to be ready
- About 50 min of tasks
- The free demo’s 30 min cover the start and about 23 min of the tasks
- Level
- Intermediate
- How you work
- GUI-led
- Nodes need
- 5 vCPU, 5,120 MB
- Smallest plan
- Lite
The scenario
The developers split the shop. Product images now come from an image service and the mobile app talks to an API service, each on its own port, while the pages stay on the web servers. Customers must still use one name, www.shop.lab, on one new front-door address, 10.10.10.110. DESKTOP's hosts file already points www.shop.lab at 10.10.10.110, so the shop doesn't load until you build the front door. The old address 10.10.10.100 (old.shop.lab) still reaches vs-shop directly.
| Device | Interface | Address | Role |
|---|---|---|---|
| NS1 (NetScaler VPX 14.1) | 0/1 (CLIENT) | 10.10.10.10/24 (NSIP) | management address: GUI, SSH, NITRO API |
| NS1 | 1/1 (SERVERS) | 10.10.20.10/24 (SNIP) | the address NS1 uses to talk to the servers |
| NS1 | (virtual) | 10.10.10.100 (old vs-shop), 10.10.10.110 (new front door) | virtual server (VIP) the users connect to |
| DESKTOP | eth0 | 10.10.10.50/24 | your workstation: Firefox, terminal, ssh, curl |
| WEB1 | eth0 | 10.10.20.21/24 | web server |
| WEB2 | eth0 | 10.10.20.22/24 | web server |
| WEB1 | port 8080 | 10.10.20.21:8080 | the new API service (answers /api/... with JSON) |
| WEB2 | port 8080 | 10.10.20.22:8080 | the new image service (answers /images/...) |
Skills: content-switching virtual servers, CS policies and actions, non-addressable load-balancing virtual servers, default targets, priorities, stat cs vserver.
What you’ll practise
- Build non-addressable load-balancing virtual servers
- Create a content-switching virtual server with a default target
- Write CS policies and actions with path expressions
- Explain policy priority and spot a shadowing catch-all
The tasks
- Start the lab
- Task 1: Load balancing for the new services
- Task 2: The front door
- Task 3: Policies for images and the API
- Task 4: Priorities decide
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- NS1
0/1to CLIENT (network) - DESKTOP
eth0to CLIENT (network) - NS1
1/1to SERVERS (network) - WEB1
eth0to SERVERS (network) - WEB2
eth0to SERVERS (network)
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| NS1 | Citrix NetScaler ADC VPX | nsvpx-14.1-38.53 | 2 vCPU, 2,048 MB |
| DESKTOP | CloudLabBox desktop (Docker) | CloudLabBox’s own desktop image | 1 vCPU, 1,024 MB |
| WEB1 | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
| WEB2 | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Load balancing and ADC on NetScaler guided labs.Open
07 - Content switchingand start its nodes, then open Lab Tasks for the scenario and the steps.For a device’s web interface, work from the lab’s desktop,
DESKTOP: open its console and maximise the window.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More NetScaler ADC labs
CloudLabBox is independent of NetScaler, Cloud Software Group, Citrix and F5. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.