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-persistent-net.rules " and update /etc/sysconfig/network-scripts/ifcfg-eth0 accordingly. May I ask what is this action for and what are the files inside this folder?


[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.rules
-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]#
Jason YuAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
This is the method which Linux Distro's use to create the network interface and binding.

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.
Jason YuAuthor Commented:
Do I need remove it or just follow my coworker's suggestions to "update /etc/sysconfig/network-scripts/ifcfg-eth0 "

[root@pekin network-scripts]# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/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 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:96:1f:33", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
[root@pekin network-scripts]#
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
replace the mac address, with the mac address of your VM.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.