{"id":589,"date":"2018-07-02T18:56:10","date_gmt":"2018-07-02T11:56:10","guid":{"rendered":"https:\/\/lagonet.vn\/?p=589"},"modified":"2018-07-02T18:56:10","modified_gmt":"2018-07-02T11:56:10","slug":"cau-hinh-portfast","status":"publish","type":"post","link":"https:\/\/kb.lagonet.vn\/?p=589","title":{"rendered":"C\u1ea4U H\u00ccNH PORTFAST"},"content":{"rendered":"<p>Portfast l\u00e0 gi\u1ea3i ph\u00e1p c\u1ee7a Cisco \u0111\u1ec3 l\u00e0m vi\u1ec7c c\u00f9ng v\u1edbi TCN. N\u1ebfu b\u1ea1n kh\u00f4ng bi\u1ebft spanning tree x\u1eed l\u00fd nhu th\u1ebf n\u00e0o v\u1edbi topology changes th\u00ec t\u00f4i khuy\u00ean b\u1ea1n t\u00ecm b\u00e0i vi\u1ebft v\u1ec1 Spanning tree t\u1ea1i \u0111\u00e2y tr\u01b0\u1edbc khi \u0111\u1ecdc. N\u00f3 gi\u00fap b\u1ea1n th\u1ef1c s\u1ef1 hi\u1ec3u t\u1ea1i sao ch\u00fang ta c\u1ea7n portfast.<\/p>\n<p>Portfast l\u00e0m 2 \u0111i\u1ec1u cho ch\u00fang ta:<\/p>\n<ul>\n<li>C\u1ed5ng m\u00e0 \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh portfast s\u1ebd up v\u00e0 \u1edf tr\u1ea1ng th\u00e1i forwarding mode ngay l\u1eadp t\u1ee9c, n\u00f3 s\u1ebd b\u1ecf qua c\u00e1c tr\u1ea1ng th\u00e1i listening v\u00e0 learning<\/li>\n<li>Switch s\u1ebd kh\u00f4ng t\u1ea1o ra th\u00f4ng b\u00e1o TCN m\u00e0 c\u00f3 portfast enabled<\/li>\n<\/ul>\n<p>Ta c\u00f3 th\u1ec3 d\u00f9ng m\u00f4 h\u00ecnh n\u00e0y \u0111\u1ec3 demo s\u1ef1 thay \u0111\u1ed5i c\u1ee7a switch khi c\u1eafm 1 m\u00e1y t\u00ednh v\u00e0o<\/p>\n<figure id=\"attachment_590\" aria-describedby=\"caption-attachment-590\" style=\"width: 721px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-590\" src=\"https:\/\/lagonet.vn\/wp-content\/uploads\/2018\/07\/portfast-01.jpg\" alt=\"portfast-01\" width=\"721\" height=\"122\" \/><figcaption id=\"caption-attachment-590\" class=\"wp-caption-text\">Portfast Demo<\/figcaption><\/figure>\n<p>Khi m\u00e0 c\u1eafm nh\u01b0 th\u1ebf, khi ta ch\u1ea1y l\u1ec7nh: <strong>debug spanning-tree events<\/strong> tr\u00ean <strong>sw1<\/strong>, ta s\u1ebd th\u1ea5y SW1#<\/p>\n<pre>STP: VLAN0001 Fa0\/1 -&gt; listening\nSTP: VLAN0001 Fa0\/1 -&gt; learning\nSTP: VLAN0001 Fa0\/1 -&gt; forwarding\n<\/pre>\n<p>b\u00ean c\u1ea1nh \u0111\u00f3 n\u00f3 s\u1ebd generate ra TCN<\/p>\n<pre>\nSW1#show spanning-tree detail\n\nVLAN0001 is executing the ieee compatible Spanning Tree protocol\nBridge Identifier has priority 32768, sysid 1, address 0019.569d.5700\nConfigured hello time 2, max age 20, forward delay 15\nCurrent root has priority 32769, address 0011.bb0b.3600\nRoot port is 26 (FastEthernet0\/24), cost of root path is 19\nTopology change flag not set, detected flag not set\nNumber of topology changes 5 last change occurred 00:02:09 ago\nfrom FastEthernet0\/1\nTimes: hold 1, topology change 35, notification 2\nhello 2, max age 20, forward delay 15\nTimers: hello 0, topology change 0, notification 0, aging 300\n<\/pre>\n<pre class=\"wiki\">    conf t\n        vlan 64\n            name Prod_VMs\n            exit\n        vlan 79\n            name Prod_VMs_under_LBs\n            exit\n        int te1\/0\/1\n            swi trunk allowed vlan add 64,79\n            end\n        int po3\n            swi trunk allowed vlan add 79\n            exit\n        int po4\n            swi trunk allowed vlan add 79\n            exit\n        int po10\n            swi trunk allowed vlan add 79\n            exit\n        int po11\n            swi trunk allowed vlan add 79\n            end\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Portfast l\u00e0 gi\u1ea3i ph\u00e1p c\u1ee7a Cisco \u0111\u1ec3 l\u00e0m vi\u1ec7c c\u00f9ng v\u1edbi TCN. N\u1ebfu b\u1ea1n kh\u00f4ng bi\u1ebft spanning tree x\u1eed l\u00fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[29,30,32,33,25,16,26,27,28,21,6],"tags":[],"class_list":["post-589","post","type-post","status-publish","format-standard","hentry","category-ccie-rs","category-ccna","category-ccnp-switch","category-ccnp-tshoot","category-cisco","category-courses","category-jncia","category-jncie","category-jncip","category-juniper","category-networking"],"_links":{"self":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=589"}],"version-history":[{"count":0,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=\/wp\/v2\/posts\/589\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.lagonet.vn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}