{"id":1232,"date":"2021-02-16T22:07:33","date_gmt":"2021-02-16T22:07:33","guid":{"rendered":"https:\/\/dft.wiki\/?p=1232"},"modified":"2021-02-16T22:12:20","modified_gmt":"2021-02-16T22:12:20","slug":"port-secutiry-on-cisco-devices","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=1232","title":{"rendered":"Port-Secutiry on Cisco Devices"},"content":{"rendered":"<p>Showing the current configuration before starting:<\/p>\n<pre>do show vlan brief\r\ndo show mac address-table\r\ndo show mac address-table int g0\/1\r\ndo show port-security int g0\/1<\/pre>\n<p>Setting up Port-Security on the interface G0\/1:<\/p>\n<pre>int g0\/1\r\nswitchport host\r\nswitchport port-security max 1\r\nswitchport port-security violation protect\r\n\r\nOR\r\n\r\nswitchport port-security violation restrict\r\n\r\nOR\r\n\r\nswitchport port-security violation shutdown<\/pre>\n<ul>\n<li>Protect\n<ul>\n<li>Drop all packages from the sources that are not on the list and does not notify or alert the network administrators.<\/li>\n<\/ul>\n<\/li>\n<li>Restrict\n<ul>\n<li>Drop all packages from the sources that exceeds that maximum allowed and causes the SecurityViolation counter<br \/>\nto increment.<\/li>\n<\/ul>\n<\/li>\n<li>Shutdown\n<ul>\n<li>Shutdown the port and send an SNMP notification. Has to be manually brought up or set an auto-recovery.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Then, enable the Port-Security.<\/p>\n<pre>switchport port-security<\/pre>\n<p>Setting up an auto-recovery to violated ports:<\/p>\n<pre>errdisable recovery cause psecure-violation\r\nerrdisable recovery interval 600\r\ndo show errdisable recovery<\/pre>\n<p>Manually setting the MAC address allowed to a port:<\/p>\n<pre>switchport port-security mac-address FF:FF:FF:FF:FF:FF<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Showing the current configuration before starting: do show vlan brief do show mac address-table do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1232","post","type-post","status-publish","format-standard","hentry","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1232"}],"version-history":[{"count":6,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1232\/revisions"}],"predecessor-version":[{"id":1239,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1232\/revisions\/1239"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}