Configure a NLB
Configuration of a network load balancer
NLB Listener accepts connections from clients through an exposed IP address (Primary IPv4) and configured listener port. The Listener interface can also monitor additional IPs (Add IP). Listener IPs can be private (for local networks) or public (exposed to the Internet). Public IPs must be reserved before they can be used. Learn more about **** Listener.
You can fill in the following details in Settings:
- Name: You can use the default or enter a new name for the NLB.
- By clicking on Load Balancer you can show or hide the Primary IPv4 and Add IP settings.
- Primary IPv4: Assign the first (primary) Listener IP address. For Automatic, no entry is required; a private primary Listener IP address will be assigned automatically on provisioning.
- Add IP: Assign one or more additional Listener IPs; additional IPs are optional. For private IP, choose Add private IP and enter the address directly.
- Reserve public IP: Available only when there are no reserved public IPs. Click Add IP > Reserve public IP, enter a name for the IP block, the number of IPs to be reserved, and click Reserve IPs.
- Public IP: Public IPs must already have been reserved. Click Add IP and choose a reserved IP block name from the drop-down list, then select a reserved IP address.
- Multiple IPs: Use Add IP again to add as many IPs as needed. All added private and public IPs are listed below the IP settings.
Forwarding rules define how client traffic is distributed to the targets. More than one forwarding rule can be created for the same load balancer.
In Forwarding rules, you can enter a name for this forwarding rule, choose a load balancing algorithm from the drop-down list (read more about balancing algorithms), set the protocol to TCP (it cannot be changed), select an IP address for Listener IP, enter the Listener port directly, or select one from the list.
- Click Create to create the rule.
- Click the name of the rule to expand or collapse its settings.
- Click Add target to add targets.
- Use Add forwarding rule again to add as many rules as needed. All added rules are listed in Inspector under the Forwarding rules tab.
NLB backend exposes a private IP to targets as the source of client traffic. The backend IP address is configurable and defaults to x.x.x.225. Backend IPs are listed in the NLB Inspector under the Private IPs tab.
- It is best to use the default IP address in most cases. To change an already-provisioned IP, first, delete the existing IP address, and then add a new one.
- Click the down arrow and select Remove IP for deleting the IP address.
- Enter an IP address in CIDR notation (e.g. 10.10.10.225/24)_, _and click Add IP. The new IP must be private and match the subnet mask of the Target network.
- Use Add IP again to add as many private IPs as needed. All added IPs are listed under the Private IPs.