今天用gns3做了一个hsrp实验,过程出现一点小插曲。ESW1与ESW2的f1/0接口无法学习到对方的arp,直连业务不通。通过查看show int fa1/0 发现双工与速度不致,通过手工分配后业务正常。不知道类似问题是不是模拟器软件导致,实际应用思科设备没有用过。但华为我没有碰到过。

先上拓扑,4.4.4.254为虚拟网关,测试用4.4.4.3模拟PC,show掉esw1的f0/0口模拟线路故障。

wKioL1Ueqr-z3OelAADYLYhJ-pQ315.jpg

一、各设备接口配置地址


ESW1:

interface FastEthernet0/0

 ip address 2.2.2.2 255.255.255.0

 shutdown

 duplex auto

 speed auto


interface FastEthernet1/0

 no switchport

 ip address 4.4.4.1 255.255.255.0

 no ip proxy-arp

 speed 100    (手工指定)

 duplex full  (手工指定)



ESW3:

interface Loopback0

 ip address 1.1.1.1 255.255.255.0


interface FastEthernet0/0

 ip address 2.2.2.1 255.255.255.0

 duplex auto

 speed auto


interface FastEthernet1/0

 no switchport

 ip address 3.3.3.1 255.255.255.0



ESW2:

interface FastEthernet0/0

 ip address 3.3.3.3 255.255.255.0

 duplex auto

 speed auto

!

interface FastEthernet1/0

 no switchport

 ip address 4.4.4.2 255.255.255.0

 no ip proxy-arp

 duplex full  (手工指定)

 speed 100   (手工指定)


ESW4(模拟PC)


interface FastEthernet0/0

 ip address 4.4.4.3 255.255.255.0

 no ip proxy-arp

 no ip route-cache

 duplex auto

 speed auto

no ip routing

ip default-gateway 4.4.4.254


二、配置路由


ESW1:

router rip

 network 2.0.0.0

 network 4.0.0.0

 no auto-summary


ESW3:

router rip

 network 1.0.0.0

 network 2.0.0.0

 network 3.0.0.0

 no auto-summary


ESW2:

router rip

 network 3.0.0.0

 network 4.0.0.0

 no auto-summary


三、配置ESW1与ESW2 f1/0接口hsrp

ESW1:

interface FastEthernet1/0

 standby 1 ip 4.4.4.254   虚拟ip地址

 standby 1 priority 120  优先级数值高优先级大

 standby 1 preempt     抢占机制

 standby 1 track FastEthernet0/0 15  跟踪f0/0口down掉后优先级降15(备用设备无需开启此功能,因为正常情况本来就是不走此线路)


ESW2:

interface FastEthernet1/0 

 standby 1 ip 4.4.4.254 虚拟ip地址

 standby 1 priority 110 优先级数值110当激活设备故障后优先级值降15后比110低5

 standby 1 preempt     抢占机制



设备完后进行业务测试,用模拟PC ping 1.1.1.1 re 9999,再down掉ESW10/0后。备用网关抢占成功后,但ping 包却依然还在掉包,延时很长。网络上很多网友也有类型的情况。