centos 7 network card name change

http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Networking_Guide/sec-Understanding_the_Device_Renaming_Procedure.html

8.6. Understanding the Device Renaming Procedure

The device name procedure in detail is as follows:
  1. A rule in  /usr/lib/udev/rules.d/60-net.rules instructs the  udev helper utility,  /lib/udev/rename_device, to look into all  /etc/sysconfig/network-scripts/ifcfg-suffix files. If it finds an  ifcfg file with a  HWADDRentry matching the MAC address of an interface it renames the interface to the name given in the  ifcfg file by the  DEVICE directive.
  2. A rule in  /usr/lib/udev/rules.d/71-biosdevname.rules instructs  biosdevname to rename the interface according to its naming policy, provided that it was not renamed in a previous step,  biosdevname is installed, and biosdevname=0 was not given as a kernel command on the boot command line.
  3. A rule in  /lib/udev/rules.d/75-net-description.rules instructs  udev to fill in ID_NET_NAME_ONBOARD, ID_NET_NAME_SLOT, ID_NET_NAME_PATH, ID_NET_NAME_MAC by examining the network interface device. Note, that some variables can be empty.
  4. A rule in  /usr/lib/udev/rules.d/80-net-name-slot.rules instructs  udev to rename the interface, provided that it was not renamed in a previous step, and the kernel parameter  net.ifnames=0 was not given, according to the following priority: ID_NET_NAME_ONBOARD, ID_NET_NAME_SLOT, ID_NET_NAME_PATH. It falls through to the next in the list, if one is unset. If none of these are set, then the interface will not be renamed.

HWADDR=00:0C:29:B1:F4:0F
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eth0
DEVICE=eth0
UUID=58feae7a-690a-4886-a593-4fde0d929453
ONBOOT=yes

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值