Portál AbcLinuxu, 14. května 2025 00:52
$ cat /etc/udev/rules.d/70-persistent-net.rules
# 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. # Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rule written by anaconda) # Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rule written by anaconda) # PCI device 0x10ec:0x8168 (r8169) (custom name provided by external tool) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:18:9a:9a:01", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x168c:0x002b (ath9k) (custom name provided by external tool) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:d3:62:f9:81", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
eth
, když se udev
používá a karta je v tomto skriptu zapsaná, až jsem pak zjistil, že ta síťová karta integrovaná na základní desce má pokaždé jinou MAC adresu.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.