A-A+

今天完成的一次 hsrp 实验

2016年01月05日 站长资讯 暂无评论

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

一、各设备接口配置地址

  1. ESW1:  
  2. interface FastEthernet0/0  
  3.  ip address 2.2.2.2 255.255.255.0  
  4.  shutdown  
  5.  duplex auto  
  6.  speed auto  
  7.   
  8. interface FastEthernet1/0  
  9.  no switchport  
  10.  ip address 4.4.4.1 255.255.255.0  
  11.  no ip proxy-arp  
  12.  speed 100    (手工指定)  
  13.  duplex full  (手工指定)  
  14.    
  15. ESW3:  
  16. interface Loopback0  
  17.  ip address 1.1.1.1 255.255.255.0  
  18.    
  19. interface FastEthernet0/0  
  20.  ip address 2.2.2.1 255.255.255.0  
  21.  duplex auto  
  22.  speed auto  
  23.    
  24. interface FastEthernet1/0  
  25.  no switchport  
  26.  ip address 3.3.3.1 255.255.255.0  
  27.    
  28. ESW2:  
  29.    
  30. interface FastEthernet0/0  
  31.  ip address 3.3.3.3 255.255.255.0  
  32.  duplex auto  
  33.  speed auto  
  34. !  
  35. interface FastEthernet1/0  
  36.  no switchport  
  37.  ip address 4.4.4.2 255.255.255.0  
  38.  no ip proxy-arp  
  39.  duplex full  (手工指定)  
  40.  speed 100   (手工指定)  

ESW4(模拟PC)

  1. interface FastEthernet0/0  
  2.  ip address 4.4.4.3 255.255.255.0  
  3.  no ip proxy-arp  
  4.  no ip route-cache  
  5.  duplex auto  
  6.  speed auto  
  7. no ip routing  
  8. ip default-gateway 4.4.4.254  

二、配置路由

  1. ESW1:  
  2. router rip  
  3.  network 2.0.0.0  
  4.  network 4.0.0.0  
  5.  no auto-summary  
  6.   
  7.    
  8. ESW3:  
  9. router rip  
  10.  network 1.0.0.0  
  11.  network 2.0.0.0  
  12.  network 3.0.0.0  
  13.  no auto-summary  
  14.   
  15.    
  16. ESW2:  
  17. router rip  
  18.  network 3.0.0.0  
  19.  network 4.0.0.0  
  20.  no auto-summary  

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

  1. ESW1:  
  2. interface FastEthernet1/0  
  3.  standby 1 ip 4.4.4.254   虚拟ip地址  
  4.  standby 1 priority 120  优先级数值高优先级大  
  5.  standby 1 preempt     抢占机制  
  6.  standby 1 track FastEthernet0/0 15  跟踪f0/0口down掉后优先级降15(备用设备无需开启此功能,因为正常情况本来就是不走此线路)  
  7.   
  8. ESW2:  
  9. interface FastEthernet1/0   
  10.  standby 1 ip 4.4.4.254 虚拟ip地址  
  11.  standby 1 priority 110 优先级数值110当激活设备故障后优先级值降15后比110低5  
  12.  standby 1 preempt     抢占机制  

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

标签:

给我留言