Configuring Subnet IP Addresses (SNIPs)
-
add ns ip \<IPAddress> \<netmask> -type SNIP
-
show ns ip \<IPAddress>
> add ns ip 10.102.29.203 255.255.255.0 -type SNIP
Done
-
add ns ip \<IPAddress> \<netmask> -type SNIP
-
show ns ip \<IPAddress>
> add ns ip 10.102.29.[205-209] 255.255.255.0 -type SNIP
ip "10.102.29.205" added
ip "10.102.29.206" added
ip "10.102.29.207" added
ip "10.102.29.208" added
ip "10.102.29.209" added
Done
-
enable ns modeUSNIP
-
disable ns modeUSNIP
-
Navigate to System > Network > IPs > IPV4s.
-
In the Action list, select Add Range.
-
enable ns mode USNIP
-
disable ns mode USNIP
-
Navigate to System > Settings, in Modes and Features group, click Change modes.
-
Select or clear the Use Subnet IP option.
Using SNIPs for a Directly Connected Server Subnet
-
Client C1 sends a request packet to LBVS-1. The request packet has:
-
Source IP = IP address of the client (198.51.100.10)
-
Destination IP = IP address of LBVS-1 (203.0.113.15)
-
-
LBVS1 of NS1 receives the request packet.
-
LBVS1's load balancing algorithm selects server S2.
-
Because S2 is directly connected to NS1, and SNIP1 (192.0.1.10) is the only IP address on NS1 that belongs to the same subnet as S2, NS1 opens a connection between SNIP1 and S2.
-
NS1 sends the request packet to S2 from SNIP1. The request packet has:
-
Source IP = SNIP1 (192.0.1.10)
-
Destination IP = IP address of S2 (192.0.1.30)
-
-
S2’s response returns by the same path.
Using SNIPs for Server Subnets Connected through a Router
-
Client C1 sends a request packet to LBVS-1. The request packet has:
-
Source IP = IP address of the client (198.51.100.10)
-
Destination IP = IP address of LBVS-1 (203.0.113.15)
-
-
LBVS1 of NS1 receives the request packet.
-
LBVS1's load balancing algorithm selects server S3.
-
NS1 checks its routing table and finds that S3 is reachable through R1. SNIP1 (192.0.1.10) is the only IP address on NS1 that belongs to the same subnet as router R1, NS1 opens a connection between SNIP1 and S3 through R1.
-
NS1 sends the request packet to R1 from SNIP1. The request packet has:
-
Source IP address = SNIP1 (192.0.1.10)
-
Destination IP address = IP address of S3 (192.0.3.20)
-
-
The request reaches R1, which checks its routing table and forwards the request packet to S3.
-
S3’s response returns by the same path.
Using SNIPs for Multiple Server Subnets (VLANs) on an L2 Switch
-
Client C1 sends a request packet to LBVS-1. The request packet has:
-
Source IP = IP address of the client (198.51.100.10)
-
Destination IP = IP address of LBVS-1 (203.0.113.15)
-
-
LBVS1 of NS1 receives the request packet.
-
LBVS1's load balancing algorithm selects server S2.
-
Because S2 is directly connected to NS1, and SNIP2 (192.0.2.10) is the only IP address on NS1 that belongs to the same subnet as S2, NS1 opens a connection between SNIP2 and S2. Note: If S1 is selected, NS1 opens a connection between SNIP1 and S1.
-
NS1 sends the request packet to S2 from SNIP2. The request packet has:
-
Source IP = SNIP1 (192.0.2.10)
-
Destination IP = IP address of S2 (192.0.2.20)
-
-
S2’s response returns by the same path.