Product Documentation

Use Case 1: Reusing the Same Identifier in Different Partitions

Jul 01, 2016

By using admin partitions, resource identifiers such as IP addresses and entity names can be reused in different partitions. This means that:

  • You can use an IP address (for example, 3.3.3.7) as a virtual server IP address in different partitions.
  • You can use the same name (for example, lbvserver1) for a virtual server in different partitions.

This is possible as each partition is associated with a different VLAN (or bridgegroup) and therefore traffic destined for different applications is segregated.

As shown in the following image, the virtual server IP address 3.3.3.7 is used in Partition1, Partition2, and Partition3.

Let us understand how the configurations must be performed.

Creating and configuring partitions that share the same IP address among virtual servers

  1. On default partition: Log on to the NetScaler appliance as a super user and configure the three partitions as follows:
    shell> ssh 10.102.29.60 -l nsroot 
    password: ****** 
     
    > add ns partition Partition1 
    Done 
     
    > add ns partition Partition2 
    Done 
     
    > add ns partition Partition3 
    Done 
     
    > bind system user user1 -partitionName Partition1 
    Done 
     
    > bind system user user2 -partitionName Partition2 
    Done 
     
    > bind system user user3 -partitionName Partition3 
    Done 
     
    > bind system user user1 partition-admin 10 
    Done 
     
    > bind system user user2 partition-admin 20 
    Done 
     
    > bind system user user3 partition-admin 20 
    Done 
     
    > add vlan 20 
    Done 
     
    > bind vlan 20 -ifnum 2/1 
    Done 
     
    > add vlan 21 
    Done 
     
    > bind vlan 21 -ifnum 3/1 
    Done 
     
    > add vlan 30 
    Done 
     
    > bind vlan 30 -ifnum 4/1 
    Done 
     
    > bind ns partition Partition1 -vlan 20 
    Done 
     
    > bind ns partition Partition2 -vlan 21 
    Done 
     
    > bind ns partition Partition3 -vlan 30 
    Done
    
  2. On Partition1: Log on to the NetScaler appliance as user1 and configure on Partition1.
    shell> ssh 10.102.29.60 -l user1 
    password: ***** 
     
    Partition1> add ns ip 3.3.3.2 255.255.255.0 -vServer DISABLED -type SNIP 
    Done 
     
    Partition1> add service s1 3.3.3.5 HTTP 80 
    Done 
     
    Partition1> add lb vserver lbvserver1 HTTP 3.3.3.7 80 -persistenceType NONE 
    Done 
     
    Partition1> bind lb vserver lbvserver1 s1 
    Done 
     
    Partition1> bind vlan 20 -IPAddress 3.3.3.2 255.255.255.0 
    Done
    
  3. On Partition2: Log on to the NetScaler appliance as user2 and configure on Partition2.
    shell> ssh 10.102.29.60 -l user2 
    password: ***** 
     
    Partition2> add ns ip 5.5.5.3 255.255.255.0 -vServer DISABLED -type SNIP 
    Done 
     
    Partition2> add service s1 5.5.5.5 HTTP 80 
    Done 
     
    Partition2> add lb vserver lbvserver1 HTTP 3.3.3.7 80 -persistenceType NONE 
    Done 
     
    Partition2> bind lb vserver lbvserver1 s1 
    Done 
     
    Partition2> bind vlan 21 -IPAddress 5.5.5.3 255.255.255.0 
    Done
    
  4. On Partition3: Log on to the NetScaler appliance as user3 and configure on Partition3.
    shell> ssh 10.102.29.60 -l user3 
    password: ***** 
     
    Partition3> add ns ip 6.6.6.3 255.255.255.0 -vServer DISABLED -type SNIP 
    Done 
     
    Partition3> add service s1 6.6.6.6 HTTP 80 
    Done 
     
    Partition3> add lb vserver lbvserver1 HTTP 3.3.3.7 80 -persistenceType NONE 
    Done 
     
    Partition3> bind lb vserver lbvserver1 s1 
    Done 
     
    Partition3> bind vlan 30 -IPAddress 6.6.6.3 255.255.255.0 
    Done