第一步:配置各路由器使全网互通第二步:配置GLBPR1上的配置track 100 interface FastEthernet0/0 line-protocolinterface FastEthern
.
第一步:配置各路由器使全网互通
第二步:配置GLBP
R1上的配置
track 100 interface FastEthernet0/0 line-protocol
interface FastEthernet0/0
no switchport
ip address 12.0.0.1 255.255.255.0
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
glbp 1 ip 192.168.1.253
glbp 1 priority 105
glbp 1 preempt
glbp 1 weighting track 100
glbp 2 ip 192.168.1.254
glbp 2 preempt
!
router eigrp 1
network 0.0.0.0
no auto-summary
R3上的配置
track 100 interface FastEthernet0/0 line-protocol
interface FastEthernet0/0
no switchport
ip address 23.0.0.3 255.255.255.0
interface Vlan1
ip address 192.168.1.3 255.255.255.0
glbp 1 ip 192.168.1.253
glbp 1 preempt
glbp 2 ip 192.168.1.254
glbp 2 priority 105
glbp 2 preempt
glbp 2 weighting track 100
!
router eigrp 1
network 0.0.0.0
no auto-summary
第三步:测试:
全体过程和在路由器上的配置一样
测试R1
pc4#ping 2.2.2.2 re 33333333
Type escape sequence to abort.
Sending 33333333, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!....!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!!!!!!!!!!!.!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!.!.!.!.!.!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!.
Success rate is 97 percent (1320/1348), round-trip min/avg/max = 28/63/1068 ms
在R3上进行测试
pc5#ping 2.2.2.2 re 2222222
Type escape sequence to abort.
Sending 2222222, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!.!.!.!.!.!.!.!.!.!.!.
!.!.!.!!!!!!!!!!!!!!!!............!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!.!.!.!.!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.
Success rate is 96 percent (924/959), round-trip min/avg/max = 28/63/1052 ms
SW1#sh glbp
Vlan1 - Group 1
State is Active
5 state changes, last state change 00:06:39
Virtual IP address is 192.168.1.253
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.956 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Preemption enabled, min delay 0 sec
Active is local
Standby is 192.168.1.3, priority 100 (expires in 8.044 sec)
Priority 105 (configured)
Weighting 100 (default 100), thresholds: lower 1, upper 100
Track object 100 state Up decrement 10
Load balancing: round-robin
Group members:
cc00.0d58.0000 (192.168.1.1) local
cc03.0d58.0000 (192.168.1.3)
There are 2 forwarders (1 active)
Forwarder 1
State is Active
3 state changes, last state change 00:06:49
MAC address is 0007.b400.0101 (default)
Owner ID is cc00.0d58.0000
Redirection enabled
Preemption enabled, min delay 30 sec
Active is local, weighting 100
Arp replies sent: 2
Forwarder 2
State is Listen
8 state changes, last state change 00:00:51
MAC address is 0007.b400.0102 (learnt)
Owner ID is cc03.0d58.0000
Redirection enabled, 597.572 sec remaining (maximum 600 sec)
Time to live: 14397.572 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 192.168.1.3 (primary), weighting 100 (expires in 7.568 sec)
Arp replies sent: 1
Vlan1 - Group 2
State is Standby
18 state changes, last state change 00:00:41
Virtual IP address is 192.168.1.254
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.480 secs
Redirect time 600 sec, forwarder time-out 14400 sec
Preemption enabled, min delay 0 sec
Active is 192.168.1.3, priority 105 (expires in 9.504 sec)
Standby is local
Priority 100 (default)
Weighting 100 (default 100), thresholds: lower 1, upper 100
Load balancing: round-robin
Group members:
cc00.0d58.0000 (192.168.1.1) local
cc03.0d58.0000 (192.168.1.3)
There are 2 forwarders (1 active)
Forwarder 1
State is Active
3 state changes, last state change 00:06:50
MAC address is 0007.b400.0201 (default)
Owner ID is cc00.0d58.0000
Preemption enabled, min delay 30 sec
Active is local, weighting 100
Forwarder 2
State is Listen
8 state changes, last state change 00:00:51
MAC address is 0007.b400.0202 (learnt)
Owner ID is cc03.0d58.0000
Time to live: 14399.052 sec (maximum 14400 sec)
Preemption enabled, min delay 30 sec
Active is 192.168.1.3 (primary), weighting 90 (expires in 9.052 sec)