Jason Yu
asked on
what is this folder for
Dear all, I cloned a server from a template. My supervisor asked me to get the MAC address from this file "/etc/udev/rules.d/70-pers istent-net .rules " and update /etc/sysconfig/network-scr ipts/ifcfg -eth0 accordingly. May I ask what is this action for and what are the files inside this folder?
thanks.
[root@pekin network-scripts]# ls -al /etc/udev/rules.d/
total 40
drwxr-xr-x. 2 root root 4096 May 14 17:13 .
drwxr-xr-x. 4 root root 4096 May 14 05:29 ..
-rw-r--r--. 1 root root 1652 Aug 25 2010 60-fprint-autosuspend.rule s
-rw-r--r--. 1 root root 1060 Jun 29 2010 60-pcmcia.rules
-rw-r--r--. 1 root root 316 Aug 11 2014 60-raw.rules
-rw-r--r--. 1 root root 789 May 14 05:35 70-persistent-cd.rules
-rw-r--r--. 1 root root 422 May 14 05:27 70-persistent-net.rules
-rw-r--r--. 1 root root 320 Jun 25 2014 90-alsa.rules
-rw-r--r--. 1 root root 83 Jun 19 2014 90-hal.rules
-rw-r--r--. 1 root root 308 Aug 26 2014 98-kexec.rules
[root@pekin network-scripts]#
thanks.
[root@pekin network-scripts]# ls -al /etc/udev/rules.d/
total 40
drwxr-xr-x. 2 root root 4096 May 14 17:13 .
drwxr-xr-x. 4 root root 4096 May 14 05:29 ..
-rw-r--r--. 1 root root 1652 Aug 25 2010 60-fprint-autosuspend.rule
-rw-r--r--. 1 root root 1060 Jun 29 2010 60-pcmcia.rules
-rw-r--r--. 1 root root 316 Aug 11 2014 60-raw.rules
-rw-r--r--. 1 root root 789 May 14 05:35 70-persistent-cd.rules
-rw-r--r--. 1 root root 422 May 14 05:27 70-persistent-net.rules
-rw-r--r--. 1 root root 320 Jun 25 2014 90-alsa.rules
-rw-r--r--. 1 root root 83 Jun 19 2014 90-hal.rules
-rw-r--r--. 1 root root 308 Aug 26 2014 98-kexec.rules
[root@pekin network-scripts]#
ASKER
Do I need remove it or just follow my coworker's suggestions to "update /etc/sysconfig/network-scr ipts/ifcfg -eth0 "
[root@pekin network-scripts]# cat /etc/udev/rules.d/70-persi stent-net. rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.r ules 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 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:9 6:1f:33", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
[root@pekin network-scripts]#
[root@pekin network-scripts]# cat /etc/udev/rules.d/70-persi
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.r
#
# 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 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:9
[root@pekin network-scripts]#
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
However, when you CLONE a VM (in any hypervisor) not just VMware vSphere, it causes an error, it's a common issue.
and you need to remove the MAC Address from the rules.