Problem
Problem tyczy glownie zintegrowanych kart sieciowych na plytach glownych. Przy kazdym starcie systemu karcie sieciowej jest przydzielany nowy losowowo wygenerowany adres sieciowy, czego objawem jest "rosnacy" po kazdym restarcie interfejs eth - tzn. po pierwszym restacie bedzie to eth1, po drugim eth2, po trzecim eth3 itd. Znaczaco utrudnia to konfiguracje polaczenia przydzielanego dla danego adresu MAC. W poniszym howto jest wytlumaczone w jaki sposob rozwiazac problem rosnacego eth, a takze jak ustawic automatyczna zmiane adresu MAC.
Rozwiazanie
Zaloguj sie na konto roota spod terminala
Kod: Zaznacz cały
sudo su
Kod: Zaznacz cały
lspci
Kod: Zaznacz cały
00:02.1 USB Controller: nVidia Corporation MCP65 USB Controller (rev a3)
00:06.0 Ethernet controller: nVidia Corporation MCP65 Ethernet (rev a3)
00:07.0 Audio device: nVidia Corporation MCP65 High Definition Audio (rev a1)
Wyedytuj /etc/udev/rules.d/70-persistent-net.rules
Kod: Zaznacz cały
gedit /etc/udev/rules.d/70-persistent-net.rules
Kod: Zaznacz cały
# 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.
Kod: Zaznacz cały
SUBSYSTEM=="net", DRIVERS=="?*", ID=="", NAME="eth0"
Kod: Zaznacz cały
# 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.
SUBSYSTEM=="net", DRIVERS=="?*", ID=="0000:00:06.0", NAME="eth0"
Kod: Zaznacz cały
gedit /etc/network/interfaces
Kod: Zaznacz cały
pre-up ifconfig eth0 hw ether
Kod: Zaznacz cały
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
pre-up ifconfig eth0 hw ether 00:1d:7d:de:52:af
Dodane przez mario_7:
Na forum jest też inne, chyba prostsze, rozwiązanie tego problemu: Ustawienia internetu znikają po ponownym uruchomieniu komputera