84、网关负载均衡配置实验之GLBP

本文介绍了Gateway Load Balancing Protocol (GLBP)的基本概念与配置方法,并通过实例展示了如何在多台路由器上配置GLBP实现负载均衡。具体包括实验拓扑搭建、基本网络配置及GLBP配置步骤。

1、实验拓扑

wKiom1aA-0qC6a-wAABMvjFbuac466.png

Gateway Load Balancing Protocol


AVF(Active virtual forwarder)

所有运行GLBP的路由器,交换机都成为AVF

AVG(Active virtual gateway)

从所有AVF中选取出一个AVG(高优先级,高IP)


GLBP一个虚拟网关IP,多个虚拟MAC(AVG为每台AVF分配一个虚拟MAC地址)


当PC发送ARP Request时,AVG进行响应,回应一个虚拟MAC地址,该虚拟MAC地址可能是AVG本身的虚拟MAC地址,也可能是其中AVF中任一个的虚拟MAC地址。


2、基础配置

R1配置

interface Serial0/0

 ip address 12.1.1.1 255.255.255.0

interface Serial0/1

 ip address 13.1.1.1 255.255.255.0

interface Serial0/2

 ip address 15.1.1.1 255.255.255.0


router ospf 110

 router-id 1.1.1.1

 log-adjacency-changes

 network 12.1.1.0 0.0.0.255 area 0

 network 13.1.1.0 0.0.0.255 area 0

 network 15.1.1.0 0.0.0.255 area 0


R2配置

interface Serial0/0

 ip address 12.1.1.2 255.255.255.0

interface FastEthernet1/0

 ip address 100.1.1.2 255.255.255.0

router ospf 110

 router-id 2.2.2.2

 network 12.1.1.0 0.0.0.255 area 0

 network 100.1.1.0 0.0.0.255 area 0


R3配置

interface Serial0/1

 ip address 13.1.1.3 255.255.255.0

interface FastEthernet1/0

 ip address 100.1.1.3 255.255.255.0

router ospf 110

 router-id 3.3.3.3

 network 13.1.1.0 0.0.0.255 area 0

 network 100.1.1.0 0.0.0.255 area 0


R4配置

no ip routing

interface FastEthernet1/0

 ip address 100.1.1.4 255.255.255.0

ip default-gateway 100.1.1.254


R5配置

interface Serial0/2

 ip address 15.1.1.5 255.255.255.0

router ospf 110

 router-id 5.5.5.5

 network 15.1.1.0 0.0.0.255 area 0


R6配置

no ip routing

interface FastEthernet1/0

 ip address 100.1.1.6 255.255.255.0

ip default-gateway 100.1.1.254


3、配置GLBP

R2配置


interface FastEthernet1/0

 glbp 1 ip 100.1.1.254


R3配置

interface FastEthernet1/0

 glbp 1 ip 100.1.1.254


3、测试GLBP

wKiom1aA_MOD00wRAAAqcPA9A-Q935.png

wKiom1aA_MTg_sjqAAAqbgCWQNw960.png

两台不同的PC分别从不同的路由器出去了,证明确实起到了负载均衡。






      本文转自开源殿堂 51CTO博客,原文链接:http://blog.51cto.com/kaiyuandiantang/1729258,如需转载请自行联系原作者




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值