{"id":1606,"date":"2022-03-09T09:11:00","date_gmt":"2022-03-09T17:11:00","guid":{"rendered":"https:\/\/jmcristobal.com\/?p=1606"},"modified":"2022-03-09T10:41:15","modified_gmt":"2022-03-09T18:41:15","slug":"configuring-snmp-on-cisco-ios","status":"publish","type":"post","link":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/","title":{"rendered":"Configuring SNMP on Cisco IOS"},"content":{"rendered":"<p>Simple Network Management Protocol (SNMP)<\/p>\n\n\n\n<h5><strong>Configuring SNMPv2C&nbsp;<\/strong><\/h5>\n\n\n\n<p>Los siguientes comandos se utilizan para configurar SNMPv2C:<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# snmp-server host host-address [ informs] version 2c community-string <\/kbd><br><kbd>Switch(config)# snmp-server community string [ ro | rw] [ access-list-number] <\/kbd><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Se puede limitar con una lista de acceso los hosts que pueden acceder por SNMP con la siguiente comando<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# access-list access-list-number permit ip-addr <\/kbd><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>La accesss-list es opcional.<\/p>\n\n\n\n<h6><strong>Ejemplo:<\/strong><\/h6>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# access-list 10 permit 10.1.1.1   <\/kbd><br><kbd>Switch(config)# snmp-server community MyCommunity ro 10  <\/kbd><br><kbd>Switch(config)# snmp-server host 10.1.1.1 version 2c MyCommunity<\/kbd><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h5><strong>Configuring SNMPv3<\/strong><\/h5>\n\n\n\n<p>SNMPv3 utiliza un usuario\/grupo y niveles de seguridad para intercambiar sus mensajes. Adem\u00e1s podemos utilizar vistas para delimitar las OIDs intercambiadas.<\/p>\n\n\n\n<p>Los niveles de seguridad de SNMPv3 son:<\/p>\n\n\n\n<ul><li><strong>noauth:<\/strong> los paquetes SNMP no se autentican ni se cifran.<br><\/li><li><strong>auth:<\/strong> los paquetes SNMP est\u00e1n autenticados pero no cifrados.<br><\/li><li><strong>priv:<\/strong> los paquetes SNMP est\u00e1n autenticados y encriptados.<br><\/li><\/ul>\n\n\n\n<p>La recomendaci\u00f3n es utilizar el nivel de seguridad priv siempre que sea posible, veamos cuales son los comandos para configurar SNMPv3<\/p>\n\n\n\n<p>Definir una vista SNMPv3<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# snmp-server view view-name oid-tree<\/kbd><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Definir un grupo de usuarios<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# snmp-server group group-name v3 { noauth | auth | priv } [ read read-view ] [ write write-view ] [ notify notify-view ] [ access access access-list ]<\/kbd><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Definir un usuario<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# snmp-server user user-name group-name v3 auth {md5 | sha auth-password priv { des | 3des | aes { 128 | 192 | 256 } priv-password [ access-list ]<\/kbd><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Define an SNMPv3 trap or inform receiver.<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# snmp-server host host-address [ informs ] version 3 { noauth | auth | priv } user-name [ trap-type ]<\/kbd><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Ejemplo sencillo de SNMPv3  para enviar alertas al servidor 10.1.1.1 usando el nivel de seguridad priv y el nombre de usuario MyUser:<\/p>\n\n\n\n<p class=\"has-background has-small-font-size\" style=\"background-color:#efefef\"><kbd>Switch(config)# snmp-server group MyGroup v3 priv <br>Switch(config)# snmp-server user MyUser MyGroup v3 auth sha MyPassAuth priv aes 128 MyPassAuth <br>Switch(config)# snmp-server host 10.1.1.1  informs version 3 priv MyUser<\/kbd><\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Simple Network Management Protocol (SNMP) Configuring SNMPv2C&nbsp; The following commands are used to configure SNMPv2C: Switch(config)# snmp-server host host-address [ informs] version <\/p>","protected":false},"author":2,"featured_media":1392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[233],"tags":[280,281,340,407,420,427],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configuring SNMP on Cisco 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=\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring SNMP on Cisco IOS - JMCristobal\" \/>\n<meta property=\"og:description\" content=\"Simple Network Management Protocol (SNMP) Configuring SNMPv2C&nbsp; The following commands are used to configure SNMPv2C: Switch(config)# snmp-server host host-address [ informs] version\" \/>\n<meta property=\"og:url\" content=\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-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-09T17:11:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-09T18:41:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ec2-52-7-70-250.compute-1.amazonaws.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\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/\"},\"author\":{\"name\":\"JMCristobal\",\"@id\":\"https:\/\/52.7.70.250\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\"},\"headline\":\"Configuring SNMP on Cisco IOS\",\"datePublished\":\"2022-03-09T17:11:00+00:00\",\"dateModified\":\"2022-03-09T18:41:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/\"},\"wordCount\":281,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/52.7.70.250\/es\/#organization\"},\"keywords\":[\"cisco\",\"cli\",\"ios\",\"router\",\"snmp\",\"switch\"],\"articleSection\":[\"Enterprise Infrastructure\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/\",\"url\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/\",\"name\":\"Configuring SNMP on Cisco IOS - JMCristobal\",\"isPartOf\":{\"@id\":\"https:\/\/52.7.70.250\/es\/#website\"},\"datePublished\":\"2022-03-09T17:11:00+00:00\",\"dateModified\":\"2022-03-09T18:41:15+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/52.7.70.250\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring SNMP on Cisco IOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/52.7.70.250\/es\/#website\",\"url\":\"https:\/\/52.7.70.250\/es\/\",\"name\":\"JMCristobal\",\"description\":\"Networking and more\",\"publisher\":{\"@id\":\"https:\/\/52.7.70.250\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/52.7.70.250\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/52.7.70.250\/es\/#organization\",\"name\":\"JMCristobal\",\"url\":\"https:\/\/52.7.70.250\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/52.7.70.250\/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:\/\/52.7.70.250\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.youtube.com\/JMCristobalHomepage\",\"https:\/\/web.facebook.com\/JMCristobalHomepage\",\"https:\/\/twitter.com\/jmcristobalhome\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/52.7.70.250\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\",\"name\":\"JMCristobal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/52.7.70.250\/es\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"caption\":\"JMCristobal\"},\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/author\/jmcristobal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring SNMP on Cisco 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":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/","og_locale":"es_ES","og_type":"article","og_title":"Configuring SNMP on Cisco IOS - JMCristobal","og_description":"Simple Network Management Protocol (SNMP) Configuring SNMPv2C&nbsp; The following commands are used to configure SNMPv2C: Switch(config)# snmp-server host host-address [ informs] version","og_url":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/","og_site_name":"JMCristobal","article_publisher":"https:\/\/web.facebook.com\/JMCristobalHomepage","article_published_time":"2022-03-09T17:11:00+00:00","article_modified_time":"2022-03-09T18:41:15+00:00","og_image":[{"width":350,"height":206,"url":"https:\/\/ec2-52-7-70-250.compute-1.amazonaws.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":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#article","isPartOf":{"@id":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/"},"author":{"name":"JMCristobal","@id":"https:\/\/52.7.70.250\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118"},"headline":"Configuring SNMP on Cisco IOS","datePublished":"2022-03-09T17:11:00+00:00","dateModified":"2022-03-09T18:41:15+00:00","mainEntityOfPage":{"@id":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/"},"wordCount":281,"commentCount":0,"publisher":{"@id":"https:\/\/52.7.70.250\/es\/#organization"},"keywords":["cisco","cli","ios","router","snmp","switch"],"articleSection":["Enterprise Infrastructure"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/","url":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/","name":"Configuring SNMP on Cisco IOS - JMCristobal","isPartOf":{"@id":"https:\/\/52.7.70.250\/es\/#website"},"datePublished":"2022-03-09T17:11:00+00:00","dateModified":"2022-03-09T18:41:15+00:00","breadcrumb":{"@id":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/ec2-52-7-70-250.compute-1.amazonaws.com\/es\/2022\/03\/09\/configuring-snmp-on-cisco-ios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/52.7.70.250\/es\/"},{"@type":"ListItem","position":2,"name":"Configuring SNMP on Cisco IOS"}]},{"@type":"WebSite","@id":"https:\/\/52.7.70.250\/es\/#website","url":"https:\/\/52.7.70.250\/es\/","name":"JMCristobal","description":"Networking and more","publisher":{"@id":"https:\/\/52.7.70.250\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/52.7.70.250\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/52.7.70.250\/es\/#organization","name":"JMCristobal","url":"https:\/\/52.7.70.250\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/52.7.70.250\/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:\/\/52.7.70.250\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/JMCristobalHomepage","https:\/\/web.facebook.com\/JMCristobalHomepage","https:\/\/twitter.com\/jmcristobalhome"]},{"@type":"Person","@id":"https:\/\/52.7.70.250\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118","name":"JMCristobal","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/52.7.70.250\/es\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","caption":"JMCristobal"},"url":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/author\/jmcristobal\/"}]}},"jetpack_featured_media_url":"https:\/\/d1gdqjscev06po.cloudfront.net\/wp-content\/uploads\/2022\/01\/RS.png","_links":{"self":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1606"}],"collection":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/comments?post=1606"}],"version-history":[{"count":6,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1606\/revisions"}],"predecessor-version":[{"id":1676,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1606\/revisions\/1676"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/media\/1392"}],"wp:attachment":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/media?parent=1606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/categories?post=1606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/tags?post=1606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}