Web example: Configuring inbound link load balancing

Network configuration

As shown in Figure 1, ISP 1 and ISP 2 provide an enterprise with two links, Link 1 and Link 2. Both links have the same router hop count, bandwidth, and cost.

Configure inbound link load balancing for the device to select an optimal link for traffic from the client host to the server.

Figure 1 Network diagram

 

Software versions used

This configuration example was created and verified on E8371 of the F5000-AI160 device.

Procedures

  1. Assign IP addresses to interfaces and add the interfaces to security zones.

# On the top navigation bar, click the Network tab.

# From the navigation pane, select Interface Configuration > Interfaces.

# Click the Edit icon for GE 1/0/1.

# In the dialog box that opens, configure the interface:

# Add GE 1/0/2 to the Untrust security zone and set its IP address to 20.1.1.1./24 in the same way you configure GE 1/0/1.

# Add GE 1/0/3 to the Trust security zone and set its IP address to 192.168.1.1/24 in the same way you configure GE 1/0/1.

  1. Configure security policies.

# On the top navigation bar, click Policies.

# From the navigation pane, select Security Policies > Security Policies.

# Click Create.

# In the dialog box that opens, configure a security policy named Untrust-to-Trust:

# Configure a security policy named Local-to-Untrust:

  1. Configure an ICMP probe template.

# On the top navigation bar, click Objects.

# From the navigation pane, click Health Monitoring.

# Click Create.

# In the dialog box that opens, configure an ICMP probe template:

Figure 2 Creating an ICMP probe template

 

  1. Configure links.

# On the top navigation bar, click Objects.

# From the navigation pane, select Load Balancing > Links.

# Click Create.

# In the dialog box that opens, configure a link named link1:

Basic configuration:

Figure 3 Creating link link1 (basic configuration)

 

Advanced configuration:

Figure 4 Creating link link1 (advanced configuration)

 

# Configure link link2 in the same way you configure link link1.

Figure 5 Creating link link2 (basic configuration)

 

Figure 6 Creating link link2 (advanced configuration)

 

  1. Configure a real server.

# On the top navigation bar, click Polices.

# From the navigation pane, select Server Load Balancing > Real Servers.

# Click Create.

# In the dialog box that opens, configure a real server named rs:

Figure 7 Creating real server rs

 

  1. Configure a server farm.

# On the top navigation bar, click Polices.

# From the navigation pane, select Server Load Balancing > Server Farms.

# Click Create.

# In the dialog box that opens, configure a server farm named sf:

Figure 8 Creating server farm sf

 

  1. Configure virtual servers.

# On the top navigation bar, click Polices.

# From the navigation pane, select Server Load Balancing > Virtual Servers.

# Click Create.

# In the dialog box that opens, configure a virtual server named vs1:

Figure 9 Creating virtual server vs1

 

# Configure virtual server vs2 in the same way you configure virtual server vs1.

Figure 10 Creating virtual server vs2

 

  1. Configure a DNS mapping.

# On the top navigation bar, click Polices.

# From the navigation pane, select Link Load Balancing > Inbound Link LB.

# On the DNS Mapping tab, click Create.

# In the dialog box that opens, configure a DNS mapping named dm:

Figure 11 Creating DNS mapping dm

 

  1. Configure DNS listeners.

# On the top navigation bar, click Polices.

# From the navigation pane, select Link Load Balancing > Inbound Link LB.

# On the DNS Listener tab, click Create.

# In the dialog box that opens, configure a DNS listener named dl1:

Figure 12 Creating DNS listener d1

 

# Configure DNS listener dl2 in the same way you configure DNS listener dl1.

Figure 13 Creating DNS listener dl2

 

Verifying the configuration

  1. Access http://www.example.com through the browser on the host, and verify that the device distributes the HTTP requests to the links link1 and link2.

# On the top navigation bar, click the Monitor tab.

# From the navigation pane, select Statistics > Server LB Statistics > Virtual Servers.

The Virtual Server Statistics page is as follows:

Figure 14 Virtual Server statistics

 

  1. Disable virtual server vs1, access http://www.example.com through the browser on the host, and verify that the device distributes the HTTP requests to only link link2.

# On the top navigation bar, click the Monitor tab.

# From the navigation pane, select Statistics > Server LB Statistics > Virtual Servers.

The Virtual Server Statistics page is as follows:

Figure 15 Virtual Server statistics

 

  1. Disable virtual server vs2, access http://www.example.com through the browser on the host, and verify that the device distributes the HTTP requests to only link link1.

# On the top navigation bar, click the Monitor tab.

# From the navigation pane, select Statistics > Server LB Statistics > Virtual Servers.

The Virtual Server Statistics page is as follows:

Figure 16 Virtual Server statistics