Reconfiguración de nombre de tarjeta de red en Debian

Este post resume lo que me tocó hacer cuando se cambió la placa del portatil, la tarjeta de red dejó de funionar. En un principio pensé que era por el bios y lo actualicé a la última versión, pero el problema continuaba. Si ejecutaba el comando ifup eth0 aparecía un mensaje que indicaba que el dispositivo no estaba disponible.Revisando los logs del sistema operativo encontré en siguiente mensaje: eth0 got renamed to eth1 y me indicaba una dirección mac.Busqué en http://www.google.com y encontré el siguiente documento –Rename Network Interface using udev in Debian–. En el explican como renombrar las tarjetas de red.

Basandome en sus indicaciones busqué en el directorio /etc/udev/rules.d/ el fichero correspondiente a la configuración de red de mi portatil (/etc/udev/rules.d/70-persistent-net.rules) que contenía la siguiente información

# PCI device 0x8086:0x4229 (iwl4965)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:e8:58:4d:2
d", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

# PCI device 0x14e4:0x1673 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:b9:7f:24:7
e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x14e4:0x1673 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:70:8c:82:e
7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

En este caso, la interfaz nueva es la que tiene la mac 00:21:70:XX:XX:XX, es suficiente con borrar la línea correspondiente a la mac antigua y cambiar eth1 por eth0

# PCI device 0x8086:0x4229 (iwl4965)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:e8:58:4d:2
d", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

# PCI device 0x14e4:0x1673 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:70:8c:82:e
7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Luego de hacer el cambio, simplemente se reinicia el ordenador y listo.

Enlace para bookmark : Enlace permanente.

Un comentario

  1. Pingback: Cambio de Placa Base en el Servidor «

  2. Fantastic goods from you, man. I have take into
    account your stuff prior to and you are simply extremely great.
    I really like what you’ve received here, really like what you’re
    stating and the way through which you are saying it.
    You make it enjoyable and you still take care of to keep it wise.
    I can’t wait to learn much more from you. This is really a tremendous web
    site.

  3. What’s up, after reading this remarkable paragraph i am also happy to share my know-how here with friends.

  4. Fantastic web site. Lots of useful info here. I
    am sending it to a few friends ans also sharing in delicious.
    And naturally, thanks in your effort!

  5. It’s hard to find well-informed people about this
    subject, however, you seem like you know what you’re talking about!
    Thanks

  6. Do you have a spam problem on this site; I also am a blogger, and I
    was curious about your situation; many of us have created some nice practices and we
    are looking to exchange techniques with others, please shoot me an email if interested.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *


Warning: Declaration of sk2_rbl_plugin::treat_this($cmt_object) should be compatible with sk2_plugin::treat_this(&$cmt_object) in /home/diegoa5/public_html/wp-content/plugins/SK2/sk2_plugins/sk2_rbl_plugin.php on line 342

Warning: Declaration of sk2_captcha_plugin::output_plugin_UI() should be compatible with sk2_plugin::output_plugin_UI($output_dls = true) in /home/diegoa5/public_html/wp-content/plugins/SK2/sk2_plugins/sk2_captcha_plugin.php on line 70

Warning: Declaration of sk2_referrer_check_plugin::output_plugin_UI() should be compatible with sk2_plugin::output_plugin_UI($output_dls = true) in /home/diegoa5/public_html/wp-content/plugins/SK2/sk2_plugins/sk2_referrer_check_plugin.php on line 78

Warning: Declaration of sk2_pjw_simpledigest::output_plugin_UI() should be compatible with sk2_plugin::output_plugin_UI($output_dls = true) in /home/diegoa5/public_html/wp-content/plugins/SK2/sk2_plugins/sk2_pjw_daily_digest_plugin.php on line 277