Итак, приступим…
1. Отредактируем файл /etc/udev/rules.d/75-persistent-net-generator.rules, закомментируем все строчки. Получаем что-то вроде этого:
# these rules generate rules for persistent network device naming
#
#ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*|ath*|wlan*|ra*|sta*" \
# NAME!="?*", DRIVERS=="?*", GOTO="persistent_net_generator_do"
#
#GOTO="persistent_net_generator_end"
#LABEL="persistent_net_generator_do"
#
# build device description string to add a comment the generated rule
#SUBSYSTEMS=="pci", ENV{COMMENT}="PCI device $attr{vendor}:$attr{device} ($attr$
#SUBSYSTEMS=="usb", ENV{COMMENT}="USB device 0x$attr{idVendor}:0x$attr{idProduc$
#SUBSYSTEMS=="ieee1394", ENV{COMMENT}="Firewire device $attr{host_id})"
#SUBSYSTEMS=="xen", ENV{COMMENT}="Xen virtual device"
#ENV{COMMENT}=="", ENV{COMMENT}="$env{SUBSYSTEM} device ($attr{driver})"
#
#IMPORT{program}="write_net_rules $attr{address}"
#ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"
#
#LABEL="persistent_net_generator_end"
2. Теперь отредактируем файл /etc/udev/rules.d/70-persistent-net.rules. Удаляем все «левые» строчки, но оставляем лишь первую, в которой и прописываем свой mac адрес. Пример:
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.
# PCI device 0x10de:0x054c (forcedeth)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:1B:38:27:FB:A3", NAME="eth0"
00:1B:38:27:FB:A3 — наш mac адрес.
3. Редактируем последний файл - /etc/network/interfaces. Вбиваем свои настройки. Содержимое моего файла /etc/network/interfaces после правки:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).# The loopback network interface
auto lo
iface lo inet loopbackiface eth0 inet dhcpauto eth0auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider
Всё. Перезагружаемся и проверяем.
P.S.: не забудьте сделать резервные копии файлов перед их редактированием!
Источник: Mr.Visor`s blog