{"id":827,"date":"2021-08-20T03:08:57","date_gmt":"2021-08-20T03:08:57","guid":{"rendered":"http:\/\/feralpacket.org\/?p=827"},"modified":"2021-08-20T03:08:57","modified_gmt":"2021-08-20T03:08:57","slug":"stp-security-features-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=827","title":{"rendered":"STP Security Features Notes"},"content":{"rendered":"<p><span style=\"font-weight: bold;\">STP Security Features<\/span><\/p>\n<p><span style=\"font-weight: bold;\">BPDU Guard<\/span><\/p>\n<p>&nbsp;&#8211; Checks for any incoming BPDUs<\/p>\n<p>&nbsp;&#8211; Will block any port that receives a BPDU<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; The port is err-disabled<\/p>\n<p>&nbsp;&#8211; Global configuration<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Only affects ports configured for portfast<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree portfast bpduguard default<\/span><\/p>\n<p>&nbsp;&#8211; Interface configuration<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Portfast not required<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; \u201cno\u201d command used to disable BPDU Guard on the interface if it is configured globally<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/1<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;spanning-tree bpduguard enable<\/span><\/p>\n<p><span style=\"font-weight: bold;\">BPDU Filter<\/span><\/p>\n<p>&nbsp; &#8211; Global configuration<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Stops sending BPDUs out all interfaces configured for portfast<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; If BPDU is received<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Disables portfast<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Starts listening \/ learning procedure<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree portfast bpdufilter default<\/span><\/p>\n<p>&nbsp;&#8211; Interface configuration<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Stops sending BPDUs on the interface<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Ignores received BPDUs<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/1<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;spanning-tree bpdufilter enable<\/span><\/p>\n<p>If BPDU Guard and BPDU Filter are configured on the same interface<\/p>\n<p>&nbsp;&#8211; Stops sending BPDUs out the interface<\/p>\n<p>&nbsp;&#8211; The interface is err-disabled if a BPDU is received<\/p>\n<p><span style=\"font-weight: bold;\">Root Guard<\/span><\/p>\n<p>&nbsp;&#8211; Interface configuration<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Exams incoming BPDUs<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; If a superior BPDU is received, the port is err-disabled<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Root inconsistant mode<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Recommended for edge switches<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Can be configured on the root switch<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/1<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;spanning-tree guard root<\/span><\/p>\n<p><span style=\"font-weight: bold;\">Loop Guard<\/span><\/p>\n<p>&nbsp;&#8211; On a non-designated port (blocking)<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; If BPDUs are no longer received, the port is err-disabled<\/p>\n<p><span style=\"font-weight: bold;\">Unidirectional Link Detection (UDLD)<\/span><\/p>\n<p>&nbsp;&#8211; Can be configured on any link between two ports<\/p>\n<p>&nbsp;&#8211; Has hello mechanism to check tx &amp; rx<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Sent every 15 seconds<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; If 3 consecutive hellos are missed, an action is taken<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; udld mode normal<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; Syslog message<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; SNMP trap sent (if configured)<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; udld mode aggressive<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; Starts sending hellos every second for 8 seconds<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; If no hellos are received, the port is err-disabled<\/p>\n<p>&nbsp;&#8211; Global configuration<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">udld mode { aggressive | normal }<\/span><\/p>\n<p>&nbsp;&#8211; Interface configuration<\/p>\n<p>SW1(config)# &nbsp;<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">int fa0\/1<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;udld mode { aggressive | normal }<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>STP Security Features<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[31,61,15],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-published","tag-spanning-tree","tag-stp"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=827"}],"version-history":[{"count":1,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/827\/revisions"}],"predecessor-version":[{"id":972,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/827\/revisions\/972"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}