{"id":42,"date":"2010-12-09T13:08:39","date_gmt":"2010-12-09T05:08:39","guid":{"rendered":"http:\/\/www.microwolf.net\/?p=42"},"modified":"2010-12-09T13:09:36","modified_gmt":"2010-12-09T05:09:36","slug":"cisco-%e4%ba%a4%e6%8d%a2%e6%9c%ba%e5%8f%8c%e5%bc%95%e6%93%8e%e4%b8%8e%e5%8f%8c%e6%9c%ba-hsrp","status":"publish","type":"post","link":"http:\/\/www.microwolf.net\/?p=42","title":{"rendered":"cisco \u4ea4\u6362\u673a\u53cc\u5f15\u64ce\u4e0e\u53cc\u673a HSRP"},"content":{"rendered":"<table border=\"0\" width=\"100%\">\n<tr>\n<td width=\"100%\">\n<p>cisco \u4ea4\u6362\u673a\u53cc\u5f15\u64ce\u4e0e\u53cc\u673a HSRP<\/p>\n<p>\u53cc\u5f15\u64ce\u5207\u6362<\/p>\n<p>redundancy force-switchover<\/p>\n<p>\u5207\u6362\u6a21\u5757<\/p>\n<p>session &#8230;.<\/p>\n<p>\u540c\u6b65<\/p>\n<p>HA\uff0cSINGLE-ROUTER.<\/p>\n<p>\u5728bootconfig flags\u91cc\u9762\u6709\u4e2a\u53c2\u6570savetostandby\u8bbe\u6210true\u5c31\u884c\u4e86\uff0c\u522b\u5fd8\u4e86save bootconfig<\/p>\n<p>Router(config)# redundancy<br \/> <br \/>\nRouter(config-r)# main-cpu<br \/> <br \/>\nRouter(config-r-mc)# auto-sync standard<br \/> <br \/>\nRouter(config-r-mc)# auto-sync bootvar<\/p>\n<p>\u3000<\/p>\n<p>\u53cc\u5f15\u64ce\u70ed\u5907\uff0c\u5173\u952e\u5c31\u662f\u9488\u5bf9VLAN\u7684IP\uff0c\u5728\u4ee5\u4e0b\u547d\u4ee4\u4e2dalt\u540e\u7684\u662f\u9488\u5bf9\u5907\u4efd\u5f15\u64ce\u8bbe\u7f6e\u7684\u3002<\/p>\n<p>interface Vlan10<\/p>\n<p>ip address 192.168.10.251 255.255.255.0 alt ip address 192.168.10.252 255.255.255.0<\/p>\n<p>no ip redirects<\/p>\n<p>standby 110 timers 5 15<\/p>\n<p>standby 110 priority 120 preempt alt standby 110 priority 120 preempt<\/p>\n<p>standby 110 authentication cisco<\/p>\n<p>standby 110 ip 192.168.10.250 alt standby 110 ip 192.168.10.250\n<\/p>\n<p>\u53cc\u673a\u70ed\u5907\uff0c\u4e5f\u5c31\u662f\u518d\u589e\u4e00\u53f0\uff0c\u914d\u7f6e\u51e0\u672c\u4e00\u6837\u3002<\/p>\n<p>interface Vlan10<\/p>\n<p>ip address 192.168.10.253 255.255.255.0 alt ip address 192.168.10.254 255.255.255.0<\/p>\n<p>no ip redirects<\/p>\n<p>standby 110 timers 5 15<\/p>\n<p>standby 110 priority 100 preempt alt standby 110 priority 100 preempt<\/p>\n<p>standby 110 authentication cisco<\/p>\n<p>standby 110 ip 192.168.10.250 alt standby 110 ip 192.168.10.250<\/p>\n<p>\u5224\u65ad\u7aef\u53e3<\/p>\n<p>standby 2 track giga 1\/48<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684HSRP\u914d\u7f6e<\/p>\n<p>interface Vlan x <br \/>\n  ip address x.x.x.x x.x.x.x<br \/> <br \/>\n  no ip redirects <br \/>\n  no ip directed-broadcast <br \/>\n  standby 1 ip y.y.y.y<br \/> <br \/>\n  standby 1 priority 100 <br \/>\n  standby 1 preempt<br \/> <br \/>\nstandby 1 authentication secret<\/p>\n<p>\u5728\u53e6\u4e00\u53f0\u4e0a\u6309\u4e0b\u9762\u6a21\u7248\u8fdb\u884c\u914d\u7f6e<br \/>\ninterface Vlan x <br \/>\n  ip address x.x.x.x x.x.x.x <br \/>\n  no ip redirects <br \/>\n  no ip directed-broadcast <br \/>\nstandby 1 ip y.y.y.y<br \/> <br \/>\n  standby 1 priority 110                        \uff1b\u8fd9\u4e2a\u4f18\u5148\u7ea7\u9ad8\uff0c\u6210\u4e3aMaster<br \/> <br \/>\n  standby 1 preempt<br \/> <br \/>\nstandby 1 authentication secret<\/p>\n<p>\u3000<\/p>\n<p> \u914d\u7f6eNTP<br \/>\nNTP (Network Time Protocol) \u4e3a\u8def\u7531\u5668\u3001\u4ea4\u6362\u673a\u548c\u5de5\u4f5c\u7ad9\u4e4b\u95f4\u63d0\u4f9b\u4e86\u4e00\u79cd\u65f6\u95f4\u540c\u6b65\u7684\u673a\u5236\u3002\u65f6\u95f4\u540c\u6b65\u4e86\uff0c<br \/> <br \/>\n\u591a\u53f0\u7f51\u7edc\u8bbe\u5907\u4e0a\u7684\u76f8\u5173\u4e8b\u4ef6\u8bb0\u5f55\u53ef\u4ee5\u653e\u5728\u4e00\u8d77\u770b\uff0c\u66f4\u4e3a\u6e05\u6670\uff0c\u65b9\u4fbf\u4e86\u5206\u6790\u8f83\u590d\u6742\u7684\u6545\u969c\u548c\u5b89\u5168\u4e8b\u4ef6\u7b49\u3002 <br \/>\n\uff081\uff09\u672c\u5730\u65f6\u949f\u8bbe\u7f6e\uff1a<br \/>\n        clock timezone Peking +8        ;\u5b9a\u4e49\u65f6\u533a<br \/> <br \/>\n        clock calendar-valid                ;\u5141\u8bb8\u4f7f\u7528\u786c\u4ef6calendar\u4f5c\u4e3a\u65f6\u949f\u6e90<br \/> <br \/>\n        clock set hh:mm:ss <day of month>; month year        ;\u5982clock set 14:02:30 10 December 2003<br \/> <br \/>\n        clock update-calendar                ;\u66f4\u65b0\u786c\u4ef6\u65f6\u949f<br \/> <br \/>\n        \uff082\uff09ntp server<br \/> <br \/>\nntp calendar-update                        ;\u5141\u8bb8NTP\u5b9a\u671f\u66f4\u65b0calendar <br \/>\nntp master 3                                ;\u5141\u8bb8\u672c\u673a\u4f5c\u4e3aNTP\u534f\u8bae\u7684\u4e3b\u65f6\u949f\uff0c\u7cbe\u5ea6\u7ea7\u522b3\uff0c\u4f9b\u5176\u5b83\u5bf9\u7b49\u4f53\u540c\u6b65\u7528\u3002<br \/> <br \/>\nntp source int vlan 7                ;\u8bbe\u7f6entp\u65f6\u949f\u539f\u7684\u7aef\u53e3\u6216IP\u5730\u5740<br \/> \n<\/p>\n<p>\u3000<\/p>\n<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>cisco \u4ea4\u6362\u673a\u53cc\u5f15\u64ce\u4e0e\u53cc\u673a HSRP \u53cc\u5f15\u64ce\u5207\u6362 redundancy force-switchover  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/42"}],"collection":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":2,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":44,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions\/44"}],"wp:attachment":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}