《GLBP基础配置》由会员分享,可在线阅读,更多相关《GLBP基础配置(3页珍藏版)》请在金锄头文库上搜索。
1、 所用运行GLBP的设备默认都是一个AVF。每三秒发一次Hello包,发送地址为224.0.0.102,使用UDP端口3222,通过Hello选举AVG。AVG去定义MAC地址,为每个设备定义一个虚MAC地址。AVG回应ARP的请求报,为请求者分发虚MAC地址。如果某个设备的上行链路出错,则通过Hello移交数据包的虚MAC给另一个设备。AVF的转发负载比率可以通过weighting参数进行设置,weighting值默认为100,每次出错weighting值默认减少10,减到最低时该设备将不会成为AVF基本配置:interface FastEthernet1/14 no switchport
2、ip address 100.1.1.2 255.255.255.0 glbp 1 ip 100.1.1.1 glbp 1 priority 110 glbp 1 preempt查看:SW1#sho glbp brief Interface Grp Fwd Pri State Address Active router Standby routeFa1/14 1 - 110 Active 100.1.1.1 local 100.1.1.3 Fa1/14 1 1 7 Active 0007.b400.0101 local -Fa1/14 1 2 7 Listen 0007.b400.0102 1
3、00.1.1.3 -追踪路由:track 1 ip route 0.0.0.0 0.0.0.0 reachabilityinterface FastEthernet1/14 no switchport ip address 100.1.1.2 255.255.255.0 glbp 1 ip 100.1.1.1 glbp 1 priority 110 glbp 1 preempt glbp 1 weighting track 1 decrement 20调整权重范围:interface FastEthernet1/14 no switchport ip address 100.1.1.2 255
4、.255.255.0 glbp 1 ip 100.1.1.1 glbp 1 priority 110 glbp 1 preempt glbp 1 weighting 110 lower 91 upper 105 初始值110,低于90失去AVF资格,大于105恢复AVF资格 glbp 1 weighting track 1 decrement 20GLBP认证:interface FastEthernet1/14 no switchport ip address 100.1.1.2 255.255.255.0 glbp 1 ip 100.1.1.1 glbp 1 priority 110 gl
5、bp 1 preempt glbp 1 weighting 100 lower 90 glbp 1 authentication md5 key-string cisco glbp 1 weighting track 1 decrement 20查看:SW1#sho glbp FastEthernet1/14 - Group 1 State is Active 6 state changes, last state change 00:01:55 Virtual IP address is 100.1.1.1 Hello time 3 sec, hold time 10 sec Next he
6、llo sent in 2.388 secs Redirect time 600 sec, forwarder time-out 14400 sec Authentication MD5, key-string cisco Preemption enabled, min delay 0 sec Active is local Standby is 100.1.1.3, priority 100 (expires in 6.780 sec) Priority 110 (configured) Weighting 80, low (configured 100), thresholds: lowe
7、r 90, upper 100 Track object 1 state Down decrement 20 Load balancing: round-robin Group members: cc08.0c88.f10e (100.1.1.2) local cc09.0c88.f10e (100.1.1.3) authenticated There are 2 forwarders (0 active) Forwarder 1 State is Listen 8 state changes, last state change 00:00:18 MAC address is 0007.b4
8、00.0101 (default) Owner ID is cc08.0c88.f10e Redirection enabled Preemption enabled, min delay 30 sec Active is 100.1.1.3 (secondary), weighting 100 (expires in 6.616 sec) Forwarder 2 State is Listen 4 state changes, last state change 00:00:18 MAC address is 0007.b400.0102 (learnt) Owner ID is cc09.0c88.f10e Redirection enabled, 596.604 sec remaining (maximum 600 sec) Time to live: 14396.600 sec (maximum 14400 sec) Preemption enabled, min delay 30 secActive is 100.1.1.3 (primary), weighting 100 (expires in 6.592 sec)文章来源:西安雷德教育