[eNSP] - Simple Configuration → Static Routing, Load Balancing, Backup Link

content

1. Static routing

1.1 Basic router configuration

1.2 Static routing configuration

1.3 Interoperability verification between hosts

2. Load sharing

2.1 Access the serial interface

2.2 Load sharing configuration

2.3 Check whether the new link is connected

3. Backup link

3.1 Alternate link configuration

3.2 Verify standby link connectivity

1. Static routing

Static routing is a way of routing, and routing items are manually configured instead of dynamically determined. Static routes do not change, even if network conditions have changed or been reconfigured. Generally, static routes are added to the routing table item by item by the network administrator.

Requirements: Make PC1, PC2, PC3 communicate with each other through static routing

1.1 Basic router configuration

AR1:

<Huawei>sys
[Huawei]sysname R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip a 192.168.1.1 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip a 10.1.1.1 24
[R1-GigabitEthernet0/0/1]q

AR2:

<Huawei>sys
[Huawei]sysname R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip a 192.168.2.2 24
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip a 10.1.1.2 24
[R2-GigabitEthernet0/0/1]int g0/0/2
[R2-GigabitEthernet0/0/2]ip a 20.1.1.2 24
[R2-GigabitEthernet0/0/2]q

AR3:

<Huawei>sys
[Huawei]sysname R3
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip a 192.168.3.3 24
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip a 20.1.1.3 24
[R3-GigabitEthernet0/0/1]q

1.2 Static routing configuration

The basic format of static route configuration is:

[route]ip route-static destination address network segment subnet mask next hop IP address

The configuration commands corresponding to this experiment are as follows:

AR1:

[R1]ip route-static 192.168.2.0 24 10.1.1.2
[R1]ip route-static 20.1.1.0 24 10.1.1.2
[R1]ip route-static 192.168.3.0 24 10.1.1.2

AR2:

[R2]ip route-static 192.168.1.0 24 10.1.1.1
[R2]ip route-static 192.168.3.0 24 20.1.1.3

AR3:

[R3]ip route-static 192.168.2.0 24 20.1.1.2
[R3]ip route-static 10.1.1.0 24 20.1.1.2
[R3]ip route-static 192.168.1.0 24 20.1.1.2

1.3 Interoperability verification between hosts

PC1

PC2

PC3

2. Load sharing

There are no less than two links to transmit data, and multiple links share the transmission pressure.

Requirement: Serial link load sharing between AR1 and AR2

2.1 Access the serial interface

Right-click on the Route router, select "Settings", select the "2SA" interface card, and drag it to the router interface

2.2 Load sharing configuration

  1. Except for one additional Serial link, the topology diagram is the same as the above static route, and the basic configuration is not repeated. Refer to the above configuration commands
  2. Serial link configuration load balancing is the same as the configuration command for configuring static routes

AR1:

[R1]int Serial 1/0/0
[R1-Serial1/0/0]ip a 12.1.1.1 24
[R1-Serial1/0/0]q
[R1]ip route-static 192.168.2.0 24 12.1.1.2
[R1]ip route-static 20.1.1.0 24 12.1.1.2
[R1]ip route-static 192.168.3.0 24 12.1.1.2

AR2:

[R2]int Serial 2/0/0
[R2-Serial2/0/0]ip a 12.1.1.2 24
[R2-Serial2/0/0]q
[R2]ip route-static 192.168.1.0 24 12.1.1.1

AR3:

[R3]ip route-static 12.1.1.0 24 20.1.1.2

2.3 Check whether the new link is connected

PC1

PC2

PC3

3. Backup link

A backup link is connected in series between Route routers. Different from load balancing, the backup link will not operate at the same time as the primary link under normal circumstances. The backup link will only operate when the primary link is disconnected.

3.1 Alternate link configuration

  1. Except for the Serial link between AR2 and AR3, other topology configurations are the same as the above load balancing topology configurations
  2. Configuration format [route]ip route-static destination address network segment subnet mask next hop IP address preference priority value
  3. The default priority value of the gateway is 60, and the smaller the value, the higher the priority. Therefore, the priority number of the backup link must be greater than 60.

AR1:

[R1]ip route-static 23.1.1.0 24 10.1.1.2 preference 80
[R1]ip route-static 23.1.1.0 24 12.1.1.2 preference 80

AR2:

[R2]int Serial 2/0/1
[R2-Serial2/0/1]ip a 23.1.1.2 24
[R2-Serial2/0/1]q
[R2]ip route-static 192.168.3.0 24 23.1.1.3 preference 80

AR3:

[R3]int Serial 3/0/1
[R3-Serial3/0/1]ip a 23.1.1.3 24
[R3-Serial3/0/1]q
[R3]ip route-static 192.168.1.0 24 23.1.1.2 preference 80
[R3]ip route-static 10.1.1.0 24 23.1.1.2 preference 80
[R3]ip route-static 12.1.1.0 24 23.1.1.2 preference 80
[R3]ip route-static 192.168.2.0 24 23.1.1.2 preference 80

3.2 Verify standby link connectivity

First, disconnect the link of the GE interface between AR2 and AR3

Then the hosts execute the Ping command to each other

  1. PC1 Ping PC3
  2. PC2 Ping PC3
  3. PC3 Ping PC1 and PC2

PC1

PC2

PC3

Verification succeeded!

Tags: Load Balance network

Posted by webmazter on Sun, 22 May 2022 07:49:11 +0300