Q: How does the global setting for Use Source IP address (USIP) interact with the individual service USIP settings?
A: When USIP mode is enabled globally, two things happen:
For example:
> show version
NetScaler NS5.2: Build 50.18, Date: Jan 14 2005, 18:29:10
Done
> show ns mode
Mode status:
Fast Ramp: ON
Layer 2 mode: OFF
Use Source IP: OFF
Client Keep-alive: ON
TCP Buffering: ON
MAC-based forwarding: OFF
Edge configuration: ON
Use Subnet IP: ON
Layer 3 mode (ip forwarding): ON
Done
> add service svc12.123 10.101.12.123 TCP 4502
Done
> show service svc12.123
svc12.123 (10.101.12.123:4502) - TCP State: DOWN
Max Conn: 0 Max Req: 0 Max Bandwidth: 0 kbits
Use Source IP: NO
Client Keepalive(CKA): YES
Access Down Service: NO
TCP Buffering(TCPB): YES
HTTP Compression(CMP): NO
Idle timeout: Client: 9000 sec Server: 9000 sec
Client IP: DISABLED
Server ID : 0
1) Monitor Name: tcp-default
State: ENABLED Probes: 3 Failed: 2
Done
> enable ns mode usip
Use Source IP enabled.
Done
> add service svc12.124 10.101.12.124 TCP 4502
Done
> show service svc12.124
svc12.124 (10.101.12.124:4502) - TCP State: DOWN
Max Conn: 0 Max Req: 0 Max Bandwidth: 0 kbits
Use Source IP: YES
Client Keepalive(CKA): YES
Access Down Service: NO
TCP Buffering(TCPB): YES
HTTP Compression(CMP): NO
Idle timeout: Client: 9000 sec Server: 9000 sec
Client IP: DISABLED
Server ID : 0
1) Monitor Name: tcp-default
State: ENABLED Probes: 1 Failed: 1
Done
If you never explicitly set the USIP setting on a specific service, then it follows the changes of the global mode:
> disable ns mode usip
Use Source IP disabled.
Done
> show service svc12.124
svc12.124 (10.101.12.124:4502) - TCP State: DOWN
Max Conn: 0 Max Req: 0 Max Bandwidth: 0 kbits
Use Source IP: NO
Client Keepalive(CKA): YES
Access Down Service: NO
TCP Buffering(TCPB): YES
HTTP Compression(CMP): NO
Idle timeout: Client: 9000 sec Server: 9000 sec
Client IP: DISABLED
Server ID : 0
1) Monitor Name: tcp-default
State: ENABLED Probes: 3 Failed: 3
Done
> enable ns mode usip
Use Source IP enabled.
Done
> show service svc12.124
svc12.124 (10.101.12.124:4502) - TCP State: DOWN
Max Conn: 0 Max Req: 0 Max Bandwidth: 0 kbits
Use Source IP: YES
Client Keepalive(CKA): YES
Access Down Service: NO
TCP Buffering(TCPB): YES
HTTP Compression(CMP): NO
Idle timeout: Client: 9000 sec Server: 9000 sec
Client IP: DISABLED
Server ID : 0
1) Monitor Name: tcp-default
State: ENABLED Probes: 9 Failed: 9
Done
If you have explicitly set USIP on a service, the service does not change with the global USIP mode:
> set service svc12.124 -usip NO
Done
> disable ns mode usip
Use Source IP disabled.
Done
> enable ns mode usip
Use Source IP enabled.
Done
> show service svc12.124
svc12.124 (10.101.12.124:4502) - TCP State: DOWN