How to realize router line load balancing

Source: Internet
Author: User

I want these lines connected to the Internet to be load-balanced and to provide business-transfer functionality when a single line fails. I don't know how to set this configuration. What does my Internet service provider need to do? How do I set up my router?

Answer: Your Internet service provider does not need to do anything. To achieve load balancing, the first step is to create an access list that divides your network into two parts. Based on this access list, you can define half of the IP addresses on a single line and define the other half of the IP address on another line. The

assumes that your network is 172.16.128.0/24. The "Allow IP address 10.172.16.128.0 0.0.0.254 access list 1" will only allow an IP address of only a few numbers. So you have two subnets now. You also have to modify the list based on each request and IP address. Now you can create a routing diagram.

Route map isp1_primary (routing table 10, first major ISP)

Match access-list 1 (Matches access list 1)
3lian material
Set interface Isp1_interface (set interface to the first major ISP interface)

Route map isp1_primary (routing Table 20, first major ISP)

Match access-list 1 (with access list 1-phase

Set Interface Isp2_interface (set interface to second main ISP interface)

again, you need to create another routing table for the second ISP.

Route map isp2_primary (routing table 10, second major ISP)

Match access-list 2 (matches access list 2)

Set interface isp2_i Nterface (set interface to the second major ISP interface)

Route map isp1_primary (routing Table 20, second major ISP)

Match access-list 2 (matching access list 2)

Set interface Isp1_interface (set interface to the first major ISP interface)
Picture Download
Access List 2 is another access list that matches the network. You need to use your own side.method to divide the network. Another option is to add a floating-point static route to the router.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.