{"id":1633,"date":"2022-03-09T13:18:00","date_gmt":"2022-03-09T21:18:00","guid":{"rendered":"https:\/\/jmcristobal.com\/?p=1633"},"modified":"2022-03-09T17:28:00","modified_gmt":"2022-03-10T01:28:00","slug":"configuring-port-security-in-cisco-switch-ios","status":"publish","type":"post","link":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/","title":{"rendered":"Configurar Port-Security en Switch Cisco"},"content":{"rendered":"<ul><li>Feature que controla la cantidad de direcciones MAC por puerto<br><\/li><li>Se puede configurar el m\u00e1ximo n\u00famero de direcciones MAC por puerto (por defecto es 1)<br><\/li><li>Se puede configurar diversas formas de aprender las direcciones MAC por puerto:<ul><li>Est\u00e1tico: Ingresando las direcciones MAC<\/li><li>Dynamic: La interfaz aprende las direcciones MAC hasta llegar al valor m\u00e1ximo permitido. Se puede agregar el comando sticky para que se agreguen al archivo de configuraci\u00f3n.<br><\/li><\/ul><\/li><li>Existen varios m\u00e9todos de violaci\u00f3n:<ul><li>Shutdown: La interfaz se pone en errdisable (Default)<\/li><li>Restrict: Los paquetes de las direcciones MAC que exceden el n\u00famero m\u00e1ximo no son procesados. Se env\u00eda un mensaje SNMP y syslog&nbsp;<\/li><li>Protect: Los paquetes de las direcciones MAC que exceden el n\u00famero m\u00e1ximo no son procesados pero no env\u00eda mensajes snmp y syslog.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Habilitar port-security en el puerto:<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config-if)# switchport port-security<\/kbd><\/p>\n\n\n\n<p>Especificar n\u00famero m\u00e1ximo de drecciones MAC que se pueden aprender por puerto<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config-if)# switchport port-security maximum max-addr<\/kbd><\/p>\n\n\n\n<p>Para que las direcciones aprendidas sean persistentes durante el reinicio de un switch, puede habilitar el aprendizaje de direcciones MAC \"sticky\" con el siguiente comando:<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config-if)# switchport port-security mac-address sticky<\/kbd><\/p>\n\n\n\n<p>Definir una direcci\u00f3n MAC est\u00e1tica<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config-if)# switchport port-security mac-address mac-addr<\/kbd><\/p>\n\n\n\n<p>Definir c\u00f3mo debe reaccionar cada interfaz que usa port-security si una direcci\u00f3n MAC viola dicha seguridad:<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config-if)# switchport port-security violation {shutdown | restrict | protect}<\/kbd><\/p>\n\n\n\n<p>Ejemplo:<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config-if)# switchport port-security<\/kbd><br><kbd>Switch(config-if)# switchport port-security maximum 5<br>Switch(config-if)# switchport port-seecurity mac-address sticky<br>Switch(config-if)# switchport port-seecurity violation restrict<\/kbd><\/p>\n\n\n\n<p>Comandos debug<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch# show port-security<br>Switch# show port-security interface fa0\/1<br>Switch# show interface status err-disabled<\/kbd><\/p>\n\n\n\n<p>Para quitar el estado err-disable es necesario apagar y volver a encender la interfaz (shut\/no shut).<\/p>","protected":false},"excerpt":{"rendered":"<p>This feature controls the number of MAC addresses per port.The maximum number of MAC addresses per port can be configured (default is <\/p>","protected":false},"author":2,"featured_media":1392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[233],"tags":[280,340,500,514,556,427],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configuring Port Security in Cisco Switch IOS - JMCristobal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring Port Security in Cisco Switch IOS - JMCristobal\" \/>\n<meta property=\"og:description\" content=\"This feature controls the number of MAC addresses per port.The maximum number of MAC addresses per port can be configured (default is\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/\" \/>\n<meta property=\"og:site_name\" content=\"JMCristobal\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/JMCristobalHomepage\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-09T21:18:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-10T01:28:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.jmcristobal.com\/wp-content\/uploads\/2022\/01\/RS.png\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"206\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"JMCristobal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:site\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"JMCristobal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/\"},\"author\":{\"name\":\"JMCristobal\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\"},\"headline\":\"Configuring Port Security in Cisco Switch IOS\",\"datePublished\":\"2022-03-09T21:18:00+00:00\",\"dateModified\":\"2022-03-10T01:28:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/\"},\"wordCount\":268,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#organization\"},\"keywords\":[\"cisco\",\"ios\",\"mac\",\"port\",\"security\",\"switch\"],\"articleSection\":[\"Enterprise Infrastructure\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/\",\"url\":\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/\",\"name\":\"Configuring Port Security in Cisco Switch IOS - JMCristobal\",\"isPartOf\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#website\"},\"datePublished\":\"2022-03-09T21:18:00+00:00\",\"dateModified\":\"2022-03-10T01:28:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jmcristobal.com\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring Port Security in Cisco Switch IOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#website\",\"url\":\"https:\/\/jmcristobal.com\/es\/\",\"name\":\"JMCristobal\",\"description\":\"Networking and more\",\"publisher\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jmcristobal.com\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#organization\",\"name\":\"JMCristobal\",\"url\":\"https:\/\/jmcristobal.com\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"contentUrl\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"width\":518,\"height\":436,\"caption\":\"JMCristobal\"},\"image\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.youtube.com\/JMCristobalHomepage\",\"https:\/\/web.facebook.com\/JMCristobalHomepage\",\"https:\/\/twitter.com\/jmcristobalhome\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\",\"name\":\"JMCristobal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"caption\":\"JMCristobal\"},\"url\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/author\/jmcristobal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring Port Security in Cisco Switch IOS - JMCristobal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/","og_locale":"es_ES","og_type":"article","og_title":"Configuring Port Security in Cisco Switch IOS - JMCristobal","og_description":"This feature controls the number of MAC addresses per port.The maximum number of MAC addresses per port can be configured (default is","og_url":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/","og_site_name":"JMCristobal","article_publisher":"https:\/\/web.facebook.com\/JMCristobalHomepage","article_published_time":"2022-03-09T21:18:00+00:00","article_modified_time":"2022-03-10T01:28:00+00:00","og_image":[{"width":350,"height":206,"url":"https:\/\/www.jmcristobal.com\/wp-content\/uploads\/2022\/01\/RS.png","type":"image\/png"}],"author":"JMCristobal","twitter_card":"summary_large_image","twitter_creator":"@jmcristobalhome","twitter_site":"@jmcristobalhome","twitter_misc":{"Escrito por":"JMCristobal","Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#article","isPartOf":{"@id":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/"},"author":{"name":"JMCristobal","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118"},"headline":"Configuring Port Security in Cisco Switch IOS","datePublished":"2022-03-09T21:18:00+00:00","dateModified":"2022-03-10T01:28:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/"},"wordCount":268,"commentCount":0,"publisher":{"@id":"https:\/\/jmcristobal.com\/es\/#organization"},"keywords":["cisco","ios","mac","port","security","switch"],"articleSection":["Enterprise Infrastructure"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/","url":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/","name":"Configuring Port Security in Cisco Switch IOS - JMCristobal","isPartOf":{"@id":"https:\/\/jmcristobal.com\/es\/#website"},"datePublished":"2022-03-09T21:18:00+00:00","dateModified":"2022-03-10T01:28:00+00:00","breadcrumb":{"@id":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.jmcristobal.com\/es\/2022\/03\/09\/configuring-port-security-in-cisco-switch-ios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jmcristobal.com\/es\/"},{"@type":"ListItem","position":2,"name":"Configuring Port Security in Cisco Switch IOS"}]},{"@type":"WebSite","@id":"https:\/\/jmcristobal.com\/es\/#website","url":"https:\/\/jmcristobal.com\/es\/","name":"JMCristobal","description":"Networking and more","publisher":{"@id":"https:\/\/jmcristobal.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jmcristobal.com\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/jmcristobal.com\/es\/#organization","name":"JMCristobal","url":"https:\/\/jmcristobal.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","contentUrl":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","width":518,"height":436,"caption":"JMCristobal"},"image":{"@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/JMCristobalHomepage","https:\/\/web.facebook.com\/JMCristobalHomepage","https:\/\/twitter.com\/jmcristobalhome"]},{"@type":"Person","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118","name":"JMCristobal","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","caption":"JMCristobal"},"url":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/author\/jmcristobal\/"}]}},"jetpack_featured_media_url":"https:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/wp-content\/uploads\/2022\/01\/RS.png","_links":{"self":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts\/1633"}],"collection":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/comments?post=1633"}],"version-history":[{"count":6,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts\/1633\/revisions"}],"predecessor-version":[{"id":1683,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/posts\/1633\/revisions\/1683"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/media\/1392"}],"wp:attachment":[{"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/media?parent=1633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/categories?post=1633"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/wp-json\/wp\/v2\/tags?post=1633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}