免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 八月初三
打印 上一主题 下一主题

CISCO3825路由器配置HSRP实现双机备份的问题【新问题出现】 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-12-18 16:16 |只看该作者
或者我在route1 和route2上各自监视各自内外网的接口GE0和FE0,这样只要断一个就切换?大家觉得呢

论坛徽章:
3
辰龙
日期:2013-11-20 23:03:57子鼠
日期:2014-05-26 14:46:482015年亚洲杯之伊拉克
日期:2015-01-30 14:29:38
12 [报告]
发表于 2008-12-18 16:17 |只看该作者
你可以这样测试hsrp是否有效:
找台电脑不断的ping 192.168.108.103 和192.168.106.3
拔掉一根网线或关机看还是不是通的

论坛徽章:
0
13 [报告]
发表于 2008-12-18 16:18 |只看该作者
原帖由 ssffzz1 于 2008-12-18 16:16 发表
你需要配置接口追踪或者RTR组。



请详细指点下吧

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
14 [报告]
发表于 2008-12-18 16:20 |只看该作者
搜索,ip sla
我手头没有范例了。

论坛徽章:
0
15 [报告]
发表于 2008-12-18 16:21 |只看该作者
原帖由 seven007 于 2008-12-18 16:17 发表
你可以这样测试hsrp是否有效:
找台电脑不断的ping 192.168.108.103 和192.168.106.3
拔掉一根网线或关机看还是不是通的




我在108网段配置了一个测试机:108.22,不停ping外网测试机106.111,关闭活动路由器是通的,但是拔下活动路由器的GE0/0或者FE0/0/0还是不通的,也就是说有一端没有切换

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
16 [报告]
发表于 2008-12-18 16:21 |只看该作者
或者是配置Track接口也可以。 命令行:

CE-E(config-if)#standby ?
  <0-255>         group number
  authentication  Authentication
  delay           HSRP initialisation delay
  ip              Enable HSRP and set the virtual IP address
  mac-address     Virtual MAC address
  name            Redundancy name string
  preempt         Overthrow lower priority Active routers
  priority        Priority level
  redirect        Configure sending of ICMP Redirect messages with an HSRP
                  virtual IP address as the gateway IP address
  timers          Hello and hold timers
  track           Priority tracking
  use-bia         HSRP uses interface's burned in address
  version         HSRP version

CE-E(config-if)#standby track ?
  <1-500>            Tracked object number
  Async              Async interface
  BVI                Bridge-Group Virtual Interface
  CDMA-Ix            CDMA Ix interface
  CTunnel            CTunnel interface
  Dialer             Dialer interface
  Ethernet           IEEE 802.3
  Lex                Lex interface
  Loopback           Loopback interface
  MFR                Multilink Frame Relay bundle interface
  Multilink          Multilink-group interface
  Port-channel       Ethernet Channel of interfaces
  Serial             Serial
  Tunnel             Tunnel interface
  Vif                PGM Multicast Host interface
  Virtual-PPP        Virtual PPP interface
  Virtual-TokenRing  Virtual TokenRing

CE-E(config-if)#standby track

论坛徽章:
3
辰龙
日期:2013-11-20 23:03:57子鼠
日期:2014-05-26 14:46:482015年亚洲杯之伊拉克
日期:2015-01-30 14:29:38
17 [报告]
发表于 2008-12-18 16:22 |只看该作者
一个例子:
1.2.           HSRP监视接口举例
        
        (1)配置需求
                如上图, 即使路由器A仍然工作,但当其连接Internet的接口不可用时,可能希望由路由器B来执行网关工作。可通过配置监视接口来实现上述需求。
                为示例起见,备份组号为1,并增加授权字和计时器的配置,在该应用中不是必须的。
        (2)配置步骤
        配置路由器A:
        Quidway(config-if-Ethernet0)# standby  1 ip 202.38.160.111
        Quidway(config-if-Ethernet0)# standby  1 preempt
        Quidway(config-if-Ethernet0)# standby  1 priority 120
        Quidway(config-if-Ethernet0)# standby  1 authentication QUIDWAY
        Quidway(config-if-Ethernet0)# standby  1 timers  5  15
        Quidway(config-if-Ethernet0)# standby  1track  serial0  30
        
        配置路由器B:
        Quidway(config-if-Ethernet0)# standby  1 ip 202.38.160.111
        Quidway(config-if-Ethernet0)# standby  1 preempt
        Quidway(config-if-Ethernet0)# standby  1 authentication QUIDWAY
        Quidway(config-if-Ethernet0)# standby  1 timers  5  15
        
        (3)配置说明
                正常情况下,路由器A执行网关工作,当路由器A的接口serial0不可用时,路由器A的优先级降低30,低于路由器B优先级,路由器B将抢占成为活动路由器执行网关工作。
                当路由器A的接口serial0恢复工作后,路由器A能够继续成为活动路由器执行网关工作

