Configure the upper-tier NetScaler appliances

Configure each of the upper-tier NetScaler appliances as follows.

Configure an upper-tier appliance for n-tier cache redirection by using the command CLI

At the command prompt, type the following commands:

-  add service \<name\>@ \<serviceIP\> \<serviceType\> \<port\>  

    Run this command for each service to be added.

-  add lb vserver \<name\>@ ANY \* \<port\> -persistenceType \<persistenceMethod\> -lbMethod \<lbMethod\> -m MAC -sessionless ENABLED -cltTimeout \<client\_Timeout\_Value\>  


-  bind lb vserver \<name\>@ \<serviceName\>  

    Run this command for each service to be bound.

-  enable ns mode l3  

-  add ns pbr \<name\> \<action\> -srcPort \<sourcePortNumber\> -destPort \<startPortNumber-endPortNumber\> -nexthop \<serviceIpAddress\> -protocol TCP  

-  apply ns pbrs  

    Run this command after adding all the necessary PBRs.

Configure an upper-tier appliance for n-tier cache redirection by using the GUI

  1. Enable L3 mode:
    1. In the navigation pane, click System, and then click Settings.
    2. In the Settings group, click the Configure modes link.
    3. Select the Layer 3 Mode (IP Forwarding) check box.
    4. Click OK.
  2. Configure policy-based routing (PBR):
    1. Navigate to System > Network > PBRs.
    2. In the Policy-Based Routing (PBRs) pane, click Add.
    3. Type a name for the PBR.
    4. Select the action as Allow.
    5. In the Next Hop box, type the IP address of the service, which represents a lower-tier appliance.
    6. Select TCP from the Protocol drop-down list.
    7. Type the source port and the range of the destination port corresponding to the lower-tier appliance being added.
    8. Click Create.
    9. In the details pane, select the PBR and click Apply.
    10. Repeat Step (i) to Step (vii) for each lower-tier appliance.
  3. Create a service for each lower-tier appliance:
    1. Navigate to Traffic Management > Load Balancing > Services.
    2. In the details pane, click Add.
    3. Specify the name, protocol, IP address, and port. The protocol should be ANY.
    4. Click Create.
  4. Configure a load balancing virtual server:
    1. Navigate to Traffic Management > Load Balancing > Virtual Servers.
    2. In the details pane, click Add.
    3. Specify the name, protocol, IP address, and port. The protocol should be ANY and the IP address should be *.
    4. In the Services tab, select the services that represent the lower-tier NetScaler appliances.
    5. In the Advanced tab, select the Redirection Mode as MAC Based and select the Sessionless check box.
    6. Click Create.