{"id":913,"date":"2018-02-20T10:59:07","date_gmt":"2018-02-20T09:59:07","guid":{"rendered":"http:\/\/www.quisted.net\/?p=913"},"modified":"2018-02-20T10:59:07","modified_gmt":"2018-02-20T09:59:07","slug":"lab-ii-bgp-hsrp-linkstate-tracking","status":"publish","type":"post","link":"https:\/\/www.quisted.net\/index.php\/2018\/02\/20\/lab-ii-bgp-hsrp-linkstate-tracking\/","title":{"rendered":"LAB II ( Dual-Homed BGP, HSRP, Linkstate tracking )"},"content":{"rendered":"<p><a href=\"http:\/\/vps.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-917 aligncenter\" src=\"http:\/\/vps.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab.png\" alt=\"\" width=\"442\" height=\"682\" srcset=\"https:\/\/www.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab.png 442w, https:\/\/www.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab-194x300.png 194w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/a><\/p>\n<p><strong>Setup:<\/strong><\/p>\n<ul>\n<li>Dual-homed BGP between <strong>AS100<\/strong> and <strong>AS200<\/strong><\/li>\n<li>AS100\n<ul>\n<li>HSRP 192.168.0.10 between R1 and R2<\/li>\n<li>Router 1 HSRP Master<\/li>\n<li>Linkstate tracking on <strong>Fa0\/0<\/strong><\/li>\n<li><em><strong>EIGRP<\/strong><\/em> as IGP<\/li>\n<\/ul>\n<\/li>\n<li>AS200\n<ul>\n<li>HSRP 10.10.10.10 between R3 and R4<\/li>\n<li>Router 3 as HSRP Master<\/li>\n<li>Linkstate tracking on <strong>Fa0\/0<\/strong><\/li>\n<li><em><strong>OSPF<\/strong><\/em> for IGP<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Scenario: The link between Router1 and Router3 would fail. Linkstate tracking would decrement the HSRP priority and switch masters.<\/p>\n<p>When the link was restored and using default HSRP timers, the HSRP master would switch back before the BGP session was established between Router1 and Router3 (at least in GNS3).<br \/>\nSetting up delay timers and linkstate tracking would allow for a good recovery.<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/vps.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab-gns3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-919\" src=\"http:\/\/vps.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab-gns3.png\" alt=\"\" width=\"639\" height=\"786\" srcset=\"https:\/\/www.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab-gns3.png 639w, https:\/\/www.quisted.net\/wp-content\/uploads\/2018\/02\/bgplab-gns3-244x300.png 244w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<pre>Router1:\n\ntrack 1 interface FastEthernet0\/0 line-protocol\n\ninterface FastEthernet0\/0\n ip address 172.16.1.1 255.255.255.252\n duplex auto\n speed auto\n!\ninterface FastEthernet0\/1\n ip address 192.168.0.1 255.255.255.0\n duplex auto\n speed auto\n standby 10 ip 192.168.0.10\n standby 10 priority 120\n standby 10 preempt delay minimum 30 <strong><span style=\"color: #ff0000;\">#HSRP DELAY SO BGP IS ESTABLISHED BEFORE HSRP MASTER CHANGE<\/span><\/strong>\n standby 10 track 1 decrement 50 <strong><span style=\"color: #ff0000;\">#TRACKING FA0\/0<\/span><\/strong>\n!\nrouter eigrp 100\n network 192.168.0.0\n auto-summary\n!\nrouter bgp 100\n no synchronization\n bgp log-neighbor-changes\n network 192.168.0.0\n neighbor 172.16.1.2 remote-as 200\n neighbor 192.168.0.2 remote-as 100\n no auto-summary\n!\n<\/pre>\n<pre>R1#sh standby\nFastEthernet0\/1 - Group 10\n  State is Active\n    2 state changes, last state change 00:01:11\n  Virtual IP address is 192.168.0.10\n  Active virtual MAC address is 0000.0c07.ac0a\n    Local virtual MAC address is 0000.0c07.ac0a (v1 default)\n  Hello time 3 sec, hold time 10 sec\n    Next hello sent in 0.140 secs\n  Preemption enabled, delay min 30 secs\n  Active router is local\n  Standby router is 192.168.0.2, priority 100 (expires in 8.624 sec)\n  Priority 120 (configured 120)\n    Track object 1 state Up decrement 50\n  IP redundancy name is \"hsrp-Fa0\/1-10\" (default)\nR1#\nR1#sh bgp\nR1#sh ip bgp sum\nBGP router identifier 1.1.1.1, local AS number 100\nBGP table version is 7, main routing table version 7\n6 network entries using 702 bytes of memory\n12 path entries using 624 bytes of memory\n8\/4 BGP path\/bestpath attribute entries using 992 bytes of memory\n1 BGP AS-PATH entries using 24 bytes of memory\n0 BGP route-map cache entries using 0 bytes of memory\n0 BGP filter-list cache entries using 0 bytes of memory\nBGP using 2342 total bytes of memory\nBGP activity 6\/0 prefixes, 12\/0 paths, scan interval 60 secs\n\nNeighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up\/Down  State\/PfxRcd\n172.16.1.2      4   200       8       5        7    0    0 00:01:26        5\n192.168.0.2     4   100       8       8        7    0    0 00:01:26        6\nR1#\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Setup: Dual-homed BGP between AS100 and AS200 AS100 HSRP 192.168.0.10 between R1 and R2 Router 1 HSRP Master Linkstate tracking on Fa0\/0 EIGRP as IGP AS200 HSRP 10.10.10.10 between R3 and R4 Router 3 as HSRP Master Linkstate tracking on Fa0\/0 OSPF for IGP Scenario: The link between Router1 and Router3 would fail. Linkstate tracking [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[6],"tags":[26,39,50,73,94],"class_list":["post-913","post","type-post","status-publish","format-standard","hentry","category-labs","tag-bgp","tag-eigrp","tag-hsrp","tag-ospf","tag-track"],"_links":{"self":[{"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/posts\/913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/comments?post=913"}],"version-history":[{"count":0,"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/posts\/913\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/media?parent=913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/categories?post=913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quisted.net\/index.php\/wp-json\/wp\/v2\/tags?post=913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}