Link to home
Start Free TrialLog in
Avatar of Jason Yu
Jason YuFlag for United States of America

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-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?

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.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]#
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of Jason Yu

ASKER

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]#
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial