Show Table of Contents
8.8. 控制网络设备名称选择
可以如下方式控制设备命名:
- 根据网络接口设备识别
- 在
ifcfg文件中使用HWADDR指令设定 MAC 地址,这样就可由 udev 识别。会从DEVICE指令提供的字符串中提取该名称,根据惯例,该名称应使用与ifcfg相同的后缀。例如:ifcfg-eth0。 - 通过打开或关闭 biosdevname
- 可使用由 biosdevname 提供的名称(如果 biosdevname 可确定)。
- 通过打开或关闭
systemd-udev的命名方案 - 可使用由
systemd-udev提供的名称(如果systemd-udev可确定)。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.