Experience Sharing Routing backup and load balancing

Source: Internet
Author: User

Recently, some netizens asked me questions about multiple external route backups and SLB. Due to the time relationship, I simply wrote the configuration .... the following uses dual-External route backup as an example .. A multi-outer line is nothing more than adding a corresponding policy route on the basis of the original .... if any omission exists, please advise ....

The premise is that all interfaces and other basic configurations are complete.

(1) You can add two default routes to the two lines: the first line takes priority. If the first line fails, it will automatically jump to the second line.

Ip route 0.0.0.0 0.0.0.0 x. x

Ip route 0.0.0.0 0.0.0.0 y. y

(2) If the first line is normal and needs to be loaded by the second line, you can configure a policy route based on (1. As follows:

A. configure policies for some CIDR blocks. For example, redirect 192.168.1.0 and 192.168.2.0 to some loads on the y. y. y line.

Access-list 12 permit 192.168.1.0 0.0.255

Access-list 12 permit 192.168.2.0 0.0.255

Route-map yy permit 10 (defines the policy yy)

Match ip address 12 (matching Control List 12)

Set ip next-hop y. y (set the next hop address, that is, the next router interface address through which the data packet passes [gateway])

B. Make policies for some hosts. For example, jump host 192.168.3.11 and host 192.168.4.12 to y. y. y. y line load (by default, these two CIDR blocks use the first default route, that is, x. x. x. x ).

Access-list 101 permit ip host 192.168.3.11 any

Access-list 101 permit ip host 192.168.4.12 any

Route-map yy permit 20 (defines the policy yy)

Match ip address 101 (matching control list 101)

Set ip next-hop y. y (set the next hop address, that is, the next router interface address through which the data packet passes [gateway])

In this way, by default, except for the network segments and hosts defined in the preceding Policy Routing, all hosts in other network segments use the Line x. x. x. x connects to the external network, if x. x. x. if the line x fails, the default route will change to y. y. y. y. y. y. y line, so it will not be affected .... article entry: csh responsible editor: csh

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.