张国伟 发表于 2022-9-27 11:17:14

HCIA学习笔记三十一:静态路由的负载均衡

一、负载分担示例

• 在路由器B上配置到达路由器A的10.1.1.1网段的三条负载路由。
https://img2022.cnblogs.com/blog/1227623/202209/1227623-20220927081412489-1305312282.png
https://img2022.cnblogs.com/blog/1227623/202209/1227623-20220927081631975-2111961521.png
二、负载分担实验

2.1、拓扑图

• 分别在路由器中拖出2台AR2220、终端中拖出2台PC机,然后选择设备连线,点击Copper进行设备接线,完成后开启设备。之后,分别将PC1/2的IP地址配置为192.168.1.2/24、192.168.2.2/24,网关分别配置为192.168.1.1、192.168.2.1。
https://img2022.cnblogs.com/blog/1227623/202209/1227623-20220927082241327-821733211.png
2.2、配置

 AR1:
<Huawei>system-view
sysname AR1

/*配置路由端口的IP地址*/
int g0/0/0
ip add 192.168.1.1 24
int g0/0/1
ip add 12.1.1.1 24
int g0/0/2
ip add 21.1.1.1 24

q
display current-configuration| include static
display ip routing-table

ip route-static 192.168.2.0 255.255.255.0 12.1.1.2  --配置目标网段的静态路由,下一跳为直连端口的IP地址。
ip route-static 192.168.2.0 255.255.255.0 21.1.1.2AR2:
<Huawei>system-view
sysname AR2

/*配置路由端口的IP地址*/
int g0/0/0
ip add 192.168.2.1 24
int g0/0/1
ip add 12.1.1.2 24
int g0/0/2
ip add 21.1.1.2 24

q
display current-configuration| include static
display ip routing-table

ip route-static 192.168.1.0 24 12.1.1.1  --配置目标网段的静态路由,下一跳为直连端口的IP地址。
ip route-static 192.168.1.0 24 21.1.1.1 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: HCIA学习笔记三十一:静态路由的负载均衡