{"id":887,"date":"2011-02-04T17:12:16","date_gmt":"2011-02-04T16:12:16","guid":{"rendered":"http:\/\/blog.unelink.es\/?p=887"},"modified":"2017-05-11T12:32:57","modified_gmt":"2017-05-11T10:32:57","slug":"el-comando-ifconfig-en-linux","status":"publish","type":"post","link":"https:\/\/hosting.airetech.es\/blog\/wiki\/linux\/el-comando-ifconfig-en-linux\/","title":{"rendered":"El comando ifconfig en Linux"},"content":{"rendered":"<p>El comando <strong>ifconfig <\/strong>es utilizado para arrancar la interface de la tarjeta de red, pararla y realizar todas las configuraciones sobre dicha tarjeta en nuestros <a href=\"https:\/\/www.unelink.es\/servidores-dedicados-32.html\" target=\"_blank\"><strong>servidores dedicados<\/strong><\/a> o<a href=\"https:\/\/www.unelink.es\/servidores-virtuales-33.html\" target=\"_blank\"><strong> servidores virtuales<\/strong><\/a>.<\/p>\n<p>Por ejemplo queremos ver todas las interfaces de red activas en nuestra m\u00e1quina, para ello utilizaremos el comando <strong>ifconfig <\/strong>tal cu\u00e1l. Por ejemplo:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/ifconfig.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-891\" title=\"ifconfig\" src=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/ifconfig.png\" alt=\"\" width=\"650\" height=\"349\" srcset=\"https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/ifconfig.png 750w, https:\/\/hosting.airetech.es\/blog\/wp-content\/uploads\/2011\/02\/ifconfig-300x161.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p>Para detener una interfaz, por ejemplo la venet0:1 que tenemos configurada en la anterior im\u00e1gen utilizaremos el comando ifconfig &lt;interfaz&gt; down de la siguiente forma:<\/p>\n<pre>ifconfig venet0:1 down<\/pre>\n<p>Para volver a arrancar una interfaz, utilizaremos lo anterior pero modificando down por <strong>up. <\/strong><\/p>\n<pre>ifconfig venet0:1 up<\/pre>\n<p>Otros comandos de configuraci\u00f3n de la potente herramienta ifconfig son como por ejemplo a\u00f1adirle una m\u00e1scara de red a una interfaz, por ejemplo:<\/p>\n<pre>ifconfig venet0:1 192.168.100.58 netmask 255.255.255.0<\/pre>\n<p>Podeis ver el manual de ifconfig en el siguiente enlace, <a href=\"https:\/\/linux.die.net\/man\/8\/ifconfig\" target=\"_blank\">https:\/\/linux.die.net\/man\/8\/ifconfig<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"El comando ifconfig es utilizado para arrancar la interface de la tarjeta de red, pararla y realizar todas las configuraciones sobre dicha tarjeta en nuestros servidores dedicados o servidores virtuales. Por ejemplo queremos ver todas las interfaces de red activas en nuestra m\u00e1quina, para ello utilizaremos el comando ifconfig tal cu\u00e1l. Por ejemplo: Para detener una interfaz, por ejemplo la&nbsp;<a href=\"https:\/\/hosting.airetech.es\/blog\/wiki\/linux\/el-comando-ifconfig-en-linux\/\" class=\"read-more\">Seguir leyendo<\/a>","protected":false},"author":1,"featured_media":891,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10],"tags":[89],"class_list":["post-887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-ifconfig","cat-10-id"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/comments?post=887"}],"version-history":[{"count":10,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"predecessor-version":[{"id":5716,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/887\/revisions\/5716"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media\/891"}],"wp:attachment":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/tags?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}