There are many ways to build network high availability, such as:
1. Server clusters include lb: Load balanced cluster HA: High Availability Cluster
2. Routing device HSRP: Hot Backup Routing protocol VRRP: virtual Router Redundancy protocol
3.Linux Network Interface Binding bond
4. Lan LAN: STP RSTP MSTP
5. WAN Link: Floating static route standby Interface Link Bundle
Let's talk about the methods in the WAN link this time:
Here we give a case to detail the configuration:
A company's headquarters and divisions are in different places, this allows for secure and highly available communication between the Headquarters machine PC1 and the partial machine PC2, where the telecommunications provider network and the ISDN dial-up network are located, but where dial-up networking bandwidth is low, it is normal to go telecom (that is, the S0 port in the following figure), When this main link fails, automatically goes to Dial-Up Networking to continue normal communication, as follows:
1. Scheme: Static route floating:
R0: Configuration:
[R0]int S0
[R0-SERIAL0]IP Add 192.168.2.1 24 Configure IP for S0 port
[r0-serial0]int S1 into WAN link interface
[R0-SERIAL1]IP Add 192.168.3.1 24 Configure IP for S1 port
[R0-serial1]int ETH 0
[R0-ETHERNET0]IP Add 192.168.1.1 24 Configure IP for eth0 port
[R0-ethernet0]quit
[R0]OSPF enable to start the OSPF protocol
[R0-ospf]int ETH 0
[R0-ETHERNET0]OSPF en area 0 adds eth0 port to zone 0 of the OSPF protocol
[R0-ethernet0]int S0
[R0-SERIAL0]OSPF en area 0 also adds S0 port to zone 0
[R0-serial0]quit
[R0]ip Route 192.168.4.0 24 192.168.3.2 configures a static route, which is another link.
R1:
[Router]sysname R1
[R1]int S0
[R1-serial0]ip Add 192.168.2.2 24
[R1-serial0]int S1
[R1-serial1]ip Add 192.168.3.2 24
[R1-serial1]int ETH 0
[R1-ethernet0]ip Add 192.168.4.1 24
[R1-ethernet0]quit
[R1]OSPF en
[R1-ospf]int ETH 0
[R1-ETHERNET0]OSPF en area 0
[R1-ethernet0]int S0
[R1-SERIAL0]OSPF en area 0
[R1-serial0]quit
[R1]ip Route 192.168.1.0 24 192.168.3.1