netscaler basic cinfiguration
DESCRIPTION
AWS上でNetScalerをテストしたときの基本設定メモTRANSCRIPT
NetScalerの基本設定メモ
基本設定> set ns config -timezone "GMT+09:00-JST-Asia/Tokyo"
> enable feature LoadBalancing SSLOffload ContentSwitching
> enable ns mode L3 USNIP
> add ns ip 10.2.3.10 255.255.255.0 -vServer DISABLED -ssh ENABLED -icmp ENABLED
> add ns ip 10.2.4.10 255.255.255.0 -vServer DISABLED -ssh ENABLED -icmp ENABLED
> add route 192.168.0.0 255.255.0.0 10.2.1.1
> add route 0.0.0.0 0.0.0.0 10.2.3.1
L4負荷分散設定> add ns ip 10.2.3.11 255.255.255.0 -type VIP -telnet DISABLED -ftp DISABLED -gui DISABLED -ssh DISABLED
> add server demo01 10.2.4.21
> add server demo02 10.2.4.22
> add service http-demo01 demo01 HTTP 80 -cip DISABLED -maxClient 0 -maxReq 0 -sp OFF -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB YES -CMP NO
> add service http-demo02 demo02 HTTP 80 -cip DISABLED -maxClient 0 -maxReq 0 -sp OFF -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB YES -CMP NO
> add lb vserver lb-http-demo HTTP 10.2.3.11 80 -persistenceType NONE -cltTimeout 180
> bind lb vserver lb-http-demo http-demo01
> bind lb vserver lb-http-demo http-demo02
L7負荷分散設定> add ns ip 10.2.3.12 255.255.255.0 -type VIP -telnet DISABLED -ftp DISABLED -gui DISABLED -ssh DISABLED
> add server demo03 10.2.4.23
> add service http-demo03 demo03 HTTP 80 -cip DISABLED -maxClient 0 -maxReq 0 -sp OFF -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB YES -CMP NO
> add lb vserver lb-http-demo01 HTTP -persistenceType NONE -cltTimeout 180
> add lb vserver lb-http-demo02 HTTP -persistenceType NONE -cltTimeout 180
> add lb vserver lb-http-demo03 HTTP -persistenceType NONE -cltTimeout 180
> bind lb vserver lb-http-demo01 http-demo01
> bind lb vserver lb-http-demo02 http-demo02
> bind lb vserver lb-http-demo03 http-demo03
> add cs policy cs-pol-http-demo01 -rule "REQ.HTTP.URLQUERY CONTAINS red"
> add cs policy cs-pol-http-demo02 -rule "REQ.HTTP.URLQUERY CONTAINS blue"
> add cs vserver cs-http-demo HTTP 10.2.3.12 80 -cltTimeout 180
> bind cs vserver cs-http-demo -targetLBVserver lb-http-demo01 -policyName cs-pol-http-demo01 -priority 10
> bind cs vserver cs-http-demo -targetLBVserver lb-http-demo02 -policyName cs-pol-http-demo02 -priority 20
> bind cs vserver cs-http-demo -lbvserver lb-http-demo03