Three ways for VMware virtual machines to modify Linux MAC addresses

Source: Internet
Author: User
Tags uuid

MAC address is the physical address of the network card, it is very easy to modify under the Windows system, it is somewhat complicated in Linux mode, we look at the way to modify the Linux MAC address in the VMware virtual machine

Method One:

This method is the most straightforward and effective, modify the Linux system related rc.local file Mac value can be.

Method Two:

Modifying the *.vmx file of a virtual machine is best recommended because it is similar to "burning" the "Physical network card ROM" of a VMware virtual machine. The method is:

 In two different situations:

First type:

Ethernet0.addresstype= "Static"

Ethernet0. Address= "00:50:56:0a:0b:0c"

"Static" means that the Mac of the VM's "physical network card" is statically set, and you can change to a different Mac that starts with 005056. If you want to ask your SSID when you start the VM, choose "Keepalways".

The second type:

Ethernet0.addresstype= "Generated"

uuid.location= "564DDCF1FFAA75EA-F1B9EE0D689C655C"

Uuid.bios= "564DED23138C9691-7C68B2098BAABBCC"

Ethernet0.generatedaddress= "00:0C:29:AA:BB:CC"

"Generated" describes the VM "physical network card" of the Mac is a system of random dynamic settings, you can uuid.bios after the six-bit and ethernet0.generatedaddress after the six-bit after you want to change the 000c29 to the beginning of the Mac.

 Method Three:

Modify the related/etc/sysconfig/network-scripts/ifcfg-eth0 file Mac values in the Linux system.

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Macaddr=xx:xx:xx:xx:xx:xx

: Wq Save Exit

Reboot

The above three ways to modify a Linux MAC address in a VMware virtual machine are straightforward.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.