Centos 7 中 70-persistent-net.rules 的位置

Shi*_*ker 6 udev centos7

请给我一个线索,它位于哪里?

已经/etc/udev/rules.d不在了

# find / -name "*persistent-net.rules" 什么都没找到……

c4f*_*t0r 9

Centos 7 和 Redhat 7 默认使用 biosdevname

rpm -qi biosdevname-0.5.0-10.el7.x86_64
Summary     : Udev helper for naming devices per BIOS names
Description :
biosdevname in its simplest form takes a kernel device name as an
argument, and returns the BIOS-given name it "should" be.  This is necessary
on systems where the BIOS name for a given device (e.g. the label on
the chassis is "Gb1") doesn't map directly and obviously to the kernel
name (e.g. eth0).
Run Code Online (Sandbox Code Playgroud)