Cambiar nombre a las interfaces de red en GNU/Linux

By Published On: 18 de diciembre de 2010Categories: GNU-Linux, Redes0 Comments

Muy útil para cuando tenemos muchas interfaces de red y no nos gusto la forma en la cual fueron nombradas por defecto, para realizar esto simplemente necesitaremos editar el siguiente archivo:

[root@srvlinux ~]# vim /etc/udev/rules.d/70-persistent-net.rules
En este archivo nos encontraremos con lo siguiente:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x11ab:0x4361 (sky2) (custom name provided by external tool)
SUBSYSTEM==»net», ACTION==»add», DRIVERS==»?*», ATTR{address}==»00:11:11:74:be:5e», ATTR{dev_id}==»0x0″, ATTR{type}==»1″, KERNEL==»eth*», NAME=»eth0«
# USB device 0x9710:0x7830 (usb) (custom name provided by external tool)
SUBSYSTEM==»net», ACTION==»add», DRIVERS==»?*», ATTR{address}==»00:12:34:55:55:ab», ATTR{dev_id}==»0x0″, ATTR{type}==»1″, KERNEL==»eth*», NAME=»eth1«
# USB device 0x9710:0x7830 (usb)
SUBSYSTEM==»net», ACTION==»add», DRIVERS==»?*», ATTR{address}==»00:12:34:55:55:db», ATTR{dev_id}==»0x0″, ATTR{type}==»1″, KERNEL==»eth*», NAME=»eth2«
Simplemente sustituyen los valores resaltados con los que quieran y reinician su maquina para que se apliquen los cambios.
Saludos.

Leave A Comment