Understanding the G Router Load Balancing Setup: A Comprehensive Guide
The ability to distribute network traffic across multiple WAN links, also known as load balancing, is a common requirement for many organizations, whether it's a small business or a large enterprise. In this article, we'll delve into the concept of a G router load balancing setup and provide a detailed explanation of how it works, along with a step-by-step configuration example.What is Load Balancing?
Load balancing is a technique used to distribute network traffic across multiple WAN links to improve network bandwidth utilization and reliability. This is particularly useful in scenarios where a single WAN link is not sufficient to meet the demands of the network or when there are multiple WAN links available.Types of Load Balancing
There are two primary types of load balancing: layer 3 (L3) and layer 4 (L4). L3 load balancing occurs at the network layer and IP addresses are used for routing. L4 load balancing, on the other hand, occurs at the transport layer and ports are used for load balancing.How Load Balancing Works
In a load balancing setup, the router sits between the network and the WAN links. When a request is received, the router examines the protocol and destination IP address of the request and then determined which WAN-link should serve the traffic.Benefits of Load Balancing
The benefits of load balancing include improved network bandwidth utilization, increased network reliability, and enhanced network performance.Configuring a G Router Load Balancing Setup
Configuring a G router load balancing setup is a relatively straightforward process. Here's a step-by-step configuration example:Step 1: Enable Load Balancing
To enable load balancing on the router, navigate to the Advanced Routing section and click on Load Balancing. Select the load balancing algorithm (e.g., wrr_weight) and configure the load ratio between the two WAN links.Step 2: Configure WAN Links

Step 3: Apply the Load Balancing Configuration
Once the load balancing configuration has been applied, the router will begin to distribute the network traffic across the two WAN links.Example Configuration
Here's an example configuration for a G router load balancing setup:1 set system interface wan1 address '192.168.1.1/24' default-route-set primary set system interface wan2 address '10.10.10.1/24' default-route-set secondary set load balancing group wan1 slb-wrr-weights 'wan1 1 4 wan2 1 4' set load balancing algorithm wrr_weight wan1 slb-wrr-weights 'wan1 1 4 wan2 1 4' commit save