{"id":1103,"date":"2014-12-03T20:12:58","date_gmt":"2014-12-03T19:12:58","guid":{"rendered":"http:\/\/clemente.pamplona.name\/dba\/?p=1103"},"modified":"2014-12-03T20:12:58","modified_gmt":"2014-12-03T19:12:58","slug":"renombrado-las-interfaces-de-red-como-ethx","status":"publish","type":"post","link":"http:\/\/clemente.pamplona.name\/dba\/renombrado-las-interfaces-de-red-como-ethx\/","title":{"rendered":"Renombrado las interfaces de red como ethX"},"content":{"rendered":"<p>En una entrada de la semana pasada vimos como el nuevo Oracle Linux 7  y RedHat 7 han decidido cambiar los servicios y las notaciones a un nuevo m\u00e9todo con mejoras a mi entender altamente cuestionables.<\/p>\n<p>Hoy vamos a ver como podemos cambiar los interfaces de red de esa notaci\u00f3n a la notaci\u00f3n cl\u00e1sica de linux <b>ethX<\/b>.<\/p>\n<p>La instalacion por defecto de Oracle Linux 7 nos dejar\u00e1 unos interfaces de red tal que as\u00ed<\/p>\n<p><a href=\"http:\/\/clemente.pamplona.name\/dba\/wp-content\/uploads\/2014\/12\/Captura-de-pantalla-2014-12-03-a-las-19.50.30.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/clemente.pamplona.name\/dba\/wp-content\/uploads\/2014\/12\/Captura-de-pantalla-2014-12-03-a-las-19.50.30.png\" alt=\"Captura de pantalla 2014-12-03 a las 19.50.30\" width=\"721\" height=\"306\" class=\"aligncenter size-full wp-image-1104\" srcset=\"http:\/\/clemente.pamplona.name\/dba\/wp-content\/uploads\/2014\/12\/Captura-de-pantalla-2014-12-03-a-las-19.50.30.png 721w, http:\/\/clemente.pamplona.name\/dba\/wp-content\/uploads\/2014\/12\/Captura-de-pantalla-2014-12-03-a-las-19.50.30-300x127.png 300w, http:\/\/clemente.pamplona.name\/dba\/wp-content\/uploads\/2014\/12\/Captura-de-pantalla-2014-12-03-a-las-19.50.30-500x212.png 500w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/a><\/p>\n<p>Para volver a tener nuestros interfaces de red con nuestros nombres habituales deberemos de hacer:<\/p>\n<pre>\r\n[root@alone ~]# vi \/etc\/default\/grub\r\nGRUB_TIMEOUT=5\r\nGRUB_DISTRIBUTOR=\"$(sed 's, release .*$,,g' \/etc\/system-release)\"\r\nGRUB_DEFAULT=saved\r\nGRUB_DISABLE_SUBMENU=true\r\nGRUB_TERMINAL_OUTPUT=\"console\"\r\nGRUB_CMDLINE_LINUX=\"vconsole.keymap=es \r\ncrashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet \"\r\nGRUB_DISABLE_RECOVERY=\"true\"\r\n<\/pre>\n<p>Y modificaremos la l\u00ednea<\/p>\n<pre>\r\nGRUB_CMDLINE_LINUX=\"vconsole.keymap=es crashkernel=auto \r\n vconsole.font=latarcyrheb-sun16 rhgb quiet \u201d<\/pre>\n<p>a\u00f1adi\u00e9ndole <b>net.ifnames=0 biosdevname=0<\/b> para que quede:<\/p>\n<pre>\r\n[root@alone ~]# vi \/etc\/default\/grub\r\nGRUB_TIMEOUT=5\r\nGRUB_DISTRIBUTOR=\"$(sed 's, release .*$,,g' \/etc\/system-release)\"\r\nGRUB_DEFAULT=saved\r\nGRUB_DISABLE_SUBMENU=true\r\nGRUB_TERMINAL_OUTPUT=\"console\"\r\nGRUB_CMDLINE_LINUX=\"vconsole.keymap=es \r\ncrashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0\"\r\nGRUB_DISABLE_RECOVERY=\"true\"\r\n<\/pre>\n<p>Tras esto ejecutamos la utilidad <strong>grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/strong><\/p>\n<pre>\r\n[root@alone ~]# grub2-mkconfig -o \/boot\/grub2\/grub.cfg \r\nGenerating grub configuration file ...\r\nFound linux image: \/boot\/vmlinuz-3.10.0-123.el7.x86_64\r\nFound initrd image: \/boot\/initramfs-3.10.0-123.el7.x86_64.img\r\nFound linux image: \/boot\/vmlinuz-3.10.0-123.9.3.el7.x86_64\r\nFound initrd image: \/boot\/initramfs-3.10.0-123.9.3.el7.x86_64.img\r\nFound linux image: \/boot\/vmlinuz-3.8.13-44.1.5.el7uek.x86_64\r\nFound initrd image: \/boot\/initramfs-3.8.13-44.1.5.el7uek.x86_64.img\r\nWarning: Please don't use old title `Oracle Linux Server, with Unbreakable Enterprise Kernel 3.8.13-44.1.5.el7uek.x86_64' for GRUB_DEFAULT, use `Advanced options for Oracle Linux Server>Oracle Linux Server, with Unbreakable Enterprise Kernel 3.8.13-44.1.5.el7uek.x86_64' (for versions before 2.00) or `gnulinux-advanced-533cf96e-16ad-48b4-b21f-955d13dcbf32>gnulinux-3.8.13-44.1.5.el7uek.x86_64-advanced-533cf96e-16ad-48b4-b21f-955d13dcbf32' (for 2.00 or later)\r\nFound linux image: \/boot\/vmlinuz-3.8.13-35.3.1.el7uek.x86_64\r\nFound initrd image: \/boot\/initramfs-3.8.13-35.3.1.el7uek.x86_64.img\r\nFound linux image: \/boot\/vmlinuz-0-rescue-b231a9662b504ceb8b5883008ce1db77\r\nFound initrd image: \/boot\/initramfs-0-rescue-b231a9662b504ceb8b5883008ce1db77.img\r\n<\/pre>\n<p>Y nos vamos al directorio <em>\/etc\/sysconfig\/network-scripts<\/em> donde haremos:<\/p>\n<pre>\r\nmv ifcfg-enp0s3 a ifcfg-eht0\r\nmv ifcfg-enp0s8 a ifcfg-eht1\r\nmv ifcfg-enp0s9 a ifcfg-eht2\r\n<\/pre>\n<p>tras esto solo nos queda editar los ficheros ethX de toda la vida y ponerle los par\u00e1metros que queramos (entre ellos el par\u00e1metro <\/b>\u00abNAME\u00bb<\/b>) y ya tendremos los dispositivos renombrados con los nombres cl\u00e1sicos de Linux\/Unix<\/p>\n","protected":false},"excerpt":{"rendered":"<p>En una entrada de la semana pasada vimos como el nuevo Oracle Linux 7 y RedHat 7 han decidido cambiar los servicios y las notaciones a un nuevo m\u00e9todo con mejoras a mi entender altamente cuestionables. Hoy vamos a ver &hellip; <a href=\"http:\/\/clemente.pamplona.name\/dba\/renombrado-las-interfaces-de-red-como-ethx\/\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,41],"tags":[194,39,40,193,191],"class_list":["post-1103","post","type-post","status-publish","format-standard","hentry","category-oracle-linux","category-sistema-operativo","tag-eth0","tag-kernel","tag-linux","tag-redhat-7","tag-systemctl"],"_links":{"self":[{"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/posts\/1103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/comments?post=1103"}],"version-history":[{"count":5,"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"predecessor-version":[{"id":1109,"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/posts\/1103\/revisions\/1109"}],"wp:attachment":[{"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clemente.pamplona.name\/dba\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}