Building configuration...
Current configuration : 965 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
memory-size iomem 5
no aaa new-model
ip subnet-zero
!
ip cef
!
no ftp-server write-enable
!
interface Serial0/0
ip address 200.0.2.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 200.0.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 200.0.0.254 255.255.255.0
duplex auto
speed auto
!
router rip
version 2
network 200.0.0.0
network 200.0.1.0
network 200.0.2.0
no auto-summary
!
ip http server
ip classless
!
control-plane
!
line con 0
transport preferred all
transport output all
line aux 0
transport preferred all
transport output all
line vty 0 4
!
end
验证一下:
在R1上运行 show glbp brief:
在R2上运行 show glbp brief:
在R1上运行 show glbp f0/0:
R1#sh glbp f0/0
FastEthernet0/0 - Group 1
State is Standby
4 state changes, last state change 00:18:12
Virtual IP address is 10.0.0.200
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.636 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Preemption enabled, min delay 0 sec
Active is 10.0.0.254, priority 100 (expires in 7.760 sec)
Standby is local
Priority 100 (default)
Weighting 100 (default 100), thresholds: lower 1, upper 100
Load balancing: round-robin
Group members:
cc00.04e0.0000 (10.0.0.253) local
cc00.0654.0000 (10.0.0.254)
There are 2 forwarders (1 active)
Forwarder 1
State is Active
3 state changes, last state change 00:17:56
MAC address is 0007.b400.0101 (default)
Owner ID is cc00.04e0.0000
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 cc00.0654.0000
Time to live: 14397.148 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 10.0.0.254 (primary), weighting 100 (expires in 7.144 sec)
在R2上运行 show glbp f0/0:
R2#sh glbp f0/0
FastEthernet0/0 - Group 1
State is Active
2 state changes, last state change 00:19:32
Virtual IP address is 10.0.0.200
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.144 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Preemption enabled, min delay 0 sec
Active is local
Standby is 10.0.0.253, priority 100 (expires in 7.148 sec)
Priority 100 (default)
Weighting 100 (default 100), thresholds: lower 1, upper 100
Load balancing: round-robin
Group members:
cc00.04e0.0000 (10.0.0.253)
cc00.0654.0000 (10.0.0.254) local
There are 2 forwarders (1 active)
Forwarder 1
State is Listen
2 state changes, last state change 00:18:43
MAC address is 0007.b400.0101 (learnt )
Owner ID is cc00.04e0.0000
Redirection enabled, 597.136 sec remaining (maximum 600 sec)
Time to live: 14399.688 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 10.0.0.253 (primary), weighting 100 (expires in 9.684 sec)
Arp replies sent: 2
Forwarder 2
State is Active
1 state change, last state change 00:21:55
MAC address is 0007.b400.0102 (default)
Owner ID is cc00.0654.0000
Redirection enabled
Preemption enabled, min delay 30 sec
Active is local, weighting 100
Arp replies sent: 1
在主机PC1上Ping远端服务器Server,然后使用ARP -A来查看网关MAC地址。截图如下:
在主机PC2上Ping远端服务器Server,然后使用arp -a来查看网关MAC地址。截图如下: