How to Use the MAC address of a Linux Nic in VMware

Source: Internet
Author: User
How to Use the MAC address of a Linux Nic In VMware-general Linux technology-Linux technology and application information. For more information, see the following section. 1. Modify the *. vmx file of the VM.
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"
Ethernet0.generatedAddress = "00: 0c: 29: 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:
Ifconfig eth0 down
Ifconfig eth0 hw ether xxxxxxxxxxxx
Ifconfig eth0 up
/Sbin/route add default gw x. x eth0
: Wq save and exit
Reboot
Related Article

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.