GLBP 的配置
1、 实验目的:
通过本次的实验,我们可以掌握如下技能
1) 理解GLBP的工作原理。
2) 掌握GLBP的配置。
2、 实验拓扑图:
3、 实验步骤:
(1) 配置路由器的接口地址和协议
R1(config)#interface g0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#interface s0/1
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config)#router rip
R1(config-router )#network 192.168.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#passive-interface g0/0
R2(config)#interface g0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#interface s0/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config)#router rip
R2(config-router )#network 192.168.1.0
R2(config-router)#network 192.168.2.0
R2(config-router)#passive-interface g0/0
R3(config)#interface g0/0
R3(config-if)#ip address 192.168.1.3 255.255.255.0
R3(config-if)#no shutdown
R3(config)#interface s0/1
R3(config-if)#ip address 192.168.2.3 255.255.255.0
R3(config)#router rip
R3(config-router )#network 192.168.1.0
R3(config-router)#network 192.168.2.0
R3(config-router)#passive-interface g0/0
R4(config)#interface loopback 0
R4(config-if)#ip addrss 4.4.4.4 255.0.0.0
R4(config-if)#no shutdown
R4(confit)#interface g0/1
R4(config-if)#ip address 192.168.2.4 255.255.255.0
R4(config-if)#shutdown
R4(config)#router rip
R4(config-router)#network 4.0.0.0
R4(config-router)#network 192.168.2.0
(2) 配置GLBP
R1(config)#interface g0/0
R1(config-if)#glbp 1 ip 192.168.1.254
R1(config-if)#glbp 1 priority 200
R1(config-if)#glbpl 1 authentication md5 key-string benet
R2(config)#interface g0/0
R2(config-if)#glbp 1 ip 192.168.1.254
R2(config-if)#glbp 1 priority 180
R2(config-if)#glbpl 1 authentication md5 key-string benet
R3(config)#interface g0/0
R3(config-if)#glbp 1 ip 192.168.1.254
R3(config-if)#glbp 1 priority 160
R3(config-if)#glbpl 1 authentication md5 key-string benet
OK 配置完成!!!!!!!!!!!!!!!!!!
转载于:https://blog.51cto.com/lorna8023/244077