How Linux changes the MAC address in the virtual machine

  

The MAC address is the physical address of the network card, which users can modify. Today Xiaobian wants to introduce to you is to modify the Linux MAC address in the VMware virtual machine, I hope to help everyone.

modification method:

Method One:

The most direct method is simple and effective, modify Linux rc.local file system associated MAC value.

Method 2:

Modify the virtual machine's *.vmx file, this method is the most recommended, because it is similar to the "burn" & rdquo; VMware virtual machine " Physical NIC ROM”. The method is:

There are two cases:

First:

ethernet0.addressType=“static”

ethernet0.Address=“ 00:50:56:0A:0B:0C”

“static”The MAC of the VM's "physical NIC" is statically set. You can change it to another one that starts with 005056. MAC can be. If you are asked to SSID when you start the VM, select “KeepAlways”.

Second:

ethernet0.addressType=“generated”

uuid.location=“564ddcf1ffaa75ea-f1b9ee0d689c655c”

uuid.bios= <;564ded23138c9691-7c68b2098baabbcc”

ethernet0.generatedAddress=“00:0c:29:aa:bb:cc”

“generated” Description VM's "physical NIC" The MAC is dynamically set by the system. You can change the last six digits of uuid.bios and the last six digits of ethernet0.generatedAddress to the MAC that you want to change to start with 000c29.

Method 3:

Modify the MAC value of the relevant /etc/sysconfig/network-scripts/ifcfg-eth0 file in the Linux system.

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

MACADDR=xx:xx:xx:xx:xx:xx

:wq save exit
>

reboot

This is the three ways to modify the Linux MAC address in a VMware virtual machine. Users in need can try these three modifications.

Copyright © Windows knowledge All Rights Reserved