ADC

Static route advertisement to upstream routers

To reduce the high costs associated with using external cloud routers or ALBs for NetScaler cluster deployments, a more efficient solution has been validated for Google VPC. While standard VPC routers are natively available, they are limited to static routing and lack support for dynamic protocols like ECMP. NetScaler addresses this issue by introducing automated static route management through the Cluster Control Owner (CCO). By ensuring the number of VPC routes matches the number of active cluster nodes, the CCO can automatically delete routes when a node fails or add them when a node is joined, providing a seamless and cost-effective traffic distribution method within the cloud environment.

To configure static route advertisement to upstream routers, perform the following steps:

  1. Enable the gcpstaticroutes feature. By default, this feature is disabled.

    > set cloud gcpstaticroutes -status ENABLED / DISABLE
    <!--NeedCopy-->
    
  2. Add route profiles.

    > add cloud routes <name>  -routesVpcNetwork [-vipSubnet <ip_addr[/prefix]|ipv6_addr[/prefix]>] [-vipVpcNetwork ]
    <!--NeedCopy-->
    

    In the command:

    • RoutesVpcNetwork – VPC name in GCP where routes must be installed.

    • VipSubnet – The subnet for which routes must be installed in CIDR notation.

    • VipVpcNetwork – VPC name from which subnets are picked up and installed as routes.

    Note:

    You can either use –vipSubnet option for single subnet CIDR or –vipVpcNetwork option where VPC name is used. All subnets are under given VPC are installed as routes.

    Example:

    > add cloud routes profileP5 -routesVpcNetwork target-vpc -vipsubnet 80.0.0.0/24 
    
    > add cloud routes profileP4 -routesVpcNetwork target-vpc -vipvpcNetwork vip1-vpc-name 
    <!--NeedCopy-->
    
  3. Push the routes to the GCP cloud console.

    > apply cloud routes
    <!--NeedCopy-->
    

    If you change cloud routes profile, run the apply cloud routes command to update cloud routes in the GCP.

  4. Clear and remove all cloud routes profile. After clear command, run apply cloud routes for the changes to reflect in GCP.

    > clear cloud routes
    <!--NeedCopy-->
    
  5. Run show Cloud Routes command.

    > show cloud routes
    <!--NeedCopy-->
    

    Example:

    > sh cloud routes 
    1) Name: profile_p1 RoutesVpcNetwork: target-vpc VipSubnet: 90.0.0.0/2 
    2) Name: profile_p4 RoutesVpcNetwork: target-vpc VipVpcNetwork: vip1-vpc-name
    <!--NeedCopy-->
    
Static route advertisement to upstream routers