Archでネットワークインターフェイス(WiFi / Ethernet)の名前を永久に設定する方法

Archでネットワークインターフェイス(WiFi / Ethernet)の名前を永久に設定する方法

再起動するたびに、ネットワークカード(Wi-Fi /イーサネット)によって名前が変わるようです...

ベストアンサー1

使用udev。 Gentooや他の多くのディストリビューションは自動的に実行されますが、迅速なソリューションが必要な場合は、次のように構築できます。

# This file was automatically generated by the /lib64/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 0x8086:0x10f5 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC_ADDRESS>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x4236 (iwlagn)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC_ADDRESS>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

設定を変更しましたかudev

おすすめ記事