论坛徽章:
0
18 [报告]
发表于 2008-12-18 16:33 |只看该作者
interface vlan 100 也track gi0/0/0好了

论坛徽章:
0
19 [报告]
发表于 2008-12-18 16:51 |只看该作者
确实是这样,我把端口都track后,可以了

  1. ==============================
  2. route-1(config-if)#standby 1 track fastEthernet 0/0/0
  3. route-1(config-if)#exit
  4. route-1(config-if)#standby 2 track GigabitEthernet 0/0
  5. route-1(config-if)#end
  6. route-1#wr
  7. Building configuration...
  8. [OK]
  9. route-1#
  10. *Dec 18 08:43:10.659: %SYS-5-CONFIG_I: Configured from console by root on console
  11. *Dec 18 08:43:12.931: %HSRP-6-STATECHANGE: Vlan100 Grp 2 state Active -> Speak
  12. route-1#
  13. route-1#
  14. route-1#
  15. route-1#
  16. *Dec 18 08:44:16.459: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up
  17. *Dec 18 08:44:17.459: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
  18. *Dec 18 08:44:17.927: %HSRP-6-STATECHANGE: Vlan100 Grp 2 state Standby -> Active
  19. *Dec 18 08:45:17.627: %HSRP-6-STATECHANGE: GigabitEthernet0/0 Grp 1 state Standby -> Active
  20. route-1#sh stan
  21. route-1#sh standby
  22. GigabitEthernet0/0 - Group 1
  23.   State is Active
  24.     5 state changes, last state change 00:00:34
  25.   Virtual IP address is 192.168.108.103
  26.   Active virtual MAC address is 0000.0c07.ac01
  27.     Local virtual MAC address is 0000.0c07.ac01 (v1 default)
  28.   Hello time 5 sec, hold time 15 sec
  29.     Next hello sent in 0.500 secs
  30.   Preemption enabled, delay min 60 secs
  31.   Active router is local
  32.   Standby router is 192.168.108.102, priority 105 (expires in 10.496 sec)
  33.   Priority 110 (configured 110)
  34.     Track interface GigabitEthernet0/0 state Up decrement 10
  35.     Track interface FastEthernet0/0/0 state Up decrement 10
  36.   IP redundancy name is "hsrp-Gi0/0-1" (default)
  37. Vlan100 - Group 2
  38.   State is Active
  39.     5 state changes, last state change 00:01:34
  40.   Virtual IP address is 192.168.106.3
  41.   Active virtual MAC address is 0000.0c07.ac02
  42.     Local virtual MAC address is 0000.0c07.ac02 (v1 default)
  43.   Hello time 5 sec, hold time 15 sec
  44.     Next hello sent in 0.796 secs
  45.   Preemption enabled
  46.   Active router is local
  47.   Standby router is 192.168.106.2, priority 105 (expires in 14.332 sec)
  48.   Priority 110 (configured 110)
  49.     Track interface GigabitEthernet0/0 state Up decrement 10
  50.     Track interface FastEthernet0/0/0 state Up decrement 10
  51.   IP redundancy name is "hsrp-Vl100-2" (default)
  52. route-1#
  53. *Dec 18 08:46:36.455: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to down
  54. *Dec 18 08:46:36.455: %HSRP-6-STATECHANGE: GigabitEthernet0/0 Grp 1 state Active -> Init
  55. *Dec 18 08:46:37.455: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down
  56. *Dec 18 08:46:37.927: %HSRP-6-STATECHANGE: Vlan100 Grp 2 state Active -> Speak
  57. *Dec 18 08:47:26.459: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up
  58. *Dec 18 08:47:27.459: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
  59. *Dec 18 08:47:27.927: %HSRP-6-STATECHANGE: Vlan100 Grp 2 state Standby -> Active
  60. *Dec 18 08:48:27.627: %HSRP-6-STATECHANGE: GigabitEthernet0/0 Grp 1 state Standby -> Active
  61. route-1#
  62. route-1#
  63. route-1#sh stand
  64. route-1#sh standby
  65. GigabitEthernet0/0 - Group 1
  66.   State is Active
  67.     8 state changes, last state change 00:01:18
  68.   Virtual IP address is 192.168.108.103
  69.   Active virtual MAC address is 0000.0c07.ac01
  70.     Local virtual MAC address is 0000.0c07.ac01 (v1 default)
  71.   Hello time 5 sec, hold time 15 sec
  72.     Next hello sent in 1.592 secs
  73.   Preemption enabled, delay min 60 secs
  74.   Active router is local
  75.   Standby router is 192.168.108.102, priority 105 (expires in 11.588 sec)
  76.   Priority 110 (configured 110)
  77.     Track interface GigabitEthernet0/0 state Up decrement 10
  78.     Track interface FastEthernet0/0/0 state Up decrement 10
  79.   IP redundancy name is "hsrp-Gi0/0-1" (default)
  80. Vlan100 - Group 2
  81.   State is Active
  82.     8 state changes, last state change 00:02:18
  83.   Virtual IP address is 192.168.106.3
  84.   Active virtual MAC address is 0000.0c07.ac02
  85.     Local virtual MAC address is 0000.0c07.ac02 (v1 default)
  86.   Hello time 5 sec, hold time 15 sec
  87.     Next hello sent in 1.892 secs
  88. --More--
  89. *Dec 18 08:49:53.707: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0/0, changed state to down
  90. *Dec 18 08:49:53.707: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to down
  91. *Dec 18 08:49:53.707: %HSRP-6-STATECHANGE: Vlan100 Grp 2 state Active -> Init
  92. *Dec 18 08:49:54.707: %LINK-3-UPDOWN: Interface FastEthernet0/0/0, changed state to down
  93. *Dec 18 08:49:57.627: %HSRP-6-STATECHANGE: GigabitEthernet0/0 Grp 1 state Activ  Preemption enabled
  94.   Active router is unknown
  95.   Standby router is unknown
  96.   Priority 100 (configured 110)
  97.     Track interface GigabitEthernet0/0 state Up decrement 10
  98.          
  99. route-1#
  100. route-1#
  101. route-1#
  102. route-1#sh standby
  103. GigabitEthernet0/0 - Group 1
  104.   State is Standby
  105.     10 state changes, last state change 00:00:24
  106.   Virtual IP address is 192.168.108.103
  107.   Active virtual MAC address is 0000.0c07.ac01
  108.     Local virtual MAC address is 0000.0c07.ac01 (v1 default)
  109.   Hello time 5 sec, hold time 15 sec
  110.     Next hello sent in 0.584 secs
  111.   Preemption enabled, delay min 60 secs
  112.   Active router is 192.168.108.102, priority 105 (expires in 10.580 sec)
  113.   Standby router is local
  114.   Priority 100 (configured 110)
  115.     Track interface GigabitEthernet0/0 state Up decrement 10
  116.     Track interface FastEthernet0/0/0 state Down decrement 10
  117.   IP redundancy name is "hsrp-Gi0/0-1" (default)
  118. Vlan100 - Group 2
  119.   State is Init (interface down)
  120.     9 state changes, last state change 00:00:43
  121.   Virtual IP address is 192.168.106.3
  122.   Active virtual MAC address is unknown
  123.     Local virtual MAC address is 0000.0c07.ac02 (v1 default)
  124.   Hello time 5 sec, hold time 15 sec
  125.   Preemption enabled
  126.   Active router is unknown
  127.   Standby router is unknown
  128.   Priority 100 (configured 110)
  129.     Track interface GigabitEthernet0/0 state Up decrement 10
  130.     Track interface FastEthernet0/0/0 state Down decrement 10
  131.   IP redundancy name is "hsrp-Vl100-2" (default)
  132. route-1#
复制代码

论坛徽章:
0
20 [报告]
发表于 2008-12-18 20:48 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP