- 积分
- 460
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2009-8-6
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
|
本帖最后由 fjcf120146 于 2011-12-18 15:38 编辑
这一题说glbp active状态当优先级相同时,根据接口ip高的选举。但我在模拟器环境中,并没看到效果,当优先级相同时,默认抢占未开启,是根据谁先配置glbp谁成为active,后者也不会抢占。各位童鞋有什么看法吗?
实验:sw2接口ip>sw1,优先级相同,但sw2任然为standby。
sw1#show running-config interface vlan 1
Building configuration...
Current configuration : 78 bytes
!
interface Vlan1
ip address 1.1.1.1 255.255.255.0
glbp 1 ip 1.1.1.252
end
sw1#
sw1#show glbp
Vlan1 - Group 1
State is Active
2 state changes, last state change 00:27:41
Virtual IP address is 1.1.1.252
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.892 secs
Redirect time 600 sec, forwarder timeout 14400 sec
Preemption disabled
Active is local
Standby is 1.1.1.2, priority 100 (expires in 7.784 sec)
Priority 100 (default)
Weighting 100 (default 100), thresholds: lower 1, upper 100
Load balancing: round-robin
Group members:
cc00.0c1c.0000 (1.1.1.1) local
cc01.0c1c.0000 (1.1.1.2)
There are 2 forwarders (1 active)
Forwarder 1
State is Active
1 state change, last state change 00:27:31
MAC address is 0007.b400.0101 (default)
Owner ID is cc00.0c1c.0000
Redirection enabled
Preemption enabled, min delay 30 sec
Active is local, weighting 100
Forwarder 2
State is Listen
MAC address is 0007.b400.0102 (learnt)
Owner ID is cc01.0c1c.0000
Redirection enabled, 599.680 sec remaining (maximum 600 sec)
Time to live: 14399.680 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 1.1.1.2 (primary), weighting 100 (expires in 9.676 sec)
sw1#
sw2#show running-config interface vlan 1
Building configuration...
Current configuration : 78 bytes
!
interface Vlan1
ip address 1.1.1.2 255.255.255.0
glbp 1 ip 1.1.1.252
end
sw2#
sw2#sho
sw2#show glbp
sw2#show glbp
Vlan1 - Group 1
State is Standby
1 state change, last state change 00:22:52
Virtual IP address is 1.1.1.252
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.192 secs
Redirect time 600 sec, forwarder timeout 14400 sec
Preemption disabled
Active is 1.1.1.1, priority 100 (expires in 8.316 sec)
Standby is local
Priority 100 (default)
Weighting 100 (default 100), thresholds: lower 1, upper 100
Load balancing: round-robin
Group members:
cc00.0c1c.0000 (1.1.1.1)
cc01.0c1c.0000 (1.1.1.2) local
There are 2 forwarders (1 active)
Forwarder 1
State is Listen
MAC address is 0007.b400.0101 (learnt)
Owner ID is cc00.0c1c.0000
Time to live: 14398.316 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 1.1.1.1 (primary), weighting 100 (expires in 7.360 sec)
Forwarder 2
State is Active
1 state change, last state change 00:23:03
MAC address is 0007.b400.0102 (default)
Owner ID is cc01.0c1c.0000
Preemption enabled, min delay 30 sec
Active is local, weighting 100
sw2#
|
|