Article Title: how to modify the LinuxMAC address in vmwarevm. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories 1. modify the *. vmx file of the virtual machine.
This method is most recommended, because it is similar to re-"burning" the vmwarevm's "physical Nic ROM ". The method is:
There are two situations:
A:
Ethernet0.addressType = "static"
Ethernet0.Address = "00: 50: 56: 0A: 0B: 0C"
"Static" indicates that the MAC of VM's "physical Nic" is set statically. you can change it to another MAC starting with 005056. Select "Keep Always" if you ask your SSID when starting the VM ".
B:
Ethernet0.addressType = "generated"
Uuid. location = "56 4d dc f1 ff aa 75 ea-f1 b9 ee 0d 68 9c 65 5c"
Uuid. bios = "56 4d ed 23 13 8c 96 91-7c 68 b2 09 8b aa bb cc"
"Generated" indicates that the MAC of the VM's "physical Nic" is randomly and dynamically set by the system. change the last six digits of the bios and the last six digits of ethernet0.generatedAddress to the MAC starting with 000c29.
2. modify the MAC value of the/etc/sysconfig/network-scripts/ifcfg-eth0 file in Linux.
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
MACADDR = xx: xx
: Wq save and exit
Reboot
3. modify the MAC value of the rc. local file in Linux.
You can change the startup script/etc/rc. d/rc. local:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service